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•10mo 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•10mo 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•10mo 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•10mo 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•10mo ago
"def" is too generic.

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•10mo ago
Agreed

Electric vehicles avoided oil consumption of 70% of Iran's 2025 exports

https://ember-energy.org/latest-updates/electric-vehicles-avoided-oil-consumption-equivalent-to-7...
1•dabinat•4m ago•0 comments

Review of Microsoft's ClearType Font Collection (2005)

https://typographica.org/on-typography/microsofts-cleartype-font-collection-a-fair-and-balanced-r...
1•precompute•6m ago•0 comments

Your terminal, finally has memory!

https://github.com/KunalSin9h/yaad
2•knlsn•9m ago•1 comments

Rust-accelerated reinforcement learning, 140x faster than Python

https://github.com/riserally/rlox
2•wkowalpl•12m ago•1 comments

Iranian security chief Ali Larijani killed in air strike

https://www.bbc.com/news/articles/c24deezq6meo
1•tartoran•17m ago•0 comments

India's 20 years of GDP misestimation: New evidence

https://www.piie.com/publications/working-papers/2026/indias-20-years-gdp-misestimation-new-evidence
1•littlexsparkee•17m ago•0 comments

AI coordinates with your friends' AI so nobody has to

https://sotto.us
2•felixwu•22m ago•0 comments

Show HN: Vibe Remote – Code from your bed or the park with Claude Code/Codex

https://vibe-remote.com
2•amarkdown•26m ago•2 comments

Smoother Signatures (2012)

https://developer.squareup.com/blog/smoother-signatures/
1•wxw•26m ago•0 comments

The remaining questions after the Supreme Court's tariffs ruling

https://www.scotusblog.com/2026/03/the-remaining-questions-after-the-supreme-courts-tariffs-ruling/
2•treetalker•28m ago•0 comments

My Claude Code setup you definitely shouldn't use. It's AI Overkill

https://github.com/notque/ai-overkill
3•AndyNemmity•32m ago•1 comments

From Descartes to punk rock, the letter X has an extraordinary history

https://www.npr.org/2026/03/17/nx-s1-5732951/letter-x-etymology-religion-punk-descartes-romans-al...
1•andsoitis•34m ago•0 comments

Forget Flags and Scripts: Just Rename the File

https://robertsdotpm.github.io/software_engineering/program_names_as_input.html
4•Uptrenda•39m ago•0 comments

Life in Hitler's Capital

https://www.newyorker.com/magazine/2026/03/16/stay-alive-berlin-1939-1945-ian-buruma-book-review
2•mitchbob•41m ago•1 comments

Study finds scientists' jokes mostly fall flat

https://www.nature.com/articles/d41586-026-00854-9
2•y1n0•43m ago•2 comments

SQLite WAL-reset database corruption bug

https://sqlite.org/wal.html#walresetbug
2•jzebedee•44m ago•0 comments

We optimized Dash's relevance judge with DSPy

https://dropbox.tech/machine-learning/optimizing-dropbox-dash-relevance-judge-with-dspy
2•handfuloflight•45m ago•0 comments

TrustAgentAI – Cryptographic receipts for MCP tool calls (non-repudiation layer)

2•kirillostrovsky•46m ago•0 comments

Bonanza or Bubble? Where AI Goes from Here

https://www.bloomberg.com/news/articles/2026-03-18/is-an-ai-bubble-set-to-burst-navigating-the-ar...
1•1vuio0pswjnm7•46m ago•0 comments

Gas Town by Kilo

https://kilo.ai/gastown
1•MaysonL•49m ago•0 comments

GSD 2

https://github.com/gsd-build/gsd-2
1•mimbojimbo•54m ago•0 comments

I built a runtime guardrail that stops AI agents from doing dumb things

2•thomaslwang•55m ago•0 comments

Fractal Reddit New Post

https://old.reddit.com/r/PisequaltoNP/comments/1rwte5r/a_fractalgeometric_approach_to_boolean/
2•KaoruAK•56m ago•0 comments

Active Engineering: A Framework for Sustainable Development in the AI Era

1•geekyAbhijeet•57m ago•0 comments

Have a Fucking Website

https://www.otherstrangeness.com/2026/03/14/have-a-fucking-website/
5•asukachikaru•57m ago•2 comments

Show HN: Ship or slop – a place where agents come up with ideas and argue

https://shiporslop.xyz/
1•vulpez•58m ago•0 comments

Is your job safe from AI and automation? (inspired by Karpathy)

https://99helpers.com/tools/is-my-job-safe-from-ai
1•nickk81•59m ago•1 comments

Show HN: CollabMD – Real-time multiplayer for local and Git-backed Markdown

https://github.com/andes90/collabmd
1•ndezt•1h ago•1 comments

Hardware entropy is a coupled system

https://amentilabs.com/research/entropy-embedding-atlas/
1•er777•1h ago•0 comments

Autofocus glasses watch your eyes, and shift their focus accordingly

https://newatlas.com/wearables/ixi-autofocus-eyeglasses/
3•andsoitis•1h ago•0 comments