frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

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

1•winwang•1y 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•1y 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•1y 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•1y 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•1y ago
"def" is too generic.

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•1y ago
Agreed

Scientists Discover the Earliest Evidence of Drug Use in 25,000-Year-Old Teeth

https://www.openculture.com/2026/09/scientists-discover-the-earliest-evidence-of-drug-use-in-2500...
1•Brajeshwar•41s ago•0 comments

Who Owns California's Gold?

https://reason.com/2026/09/07/who-owns-californias-gold/
2•bookofjoe•2m ago•0 comments

A Severe Misalignment of AI in Mathematics - Terence Tao et al

https://mathandai.org/
2•meredydd•2m ago•0 comments

Room 641A

https://en.wikipedia.org/wiki/Room_641A
3•paimapi•3m ago•0 comments

The Rise of AI Slop Tools

https://twitter.com/julihespenheide/status/2098070502157791452
2•picdit•4m ago•0 comments

Show HN: Viaduct – Architecture change sets for AI coding agents

https://c4.quietgridlabs.com/
2•igrlgkv•4m ago•0 comments

Show HN: Make better humans and race them

https://race.darebuild.com/
2•jimhi•5m ago•0 comments

Agents on Rails: Best model solves 35% of feature benchmark runs

https://rubyonrails.org/2026/9/9/agents-on-rails-stage-2
3•chalmovsky•5m ago•1 comments

Shipping my story before the code

https://thinkingaloud.bearblog.dev/generallyavailableintelligence/
2•sanmathigb•6m ago•0 comments

CHERIoT provides strong and usable isolation without an MMU

https://queue.acm.org/doi/10.1145/3831361
2•fanf2•6m ago•0 comments

Show HN: MCP server manager: KyttoMCP – in beta

https://kytto.jakubhecht.sk/
2•JakubStudio•7m ago•0 comments

The Cretan Method

http://hintjens.com/blog:81
2•thunderbong•9m ago•0 comments

Rope, twine and thread: Invisible technologies of the Stone Age

https://knowablemagazine.org/content/article/society/2026/prehistory-lost-threads
2•knowablemag•10m ago•0 comments

What It Takes to Build Yocto Properly on Arch Linux

https://jetm.github.io/blog/posts/yocto-on-arch-glibc-ceiling/
3•amanciero•11m ago•0 comments

Λ Snap – An inviting programming language for kids and adults for CS study

https://snap.berkeley.edu/
5•dr_kiszonka•12m ago•0 comments

SwarmLLM – Every device brings a slice. Together they run the whole model

https://github.com/Nehanth/swarmllm
2•craneca0•12m ago•0 comments

Bill Ackman's journey into tennis left him stranded on one of its courts

https://www.nytimes.com/athletic/7580250/bill-ackman-tennis-finance-hall-fame/
2•mooreds•12m ago•0 comments

America can't grow its way out of its debt problem

https://www.cnn.com/2026/09/11/economy/debt-bonds-growth
2•mooreds•13m ago•0 comments

Show HN: SyntheticAIdata – synthetic data for CV, 100k free credits/month

https://app.syntheticaidata.com/
3•gvuksic•15m ago•1 comments

What use is certification? (2004)

https://www.mooreds.com/wordpress/archives/116
2•mooreds•15m ago•0 comments

Google Sans, Google/Android's branding font, officially open-sourced on GitHub

https://github.com/googlefonts/googlesans-flex
2•maxloh•16m ago•0 comments

Google should provide a technical postmortem of Gemini's 2024 outburst

https://www.paritybits.me/google-should-provide-a-technical-postmortem-of-geminis-2024-outburst/
2•NiloCK•16m ago•0 comments

Let AI Agents Rewrite a 92M-Message-a-Day Node Service to Go

https://www.checklyhq.com/blog/agentic-rewrite-nodejs-to-go/
2•tnolet•16m ago•0 comments

The Moon May Have Been Created in Just Five Hours

https://nautil.us/the-moon-may-have-been-created-in-just-five-hours-1284952
2•Brajeshwar•16m ago•0 comments

Cancer Capital: It sucks for founders, too

https://www.anildash.com/2026/09/09/cancer-capital-founders/
3•cptroot•17m ago•0 comments

A Misalignment of AI in Mathematics

https://terrytao.wordpress.com/2026/09/11/a-severe-misalignment-of-ai-in-mathematics/
2•Iuz•17m ago•0 comments

The big winners and losers in U.S. website traffic over the past year

https://searchengineland.com/winners-losers-us-website-traffic-past-year-486843
2•rdmuser•18m ago•0 comments

Who were the hijackers of 9/11? Here's what the 9/11 Commission Report said

https://www.wfaa.com/article/news/history/remembering-911/september-11-hijacker-names/507-1bdb673...
2•final_aeon•19m ago•0 comments

Panic builds over bankrupt Spirit's looming data sale to Google

https://arstechnica.com/tech-policy/2026/09/panic-builds-over-bankrupt-spirits-looming-data-sale-...
4•rbanffy•20m ago•0 comments

Hands Off: The Roland D-Beam's Lasting Musical Legacy (2023)

https://www.perfectcircuit.com/signal/roland-d-beam-history
2•brudgers•21m ago•0 comments