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

Becoming an Air Traffic Controller

https://vatsim.net/docs/basics/becoming-a-controller/
1•mooreds•19s ago•0 comments

Agentic Context Is King

https://writeaheadblog.com/p/agentic-context-is-king
1•mooreds•1m ago•0 comments

The Hybrid Gen 5 Experiment: High-Speed Linux Storage Without the Gen 5 Heat

https://corelab.tech/samsung-990-evo-plus-linux-ssd-heat-test/
1•corelabjoe•2m ago•1 comments

Minimax M2.7 Weights Released

https://huggingface.co/MiniMaxAI/MiniMax-M2.7
1•anonym29•5m ago•1 comments

Mythos Just Proved the Alignment Field Is Building the Wrong Thing

https://substack.com/home/post/p-193928243
1•ajspizz•7m ago•0 comments

Ask HN: Do you remux WebM to MP4 without re-encoding?

1•vanta_tool•10m ago•0 comments

Show HN: Depsly – a CLI to see the dependency impact of NPM packages

https://github.com/sshiraz/depsly
1•cyborg933•11m ago•0 comments

Smartpress

https://smartpress.netlify.app
1•nickfosterna•17m ago•2 comments

Parity of permutations, impossible puzzles and the magical determinant [video]

https://www.youtube.com/watch?v=rUiulWItECQ
1•vismit2000•22m ago•0 comments

Oxygen made from Moon dust for first time

https://www.telegraph.co.uk/news/2026/04/09/oxygen-made-from-moon-dust-for-the-first-time/
2•jonbaer•28m ago•0 comments

cmakefmt: A lightning-fast CMake file formatter

https://github.com/cmakefmt/cmakefmt
1•rmast•28m ago•0 comments

Monsters in the Archives by Caroline Bicks – The Writing Secrets of Stephen King

https://www.theguardian.com/books/2026/mar/30/monsters-in-the-archives-by-caroline-bicks-review-t...
2•lermontov•29m ago•0 comments

Save Walter White

https://save-walt.onrender.com/
1•flykespice•31m ago•1 comments

Artemisia Gentileschi Masterpiece Goes to Auction–Without Its Face

https://news.artnet.com/market/gentileschi-mary-magdalene-fragment-dorotheum-auction-2763142
1•bookofjoe•34m ago•0 comments

Trick Might Stop Gulls from Nabbing Your Lunch

https://gizmodo.com/this-ridiculously-simple-trick-might-stop-gulls-from-nabbing-your-lunch-20007...
2•gnabgib•35m ago•0 comments

Linktree for Professionals

https://airlinkee.com/en/
1•wonsukchoi97•37m ago•0 comments

FullScope-MCP – Cut agent token usage by 60% without lossy summarization

https://github.com/justguy/FullScope-MCP/
1•justguyB•40m ago•0 comments

OpenOats – A meeting note-taker that talks back

https://github.com/yazinsai/OpenOats
3•rahimnathwani•43m ago•3 comments

After the Attack on Sam Altman's Home, Will AI CEOs Go on the Offensive?

https://www.motherjones.com/politics/2026/04/after-the-attack-on-sam-altmans-home-will-ai-ceos-go...
1•cdrnsf•46m ago•0 comments

The oldest known evidence of stitched clothing

https://refractor.io/history/oldest-evidence-stitched-clothing-fabric-prehistoric-oregon/
1•breve•48m ago•0 comments

Optimization of 32-bit Unsigned Division by Constants on 64-bit Targets

https://arxiv.org/abs/2604.07902
1•simjnd•49m ago•0 comments

B2alpha

https://b2alpha.io/
1•21J3phy•51m ago•0 comments

Elastic Tabstops (2006)

https://nick-gravgaard.com/elastic-tabstops/
1•birdculture•53m ago•1 comments

AI Job Loss Tracker

https://jobloss.ai/
21•gnabgib•53m ago•18 comments

We Are All Constantly Mutating – and That's a Good Thing

https://www.newyorker.com/magazine/2026/04/13/beyond-inheritance-roxanne-khamsi-book-review
1•mitchbob•1h ago•1 comments

More than 12 tons of KitKat's 'new chocolate range' stolen in Italy

https://www.theguardian.com/world/2026/mar/28/kitkat-stolen-italy-f1-bar
1•wslh•1h ago•0 comments

Artemis II Astronauts Back in Houston, Reunite with Families

https://www.nasa.gov/blogs/missions/2026/04/11/artemis-ii-astronauts-back-in-houston-reunite-with...
1•salkahfi•1h ago•0 comments

Curated Costa Rica: The Best Tailor-Made Experiences for Every Type of Traveller

https://johnquam.substack.com/p/curated-costa-rica-the-best-tailor
1•headmonkey•1h ago•1 comments

Unified Perception Engine: never render more than humans can see (public domain)

https://github.com/warofwar2011-dev/unified-perception-engine
1•Mars2011•1h ago•0 comments

The Enigma of Gertrude Stein

https://www.thenation.com/article/culture/gertrude-stein-afterlife-wade-review/
2•samclemens•1h ago•0 comments