frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Which function definition keyword do you prefer, def or fn?

1•winwang•11mo ago
I'm curious about what people think of `def` vs `fn`, two short keywords for starting function definitions.

...Or maybe we should subscribe to the church of `df`, haha.

Comments

sitkack•11mo ago
def could be for lots of things, fn is for functions. I don't think it matters much as long as you have one. C would have been so much easier to parse. Just copy Zig or Rust.
butlersean•11mo ago
def means define, could be used to define all kinds of things

fn isnt a legitimate short form of function

fun doesnt work because of the amusement factor

func is the only alternative we have left

sitkack•11mo ago
How about unicode or emojis?

These don't have the full fidelity as hn scrubs emojis

add = (a, b) -> a + b

a, b ⟹ a + b

λ add(a, b): ↪ a + b

johncoltrane•11mo ago
"def" is too generic.

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•11mo ago
Agreed

Do links hurt news publishers on Twitter? Our analysis suggests yes

https://www.niemanlab.org/2026/04/do-links-hurt-news-publishers-on-twitter-our-analysis-suggests-...
1•giuliomagnifico•2m ago•0 comments

Nigel Farage wants to build a British ICE. Starmer may have handed him the tools

https://www.thenerve.news/p/reform-deportation-operation-restoring-justice-data-surveillance-pala...
1•doener•3m ago•0 comments

Fast, cheap AI-assisted decompilation of binary code is here

https://twitter.com/esrtweet/status/2042002143045890412
1•tosh•4m ago•0 comments

Engineers Are Great for Marketing

https://www.usenotra.com/blog/engineers-are-great-marketing
1•DominikKoch•5m ago•0 comments

Largest Dutch pension fund cuts ties with controversial tech firm Palantir

https://nltimes.nl/2026/04/02/largest-dutch-pension-fund-cuts-ties-controversial-tech-firm-palantir
1•doener•6m ago•0 comments

Cisco: Cybersecurity Remains Top Challenge as Industrial AI Adoption Expands

https://techgraph.co/tech/cisco-cybersecurity-remains-top-challenge-as-industrial-ai-adoption-exp...
1•visitednews•7m ago•0 comments

FalconFly 3dfx Archive

https://3dfxarchive.com/3dfx.htm
1•BruceEel•8m ago•0 comments

Influence Campaign on TikTok Uses AI Videos to Boost Hungary's Orbán

https://www.newsguardtech.com/special-reports/influence-campaign-uses-ai-tiktok-videos-to-boost-h...
1•doener•11m ago•0 comments

Reallocating $100/Month Claude Code Spend to Zed and OpenRouter

https://braw.dev/blog/2026-04-06-reallocating-100-month-claude-spend/
1•kisamoto•12m ago•0 comments

Škoda's Duobell bicycle bell outsmarts ANC headphones

https://www.heise.de/en/news/koda-s-Duobell-bicycle-bell-outsmarts-ANC-headphones-11249665.html
1•thdr•12m ago•0 comments

Content Giant Slashed Telemetry Cost 79%, Saved $1.2M

https://www.mydecisive.ai/blog/content_giant_case_study
1•jratkevic•16m ago•0 comments

A study linked various SAT test scores to favorite bands

https://twitter.com/arcticinstincts/status/2041936594601701393
2•MrBuddyCasino•18m ago•0 comments

We Have Become Obsessed with Attachment. And It Is Causing Harm

https://whatwouldjesssay.substack.com/p/we-have-become-obsessed-with-attachment
1•rendx•20m ago•0 comments

Some Better Defaults for Emacs

https://git.sr.ht/~technomancy/better-defaults/blob/main/better-defaults.el
1•fanf2•25m ago•1 comments

PBXN-110

https://en.wikipedia.org/wiki/Polymer-bonded_explosive
2•simonebrunozzi•27m ago•0 comments

Ask HN: What is the future of Devs, after launch of Anthropic's Glasswing?

3•shivang2607•31m ago•0 comments

No fine-tuning, no RAG – boosting Claude Code's bioinformatics up to 92%

https://github.com/jaechang-hits/SciAgent-Skills
1•jaechang•32m ago•1 comments

Opera 130 stable arrives with Chromium 146 and Twitch support

https://www.notebookcheck.net/Opera-130-stable-arrives-with-Chromium-146-and-Twitch-support.12697...
2•DarrylLinington•32m ago•0 comments

cppreference.com has been under maintenance for a year

https://en.cppreference.com/
1•GalaxySnail•32m ago•0 comments

Veteran artist behind Mass Effect, Halo, & Overwatch 2 weighs in on Nvidia DLSS5

https://www.notebookcheck.net/Veteran-artist-behind-Mass-Effect-Halo-and-Overwatch-2-weighs-in-on...
1•DarrylLinington•33m ago•0 comments

I was copy-pasting to Claude from WhatsApp – so I fixed that

https://github.com/sliamh11/Deus
1•sliamh11•34m ago•1 comments

From bytecode to bytes: automated magic packet generation

https://blog.cloudflare.com/from-bpf-to-packet/
1•syscll•37m ago•0 comments

Show HN: Giving My First Pitch at 1M Cups Using a Custom Mobile App

https://andonalert.net/dev-blog/giving-my-first-pitch-at-1-million-cups
2•SolarpunkRachel•42m ago•0 comments

Neural Computers

https://arxiv.org/abs/2604.06425
1•50kIters•43m ago•0 comments

A hacker has allegedly breached one of China's supercomputers

https://www.cnn.com/2026/04/08/china/china-supercomputer-hackers-hnk-intl
2•tamnd•47m ago•0 comments

Amazon Cuts Kindle Store Access for 2012 and Older Kindle Models Starting May 20

https://www.ghacks.net/2026/04/09/amazon-cuts-kindle-store-access-for-2012-and-older-kindle-model...
1•penguin_booze•48m ago•0 comments

Ask HN: How do you monitor and debug integrations in production?

1•OdinSpecc•51m ago•0 comments

Seedance 2.0 on live–their strongest multimodal AI video model with native audio

https://seedance2video.cloud/
1•bingbing123•52m ago•0 comments

Show HN: I built a free open-source SVG to 3D tool

https://3dsvg.design
2•renatoworks•52m ago•1 comments

Today Is CSS Naked Day

https://css-naked-day.org/?
2•edent•53m ago•0 comments