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

DeepMind and Singapore fine-tune an on-device Gemma model for scam detection

https://deepmind.google/blog/on-device-ai-scam-detection-mddi/
1•acossta•2m ago•0 comments

Men with Queer Nerves: The Jumping Frenchmen of Maine

https://publicdomainreview.org/essay/the-jumping-frenchmen-of-maine
1•acossta•4m ago•0 comments

Show HN: Organ – Run your company with autonomous agents

https://organ.app/start
1•johmu•4m ago•0 comments

AI CEO Interviews be like

https://www.youtube.com/watch?v=DlTNN0gvkLM
1•amai•4m ago•0 comments

Show HN: My AI agent kept quoting undated market numbers, so I built PreReason

https://www.prereason.com/
1•KalskiTheDan•5m ago•0 comments

Gemini vs ElevenLabs Voice Cloning

https://techstackups.com/comparisons/gemini-vs-elevenlabs-voice-cloning-tts/
1•ritzaco•5m ago•0 comments

Three EU VAT tools promise automatic reverse charge. I gave them one invoice

https://verkanto.eu/welcome/eu-vat-tools-reverse-charge-test
1•alex_builds_eu•6m ago•0 comments

What Will Happen to Indian IT?

https://asteriskmag.com/issues/15/what-will-happen-to-indian-it
1•surprisetalk•6m ago•0 comments

A curl audit by Aisle

https://daniel.haxx.se/blog/2026/10/14/a-curl-audit-by-aisle/
1•chmaynard•8m ago•0 comments

When 800 Tests Aren't Enough [audio]

https://maintainable.fm/episodes/gabriela-moreira-when-800-tests-arent-enough
1•mooreds•8m ago•0 comments

The Aaronson Oracle

https://aaronsonoracle.com/
1•routeroff•10m ago•0 comments

Show HN: Busymail – an IMAP email client with an MCP server for AI agents

https://busymail.app/
1•vedhavyas•10m ago•0 comments

GitHub App improvements for least privilege and management

https://github.blog/changelog/2026-10-13-github-app-improvements-for-least-privilege-and-management/
1•mooreds•10m ago•0 comments

Show HN: QuikRing – call any phone, including US 1-800 numbers, from a browser

https://quikring.com
1•Bran-QuikRing•10m ago•0 comments

Getty Images plans bankruptcy filing, to go private

https://www.reuters.com/business/getty-images-go-private-after-restructuring-deal-2026-10-12/
2•mooreds•11m ago•0 comments

AI researchers are taking up smoking to signal to other researchers

https://twitter.com/firesidealpha/status/2109310806005596521
2•bilsbie•11m ago•0 comments

What's on That Access Port?

https://danielmangum.com/posts/whats-on-that-access-port/
1•hasheddan•11m ago•0 comments

Show HN: LibreCosmosOs (game, runs in the browser, no signup)

https://libre-cosmos.zchira.workers.dev/
1•zchira•13m ago•0 comments

Anthropic reinvents source control as Claude floods the world with code

https://www.theregister.com/devops/2026/10/13/anthropic-reinvents-source-control-as-claude-floods...
1•itvision•15m ago•0 comments

A New Crop of Solar Panels Is the U.S.'s Best Hope of Catching China

https://www.nytimes.com/2026/10/05/business/energy-environment/tandem-solar-panels-us-china.html
1•bookofjoe•16m ago•1 comments

Rethinking Projector Training in Multimodal LLMs

https://arxiv.org/abs/2610.18598
1•sbulaev•19m ago•0 comments

A Generalization of the Pythagorean Theorem

https://www.johndcook.com/blog/2026/10/14/pythagorean-variation/
1•ibobev•20m ago•0 comments

Searchlify – Find any file on your Mac with natural language, 100% offline

https://searchlify.saposs.com
1•jimmy_lee•20m ago•1 comments

Nvidia's first GPU: GeForce 256

https://dfarq.homeip.net/nvidias-first-gpu-geforce-256/
2•ibobev•21m ago•0 comments

Max Toy, embattled Commodore president

https://dfarq.homeip.net/max-toy-embattled-commodore-president/
1•ibobev•21m ago•0 comments

Reform UK social media engagement drops after strikes on Russia data centres

https://www.thelondoneconomic.com/politics/reform-figures-see-social-media-engagement-drop-after-...
1•vrganj•21m ago•0 comments

Humxn Commits $50M to Buy Skilled Trades Data for Robotics Training

https://markets.businessinsider.com/news/stocks/humxn-research-labs-wants-to-buy-50-million-worth...
11•howdoweknowit•22m ago•0 comments

Show HN: Parflip – an Android memory game with zero ads and zero tracking

https://parflip.vercel.app/
4•Wittie•23m ago•0 comments

3D Holographic Fish Tank (DIY Project)

https://holographic-fish-tank.vercel.app/
3•DrDizzle•25m ago•0 comments

Smart people don't think others are stupid

https://sive.rs/ss
8•andsoitis•25m ago•0 comments