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

Helium Is Hard to Replace

https://www.construction-physics.com/p/helium-is-hard-to-replace
1•JumpCrisscross•35s ago•0 comments

Show HN: I created a leaderboard converting your LOC into garrytans. COPE

https://www.garrytans.com/
1•Tjerkienator•48s ago•0 comments

Born Private: Reserve your child's first email address with Proton

https://proton.me/blog/born-private
1•teekert•50s ago•0 comments

Show HN: Quillium, Inline Branching for Prose

https://quillium.bryanhu.com/
1•thatxliner•2m ago•0 comments

Anthropic's warning about its own product

https://www.latimes.com/california/story/2026-04-10/chabria-column-anthropic-claude-mythos-preview
2•nirkalimi•3m ago•0 comments

Prototyping with LLMs

https://blog.jim-nielsen.com/2026/prototyping-with-llm/
1•rpgbr•4m ago•0 comments

Agents.md is the highest-leverage code you're not testing

https://www.stet.sh/blog/agents-md-testing
1•bisonbear•5m ago•0 comments

List of Dead or Missing Scientists 'Suspicious' as Ninth Case Raised

https://www.newsweek.com/list-dead-or-missing-scientists-suspicious-michael-david-hicks-11805585
1•ZunarJ5•5m ago•0 comments

Déjà Code: How LLMs Cheat on Repos They've Seen

https://blogs.latentforce.ai/blogs/deja-code.html
1•maxaravind•6m ago•1 comments

RAG retrieves fragments. HPAR retrieves meaning

https://zenodo.org/records/19468206
1•j333t•6m ago•0 comments

Wargaming the Hormuz Crisis: Deterrence vs. Recession

https://softcurrency.substack.com/p/wargaming-a-gunfight-at-a-gas-station
1•econgradstud•7m ago•0 comments

The Code Is Not the Law: Why Claude's Constitution Misleads

https://www.lawfaremedia.org/article/the-code-is-not-the-law--why-claude-s-constitution-misleads
1•hn_acker•7m ago•0 comments

Go CLI tool for AWS S3 security verification

https://github.com/sufield/stave
1•sufield•9m ago•0 comments

The AI bubble isn't new – Marx explained the mechanisms behind it 150 years ago

https://theconversation.com/the-ai-bubble-isnt-new-karl-marx-explained-the-mechanisms-behind-it-n...
1•vrganj•10m ago•0 comments

What to expect from the fiery, 14-minute return of Artemis II

https://arstechnica.com/space/2026/04/heres-what-to-expect-from-the-fiery-14-minute-return-of-art...
1•trothamel•11m ago•0 comments

Comparison Shopping Is Not a (Computer) Crime

https://www.eff.org/deeplinks/2026/04/comparison-shopping-not-computer-crime
1•hn_acker•11m ago•0 comments

Logic of Self vs. Logic of Role (and Why Confusing the Two Is a Trap)

https://www.leadingsapiens.com/logic-of-self-vs-logic-of-role/
1•sherilm•12m ago•0 comments

Cohn's "Privacy's Defender"

https://pluralistic.net/2026/04/09/bernstein-2/
1•hn_acker•13m ago•0 comments

But What about K?

https://tony-zorman.com/posts/whitney-k.html
2•mpweiher•13m ago•0 comments

UMR: Save LLM model disk space

https://github.com/EvanZhouDev/umr
1•thatxliner•14m ago•0 comments

Show HN: Kubbo – build a medieval city with your daily habits

https://kubbo.app/
1•macfleid•16m ago•0 comments

Let's Talk about LLMs

https://www.b-list.org/weblog/2026/apr/09/llms/
1•mpweiher•16m ago•0 comments

Explaining the Failures of Obesity Therapy

https://www.nature.com/articles/ijo2012114
1•paulpauper•17m ago•0 comments

Claude Mythos Is Everyone's Problem

https://www.theatlantic.com/technology/2026/04/claude-mythos-hacking/686746/
2•paulpauper•18m ago•1 comments

Not all index scans are equal: How we cut query latency by over 99%

https://www.datadoghq.com/blog/detect-inefficient-index-scans-with-dbm/
1•tanelpoder•18m ago•0 comments

Finding your investment lodestar: In search of an investment philosophy

https://aswathdamodaran.substack.com/p/finding-your-investment-lodestar
1•paulpauper•18m ago•0 comments

CIA to embed AI «co-workers» in every analytic platform within two years

https://anonhaven.com/en/news/cia-ai-coworkers-ellis-scsp-april-2026/
3•anonhaven•19m ago•1 comments

NASA's Dragonfly mission will send a nuclear-powered flying drone to Titan

https://www.scientificamerican.com/article/nasas-dragonfly-mission-will-send-a-nuclear-powered-fl...
1•Brajeshwar•19m ago•0 comments

Show HN: Wealth Curve – Financial forecasting with local storage and E2EE

https://wealthcurve.app/
1•fishbone•24m ago•0 comments

Show HN: IBANforge – Free IBAN/BIC validation API with compliance data

https://github.com/cammac-creator/ibanforge
1•Xentyon•24m ago•0 comments