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

AIs Job Ledger has 2 Columns

https://www.aei.org/economics/ais-job-ledger-has-two-columns/
1•RickJWagner•29s ago•0 comments

Chaoskampf

https://en.wikipedia.org/wiki/Chaoskampf
1•thunderbong•1m ago•0 comments

’Abhorrent’: the inside story of the Polymarket gamblers betting millions on war

https://www.theguardian.com/business/2026/apr/11/polymarket-gamblers-betting-iran-war-ukraine-new...
1•sandebert•1m ago•0 comments

Codex GUI's spinner uses 70% of GPU

https://github.com/openai/codex/issues/16857
1•Einenlum•3m ago•0 comments

Meta is set to pay its top AI executives almost a billion each in bonuses

https://www.msn.com/en-my/news/other/meta-is-set-to-pay-its-top-ai-executives-almost-a-billion-ea...
1•seekdeep•4m ago•0 comments

Škoda Duobell bike bell pierces noise-cancelling headphones

https://www.dezeen.com/2026/04/09/skoda-duobell-bike-bell-noise-cancelling-headphones/
1•trauco•7m ago•0 comments

US intelligence indicates China is preparing weapons shipment to Iran

https://www.cnn.com/2026/04/11/politics/us-intelligence-iran-china-weapons
1•OutOfHere•7m ago•0 comments

Japan's cabinet approved a bill classifying crypto as a financial instrument

https://www.ccn.com/news/crypto/japan-classifies-crypto-financial-instrument-historic-shift/
1•giuliomagnifico•9m ago•0 comments

Show HN: Bunqueue – Saga workflow engine for Bun with embedded SQLite

https://bunqueue.dev/guide/workflow/
1•kernelvoid•10m ago•0 comments

Hungary Is a Laboratory for Illiberal Nationalism. The Results Are In

https://www.cato.org/commentary/hungary-laboratory-illiberal-nationalism-results-are
1•rwmj•11m ago•0 comments

Show HN: I rebuilt a 2000s browser strategy game on Cloudflare's edge

https://kampfinsel.com/
1•parzivalt•12m ago•0 comments

I built a pure WGSL LLM engine to run Llama on my Snapdragon laptop GPU

https://github.com/Beledarian/wgpu-llm
1•Beledarian•13m ago•1 comments

Scaling Managed Agents: Decoupling the brain from the hands

https://www.anthropic.com/engineering/managed-agents
1•jbredeche•18m ago•0 comments

Keyboards

https://mastodon.social/@keyboards
1•doener•18m ago•0 comments

Designing a Programming Language Around Korean's SOV Grammar Instead Of

https://github.com/wwoosshh/geul-lang/releases/tag/v0.7.1
2•birdculture•21m ago•0 comments

Hungarian government creds left in the safe hands of 'FrankLampard'

https://www.theregister.com/2026/04/11/hungary_government_logins_breach/
3•Brajeshwar•22m ago•0 comments

Plastic Pollution Is Bad Enough. Burning It Can Be Worse

https://undark.org/2026/04/10/burning-plastic-pollution-indonesia/
1•cocothem•24m ago•0 comments

Project Zomboid: Patching a Zero Day Exploit

https://store.steampowered.com/news/app/108600/view/494973688019419974
1•uyzstvqs•27m ago•0 comments

PSA Crypto: The P is for Portability

https://danielmangum.com/posts/psa-crypto-portability/
2•hasheddan•29m ago•0 comments

MRRescue

https://www.mrrescue.pro/
2•donihernandez•31m ago•0 comments

AI Datacenters Are Becoming Strategic Targets

https://members.sigmazero.cc/posts/155180337
3•sigmazero•31m ago•0 comments

Turning Chinese Character Structure into a Strategy Game

https://store.steampowered.com/app/4218330/WordJoy/
2•PaulHoule•35m ago•0 comments

Configuration flags are where software goes to rot

https://00f.net/2026/04/11/config-flags/
2•jedisct1•38m ago•0 comments

We Built Every Employee at Ramp Their Own AI Coworker

https://twitter.com/sebgoddijn/status/2042285915435937816
3•lsowen•42m ago•1 comments

Why I'm Quitting Physics (and moving to AI) [video]

https://www.youtube.com/watch?v=iz7sCKbW8KM
2•amelius•45m ago•0 comments

Researchers used AI to analyze 400k Reddit posts, revealing GLP-1 side effects

https://www.seas.upenn.edu/stories/penn-researchers-use-ai-to-surface-unreported-glp-1-side-effec...
2•giuliomagnifico•47m ago•0 comments

The Miracle and Mystery of Artemis II

https://washingtonmonthly.com/2026/04/10/the-miracle-and-mystery-of-artemis-ii/
1•hkhn•51m ago•0 comments

AI 2027 Tracker

https://ai2027tracker.com/
1•frozenseven•53m ago•0 comments

Artemis II crew 'happy and healthy' after completing historic mission to Moon

https://www.bbc.com/news/live/c3dlnzv5r71t
1•hkhn•53m ago•0 comments

An Introduction to Obsidian

https://bryanhogan.com/blog/obsidian-introduction
1•bryanhogan•54m ago•0 comments