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•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

Using static websites for tiny archives

https://alexwlchan.net/2024/static-websites/
1•lemonberry•3m ago•0 comments

It's OK to want to have a good time [pdf]

https://drops.dagstuhl.de/storage/01oasics/oasics-vol134-programming2025/OASIcs.Programming.2025....
1•surprisetalk•4m ago•0 comments

MCP-stdio-guard – MCP stdio sanity checks

https://github.com/1Utkarsh1/mcp-stdio-guard
1•utkarsh4995•11m ago•0 comments

The Accidental Bestseller (2014)

https://www.publishersweekly.com/pw/by-topic/childrens/childrens-book-news/article/64933-the-acci...
1•downbad_•11m ago•0 comments

Norwich Community Kitchen – Community Input Survey

https://envisionnorwich360.com/en/projects/norwich-community-kitchen
1•mooreds•12m ago•0 comments

Stera: Open-Source Infra That Turns iPhones into Spatial Data for World Models

1•satpal•12m ago•0 comments

Boxscores Emailed to You Daily

https://boxscore.email/mlb
1•mooreds•13m ago•0 comments

Anthropic's $1.5B copyright settlement is getting messy as judge delays approval

https://arstechnica.com/tech-policy/2026/05/authors-fight-for-higher-payouts-from-anthropics-1-5b...
1•Brajeshwar•15m ago•0 comments

128-Bit Computing

https://en.wikipedia.org/wiki/128-bit_computing
1•tosh•15m ago•0 comments

After the AI Crash [pdf]

https://cdn.vanderbilt.edu/vu-URL/wp-content/uploads/sites/412/2026/03/23144242/After-the-AI-Cras...
1•mooreds•16m ago•0 comments

Git is unprepared for the AI coding tsunami

https://www.theregister.com/devops/2026/05/15/git-is-unprepared-for-the-ai-coding-tsunami/5241480
1•voxleone•18m ago•0 comments

A personal letter on transformative AI

https://multipliercg.substack.com/p/a-personal-letter-on-transformative
1•jwx48•22m ago•0 comments

Is Britain Ungovernable?

https://www.cnn.com/2026/05/16/uk/uk-government-prime-minister-leadership-starmer-ungovernable-la...
1•rawgabbit•22m ago•0 comments

Veteran network architect proposes IPv8

https://www.theregister.com/networks/2026/05/12/veteran-network-architect-proposes-ipv8-to-improv...
1•throwaway2037•22m ago•0 comments

The Go Compiler: A Deep Dive

https://blog.gaborkoos.com/posts/2026-05-08-The-Go-Compiler-a-Deep-Dive-Into-How-Your-Code-Become...
1•keyle•26m ago•0 comments

Ukraine's Interceptor Drone Innovations

https://www.twz.com/news-features/inside-ukraines-interceptor-drone-innovations-swatting-down-tho...
1•giuliomagnifico•29m ago•0 comments

Show HN: LocaliOS – iOS apps for a files-first life (photos, music, contacts)

https://j23n.com/public/posts/2026/localios
1•j23n•29m ago•0 comments

OpenSMTPD Is the Mail Server for the Future

https://nxdomain.no/~peter/time_for_opensmtpd.html
1•WhyNotHugo•32m ago•0 comments

Show HN: Hodor – A tiny reverse proxy that gates any web app behind a password

https://github.com/michidk/hodor
1•michidk•32m ago•0 comments

RestoreProof – CLI that restores your Postgres backup and verifies it worked

1•nareshcodes•33m ago•0 comments

Can AI Un-Slop Itself?

https://github.com/cuzzo/clear/blob/master/docs/retrospective/can-ai-unslop-itself.md
1•onlyrealcuzzo•36m ago•0 comments

Madness and Imagination

https://ia.net/topics/madness-and-imagination
1•Looky1173•41m ago•0 comments

How Long Do We Wait for New Inventions?

https://www.construction-physics.com/p/how-long-do-we-wait-for-new-inventions
2•Luc•42m ago•0 comments

Are Teen Takeovers Dangerous?

https://www.npr.org/2026/05/13/nx-s1-5818465/kristin-henning-teen-takeovers-threat-dangerous
2•rbanffy•46m ago•0 comments

My Blog Pure Blog Deployment

https://bfloeser.de/my-blog-pureblog-deployment
1•meysamazad•48m ago•0 comments

ArXiv to Ban Researchers for a Year If They Submit AI Slop

https://www.404media.co/new-arxiv-rules-ai-generated-papers-ban/
4•Brajeshwar•50m ago•0 comments

My Favorite Bugs: Invalid Surrogate Pairs

https://george.mand.is/2026/05/my-favorite-bugs-invalid-surrogate-pairs/
1•meysamazad•51m ago•0 comments

Report company earnings daily (2018)

https://ritholtz.com/2018/08/report-earnings-daily/
2•rwmj•57m ago•0 comments

Skills, 8 MCP tools, 6 runtimes, one memory system that never forgets

https://github.com/EliasOulkadi/shokunin
1•EliasOulkadi•57m ago•0 comments

Why vibe coding is becoming an SEO advantage

https://searchengineland.com/vibe-coding-seo-advantage-477069
2•rustoo•58m ago•0 comments