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

Show HN: I gave my AI Agents Production backed Memory

https://usecodela.com/
1•SubomiG•40s ago•0 comments

Understanding "You are not expected to understand this."

https://www.taniwha.com/~paul/not.html
1•birdculture•1m ago•0 comments

The Math Behind Counter-Strike Surfing

https://healeycodes.com/the-math-behind-counter-strike-surfing
1•ibobev•3m ago•0 comments

Marla at Indiana University

https://www.goto10retro.com/p/marla-at-indiana-university
1•ibobev•3m ago•0 comments

Show HN: A free browser backgammon club, gnubg's net under the hood

https://www.spawn.co/@ilkkah/the-velvet-point
1•ile•3m ago•0 comments

NoirVPN by Cosinium – the next gen openvpn-protocol compatible VPN

https://github.com/cosiniumdev/noirvpn
1•ksec•4m ago•0 comments

Free will is not an illusion but a control achievement of the brain

https://techxplore.com/news/2026-11-free-illusion-brain-machines.html
1•geox•4m ago•0 comments

Show HN: ClawdTime, a CUA agent for long tasks that FaceTimes you when stuck

https://www.clawdtime.com/
2•garygao•7m ago•1 comments

Claude NOT sabotaging ML research tasks?

https://mj10.github.io/blog/2026/femto/
1•johnnyApplePRNG•8m ago•0 comments

Show HN: dotenc – Git-native encrypted environments powered by your SSH keys

https://github.com/dotenc/dotenc
1•ivanfilhoz•10m ago•1 comments

Show HN: Free audiobook and eBook with the story of recent discoveries in math

https://labs.opentangle.com/after-proof/
1•zzzmarcus•15m ago•0 comments

LLM-assisted English translation of a 9th-century Syriac liturgical commentary

https://docs.google.com/document/d/1NlgkmxuXkmBfgBuUdx85rM8FgA6hxcXbRaSWATI95T8/edit?usp=sharing
1•abj908•16m ago•0 comments

Dating App CEO Says Claude Sabotaged Code

https://officechai.com/ai/dating-app-ceo-says-claude-ignored-ethnicity-skin-tone-preferences-sabo...
1•vinyl7•16m ago•0 comments

States sue SpaceX to stop Grok from generating child sex images, revenge porn

https://www.oag.state.va.us/media-center/news-releases/jay-jones/3162-attorneys-general-jones-and...
4•DeepLogin•17m ago•0 comments

The AT&T Unix PC (3B1) VM

https://virtuallyfun.com/2026/11/22/the-ultimate-att-unix-pc-3b1-vm-w-tcp-ip-and-apps/
3•ok123456•18m ago•0 comments

Every Macy's Thanksgiving Parade Balloon, 1927–2026

https://taylor.fyi/parade/
3•NaOH•21m ago•1 comments

Embarrassingly Parallel: The Hidden Superpower of GPUs

https://medium.com/@g.nithish100/embarrassingly-parallel-the-hidden-superpower-of-gpus-0dd0843a79ce
1•andsoitis•25m ago•0 comments

Cheerleading

https://notes.eatonphil.com/2025-05-26-cheerleading.html
1•Curiositry•25m ago•0 comments

Embarrassingly Parallel Algorithms

https://www.cs.iusb.edu/~danav/teach/b424/b424_23_embpar.html
1•andsoitis•26m ago•0 comments

Michael Nielsen took down his book on neural nets

https://twitter.com/michael_nielsen/status/2126359767362748777
48•brandonb•28m ago•22 comments

Android app developers will soon have to share their address publicly

https://www.theverge.com/tech/1043228/android-play-store-google-developer-address-eu
5•bookofjoe•29m ago•1 comments

Show HN: Poly – One CLI and PURL syntax across 26 language package managers

https://github.com/RitualDev-Lab/poly
1•RitualDev•32m ago•0 comments

Michael Giles, co-founder and drummer of King Crimson, dies aged 84

https://www.theguardian.com/music/2026/nov/26/michael-giles-co-founder-and-drummer-of-king-crimso...
6•bookofjoe•34m ago•0 comments

Show HN: Machine-load – see which AI coding session is slowing your Mac

https://github.com/Stak-Technologies/machine-load
1•michaelraygrant•34m ago•0 comments

We've reduced the amount of data Codex pulls from the Responses API by ~80%

https://twitter.com/charliermarsh/status/2126381983945400542
1•tosh•36m ago•0 comments

Cloth Simulation with XBPD

https://ricar.do/2026/11/26/cloth-sim.html
1•ricardobeat•37m ago•0 comments

Build in Public, with Verified Revenue

https://app.shipfolio.io/sign-in
1•ThatGuyWithACom•39m ago•1 comments

AI Guardrail Demo No Successes Yet

https://guardrail-api-core-production.up.railway.app/
1•clockwerkconten•40m ago•0 comments

macOS is not Unix anymore

https://www.reddit.com/r/MacOS/comments/1y6tg3t/macos_is_not_unix_anymore/
3•tirumaraiselvan•41m ago•2 comments

Sitting Is Overrated

https://herecomesthemoon.net/2026/11/sitting-is-overrated/
1•knotimpressed•43m ago•0 comments