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

Rejection Will Have Consequences': Inside Team Trump's Takeover of Intel

https://www.wired.com/story/inside-trumps-demands-to-another-chips-ceo/
1•porridgeraisin•18s ago•0 comments

Show HN: ScoutingPro27 – Local-first P2P robotics scouting with CRDTs and WebRTC

https://github.com/Lucalmz/ScoutingPro27
1•Lucalmz•47s ago•0 comments

Apple is holding the iPad back at our expense

https://www.macrumors.com/2026/11/25/apple-has-ipads-running-macos-internally/
1•asow92•58s ago•1 comments

Just Learn Goddamn Kubernetes

https://wojsznis.eu/blog/2025/11/24/just-learn-goddamn-kubernetes/
1•aeonflux•2m ago•0 comments

The side quest that freed 10% of our database

https://incident.io/blog/the-side-quest-that-freed-10-of-our-database
3•ksbeking•3m ago•0 comments

Show HN: Playable Teenage Engineering BC-1 CD players in the browser

https://cds.bruceblay.com
1•harmoni-pet•5m ago•0 comments

Strands Decider v2: open, calibrated system one models

https://strandsagents.com/blog/introducing-strands-decider-v2/
2•Betelbuddy•6m ago•0 comments

Dawin: A drop-in continuous-time neuron with a fused Triton scan

https://github.com/yumakemore/DAWIN
1•yumakemore•7m ago•1 comments

Card Games and Tile Games from Around the World

https://www.pagat.com/
1•cristoperb•7m ago•0 comments

AI leaders clash over surrendering human free will

https://www.axios.com/2026/11/25/anthropic-ai-human-control-debate-free-will
1•samizdis•8m ago•0 comments

Show HN: Zero to Riemann Zeros

https://academy.functorial.inc/courses/riemann
1•habitmelon•9m ago•0 comments

Nudges Help Applicants Complete Online Safety Net Enrollments

https://donmoynihan.substack.com/p/nudges-help-applicants-complete-online
1•hn_acker•10m ago•0 comments

Building VM Images with Podman

https://pentest.party/posts/2026/building-vm-images-with-podman/
1•dadevel•10m ago•0 comments

Pg_search: Text, Filters, and Vectors in One Postgres Index

https://www.paradedb.com/blog/filter-aware-vector-search
1•philippemnoel•11m ago•0 comments

Zapier offers free MCP tool calls until Jan. 5

https://zapier.com/mcp
8•ckor•12m ago•1 comments

Writing a Turn Based Game WebSocket Server in Haskell

https://blog.gordo.life/2026/04/12/haskell-websockets.html
2•Brajeshwar•14m ago•0 comments

World has six consecutive days 2C above preindustrial levels for first time

https://www.theguardian.com/environment/2026/nov/25/world-six-consecutive-days-2c-above-preindust...
5•ljf•16m ago•1 comments

Ask HN: Where are all the amazing AI-generated software?

2•8bitbeep•16m ago•1 comments

Build the Busy Western Town

https://marcrandolph.substack.com/p/build-the-busy-western-town
1•fagnerbrack•18m ago•0 comments

Show HN: Hold'em (swipe real Black Friday cart deals across Shopify)

https://holdem.showerthoughts.dev/
1•sbryers•18m ago•0 comments

It's Not Always the Dishes

https://osaker.bearblog.dev/its-not-always-the-dishes/
1•0saker•18m ago•0 comments

Show HN: Game DNA – 101 game features for coding agents, tested on unseen games

https://game-dna.pages.dev/site/preview/
1•lucemia51•18m ago•1 comments

Investigating degraded experiences across GitHub products

https://www.githubstatus.com/incidents/qn8mfv6q5hlx
29•pinjasaur•19m ago•7 comments

Show HN: Warmy – keeps Claude's prompt cache warm while you're away

https://warmy.dev/
1•brunoqgalvao•20m ago•0 comments

Show HN: Animama – Open-source AI desktop companion with 3D avatars

https://github.com/raymond-van/animama
1•raymv•21m ago•0 comments

Swarms do not yet raise the roof: 6x faster, 7% worse than a single agent

https://www.paradigm3.org/research/swarms/
1•dvaplima•21m ago•0 comments

I cloned myself as a CTO avatar that runs a dark factory of agents

https://github.com/alexrolls/startup-factory
1•alexberlinde•22m ago•0 comments

Why Thanksgiving Football Became an American Tradition After the Civil War

https://www.smithsonianmag.com/history/why-thanksgiving-football-emerged-as-an-american-tradition...
2•gmays•22m ago•0 comments

HungerG: Qoder's Stealth Coding Model, What Is Confirmed

https://cellcog.ai/blog/hungerg-stealth-model/
1•Bluestein•22m ago•0 comments

The Art of the Terrible Startup Name

https://news.crunchbase.com/startups/bad-startup-name-examples-advice-grok/
3•gist•22m ago•0 comments