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

Caire: Content aware image resize library

https://github.com/esimov/caire
1•astroanax•33s ago•0 comments

Gristle.app: A free, browser-based animation editor (like Flash, no install)

https://gristle.app
1•samponeill•1m ago•0 comments

Democracy Perception Index 2026 [pdf]

https://146165116.fs1.hubspotusercontent-eu1.net/hubfs/146165116/DPI%202026.pdf
1•slowin•1m ago•0 comments

Gemini 4 Argon in Google Antigravity

https://antigravity.google/blog/gemini-4-argon-in-google-antigravity
1•stwrt•2m ago•0 comments

Child Mortality Has Declined in All World Regions

https://ourworldindata.org/data-insights/child-mortality-has-declined-in-all-world-regions
1•karakoram•2m ago•0 comments

A Writer's Life: A Life

https://www.poetryfoundation.org/articles/1829132/a-writers-life-a-life
1•smileduck•2m ago•0 comments

DNS Doom – No shame in the Domain Name game: DNS is doomed

https://www.theregister.com/columnists/2026/10/12/no-shame-in-the-domain-name-game-dns-is-doomed-...
1•baud147258•3m ago•0 comments

Show HN: Sayso, free open source dictation for Mac, Windows, and Linux

https://github.com/watzon/sayso
1•watzon•3m ago•0 comments

Ask HN: Present, near-future state of nuclear (betavoltaic, 6C, etc.) batteries?

1•eth0up•3m ago•0 comments

Show HN: Surprisal – a language identifier in ~250 lines of C. No ML,no training

https://github.com/ahhyoushh/zip-surprisal
1•iushh•4m ago•0 comments

Google's new WeatherNext 3 AI enabled this free weather app

https://www.freethewind.com/whyfree
1•timetrax•6m ago•0 comments

The Private Life of a Cat (1945)

https://publicdomainreview.org/collection/the-private-life-of-a-cat-ca-1945/
1•lufxen•7m ago•0 comments

Nvidia falls to 34% of China's AI chip market as Huawei takes 28%

https://theinference.org/article/nvidia-falls-to-34-of-china-s-ai-chip-market-as-huawei-takes-28
2•vincentjiang•7m ago•0 comments

Slopcore – A Guide to Claudia

https://claudia.gallery/
1•phillc73•8m ago•1 comments

Unparliamentary Language

https://en.wikipedia.org/wiki/Unparliamentary_language
1•samclemens•8m ago•1 comments

Redesigning Source Control at Anthropic

https://www.anthropic.com/engineering/redesigning-source-control
2•Philpax•9m ago•0 comments

The fastest open Firebase alternative – an 8-way benchmark comparison

https://github.com/burggraf/baas-bench/tree/main/results/realworld-api-v3/project-management-capa...
1•barfoos•10m ago•0 comments

Show HN: RemainderBot – spends leftover Claude/Codex quota on reviewable PRs

https://github.com/arimwilson/openremainderbot
2•ariwilson•11m ago•1 comments

Keepword a decentralised network that checks if a company silently edits TOS

https://keepword.net/
2•Aelthorim•12m ago•1 comments

The Rise and Flush of Skibidi Toilet

https://rollingstoneindia.com/the-rise-and-flush-of-skibidi-toilet/
1•rdmuser•14m ago•0 comments

Show HN: Revise CLI

https://www.npmjs.com/package/revise
1•artursapek•15m ago•1 comments

The AI Enthusiasm Gap

https://mitch.website/blog/ai-enthusiasm-gap/
2•hyperultra•16m ago•0 comments

Launch HN: Consus (YC F24) – LLM gateway for companies handling sensitive data

5•ericmags•18m ago•1 comments

Perplexity's AI agents helped build a database with Rust

https://thenewstack.io/perplexity-cobbledb-ai-database/
1•shenli3514•18m ago•0 comments

Now That Information Is Free, What's a College Campus For?

https://commonedge.org/now-that-information-is-free-whats-a-college-campus-for/
12•surprisetalk•19m ago•15 comments

Server44 – Tip tracker for servers and bartenders

https://server44.app/
1•ehm-tech•23m ago•0 comments

Factories are automated. Their back offices are stuck in 1995

https://www.lleverage.ai/company/blog/why-your-back-office-spends-80-of-time-on-admin-the-researc...
1•leonardopiumi•23m ago•0 comments

Scammers Steal Millions from Food Stamp Recipients. Congress Won't Fix It

https://www.propublica.org/article/food-stamp-snap-benefits-theft-skimmers-fraud
3•hn_acker•24m ago•1 comments

China Reduced Extreme Poverty Fast, but Indonesia Hasn't Been Far Behind

https://ourworldindata.org/data-insights/china-reduced-extreme-poverty-fast-but-indonesia-hasnt-b...
3•karakoram•25m ago•0 comments

Bundestrojaner

https://pluralistic.net/2026/10/13/petards-r-us/
1•hn_acker•25m ago•0 comments