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

The Duke in His Domain (1957)

https://www.newyorker.com/magazine/1957/11/09/marlon-brando-profile-truman-capote
1•cocacola1•35s ago•0 comments

Saudi Arabia ranks 2nd globally in data center market attractiveness

https://saudigazette.com.sa/article/661023/saudi-arabia/saudi-arabia-ranks-2nd-globally-in-data-c...
1•xlmnxp•6m ago•0 comments

The Last Post

https://www.penmachine.com/2011/05/the-last-post
2•lockyc•7m ago•0 comments

The AI Spending Trap: Why Adoption Outpaces Outcomes

https://age-of-product.com/ai-spending-trap/
1•swolpers•8m ago•0 comments

55M Smartphones Run on the HarmonyOS

https://www.scmp.com/tech/tech-trends/article/3351837/huaweis-harmonyos-more-55m-phones-china-ste...
1•hemc4•8m ago•0 comments

I built a free SEO/AEO/security scanner for websites

https://visrank.org
1•Drages•10m ago•0 comments

Can AI Design Therapies?

https://www.scmp.com/tech/article/3352032/bytedances-drug-unit-presents-ai-designed-therapies-glo...
1•hemc4•11m ago•0 comments

Show HN: Hangman Game

https://threej.in/games/talha37-12-hangman-game/index.html
1•threejin•27m ago•0 comments

Big Tech will spend nearly $700B on AI in 2026. No one knows where buildout ends

https://fortune.com/2026/04/30/big-tech-hyperscalers-will-spend-700-billion-on-ai-infrastructure-...
3•1vuio0pswjnm7•30m ago•0 comments

Why sugarcane bagasse tableware is eco friendly?

1•merakipack•30m ago•0 comments

Suno picks up Songkick as part of AI licensing deal with Warner Music

https://completemusicupdate.com/suno-picks-up-songkick-as-part-of-ai-licensing-deal-with-warner-m...
3•gnabgib•47m ago•0 comments

Show HN: ScaleBridge – sync Withings weigh-ins to Garmin Connect

https://scalebridge.ulf.su/en
1•ulfdev•51m ago•0 comments

Taking down a European network with a TLS certificate

https://mxsasha.eu/posts/ripe-ncc-rpki-exploit-chain/
1•tardedmeme•51m ago•0 comments

Comparing the Z80 and 6502 to Their Relatives

https://bumbershootsoft.wordpress.com/2026/05/02/comparing-the-z80-and-6502-to-their-relatives/
2•ibobev•54m ago•0 comments

Kimi K2.6 just beat Claude, GPT-5.5, and Gemini in a coding challenge

https://thinkpol.ca/2026/04/30/an-open-weights-chinese-model-just-beat-claude-gpt-5-5-and-gemini-...
46•bazlightyear•55m ago•12 comments

Claude-powered AI agent's confession

https://www.theguardian.com/technology/2026/apr/29/claude-ai-deletes-firm-database
1•hmokiguess•55m ago•1 comments

Before Barbie: Mattel Engineering Company, Guided Missiles, and the Cold War

https://medium.com/@solidi/before-barbie-mattel-engineering-company-guided-missiles-and-the-cold-...
2•biscuits1•55m ago•0 comments

How electronic warfare is sowing confusion in cockpits

https://www.cnn.com/2026/04/28/science/gps-jamming-plane-navigation-problems
1•giuliomagnifico•57m ago•0 comments

Ask HN: Best hardware for local inference

1•aavci•59m ago•0 comments

The first photo published in a newspaper

https://phsne.org/the-first-photograph-published-in-a-newspaper-1848/
1•geuis•1h ago•0 comments

Germany claims it has the best bread

https://www.economist.com/europe/2026/05/02/germany-claims-it-has-the-worlds-best-bread
1•andsoitis•1h ago•0 comments

The Myriad Project: A separator for ten-thousands

https://myriad-project.org/
1•dahlia•1h ago•0 comments

Sequoia Ascent 2026 Summary

https://karpathy.bearblog.dev/sequoia-ascent-2026/
1•fbuilesv•1h ago•0 comments

Carrier – AI-first back end compiler (Rust/Java/Node)

https://github.com/nikoma/carrier
1•nikoma777•1h ago•0 comments

Scaling, Stretching and Shifting Sinusoids

https://eli.thegreenplace.net/2026/scaling-stretching-and-shifting-sinusoids/
1•mfrw•1h ago•0 comments

The Terminal Bench 3.0 community is looking for task contributors

https://www.tbench.ai/news/tb3-contribution-call
1•neversettles•1h ago•1 comments

The Financialization of Compute Futures

https://deep-research-agent.pagey.site/the-financialization-of-compute-futures/index.html
1•freakynit•1h ago•0 comments

The Cost of Misalignment

https://interrupt.memfault.com/blog/the-hidden-cost-of-misalignment
1•swq115•1h ago•0 comments

Metastability in Recovery: Cascading Recovery with a Loop

https://charap.co/metastability-in-recovery-cascading-recovery-with-a-loop/
2•matt_d•1h ago•0 comments

Show HN: Tidal town – HTML5 game where you protect your town from tides

https://threej.in/games/tidal-town/index.html
2•threejin•1h ago•0 comments