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•12mo 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•12mo 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•12mo 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•12mo 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•12mo ago
"def" is too generic.

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•12mo ago
Agreed

Sheep Music and Wedding Bands

https://www.autodidacts.io/bookworm-pronunciation-syndrome/
1•Curiositry•1m ago•0 comments

RadixArk's $100M Seed Round

https://www.radixark.com/blog/radixark-launches-100m-seed
1•shenli3514•3m ago•0 comments

Tracing Garbage Collection

https://en.wikipedia.org/wiki/Tracing_garbage_collection
1•Brysonbw•4m ago•0 comments

.de TLD Issue Solved

2•kaltsturm•5m ago•0 comments

Why Only Rich Kids Make It in Music Today

https://www.youtube.com/watch?v=sjJrR1OdAIg
3•tcp_handshaker•5m ago•0 comments

Locality of Reference

https://en.wikipedia.org/wiki/Locality_of_reference
1•Brysonbw•5m ago•0 comments

How to Scale Your Model: A Systems View of LLMs on TPUs

https://jax-ml.github.io/scaling-book/
2•firasd•10m ago•0 comments

I Like Using Docker Compose in Production

https://nickjanetakis.com/blog/why-i-like-using-docker-compose-in-production
2•nonrecursive•10m ago•0 comments

DNSSEC Authentication Chain

https://dnsviz.net/d/chaoswelle.de/dnssec/
1•doener•11m ago•0 comments

Krabby: Making a Fast Rust Compiler

https://bal-e.org/speed/krabby/
1•aw1621107•11m ago•0 comments

Google DeepMind Workers Vote to Unionize over Military AI Deals

https://www.wired.com/story/google-deepmind-workers-vote-to-unionize-over-military-ai-deals/
4•breve•13m ago•0 comments

Jeff's CTO Home Laboratory

https://www.youtube.com/watch?v=-b3t37SIyBs
2•tcp_handshaker•13m ago•0 comments

My data eng secret weapon: sns and firehose and snowflake

https://gigatexal.blog/pages/aws-firehose-snowflake/aws-firehose-snowflake.html
1•gigatexal•14m ago•1 comments

The Audio Industry Is Grappling with the Rise of 'Podslop'

https://www.bloomberg.com/news/newsletters/2026-04-30/-podslop-proliferation-is-challenging-the-a...
1•breve•14m ago•0 comments

Blink – AI Assistant. Knowledge Destination

https://blink-oi.vercel.app
2•Pascal1997•14m ago•0 comments

Claude, I order a whiskey sour, I get spaghetti

https://claude.ai/share/328f95d9-1c15-4eb5-accb-d1bf5bcaa713
3•nilsnolde•15m ago•1 comments

I registered the domain from Cloudflare's DMARC docs

https://www.sh.consulting/blog/cloudflare-dmarc-documentation-third-party-example-exposure
2•alexshakhov•15m ago•0 comments

Before You Score the Model, Score the Benchmark

https://centre-for-software-excellence.github.io/docs/blog/before-you-score-the-model-score-the-b...
1•keheliya•17m ago•0 comments

The Frozen Banana Republic (2014)

https://modernfarmer.com/2014/11/frozen-banana-republic/
1•downbad_•20m ago•1 comments

Open Claw Had a Rough Week

https://openclaw.ai/blog/openclaw-rough-week
2•rmason•22m ago•0 comments

Zuckerberg 'personally authorized' Meta's copyright infringement, publishers say

https://apnews.com/article/meta-mark-zuckerberg-ai-publishers-lawsuit-llama-5609846d4d840014974a8...
10•jethronethro•22m ago•1 comments

Introducing Svelte (2016)

https://svelte.dev/blog/frameworks-without-the-framework
3•downbad_•27m ago•3 comments

Shared Lexical Task Representations Explain Behavioral Variability in LLMs

https://arxiv.org/abs/2604.22027
1•PaulHoule•27m ago•0 comments

SingleRide: Longest route on NYC Subway without visiting the same station twice

https://singleride.nyc/
2•TMWNN•27m ago•0 comments

Dating Is a Rich Person's Game Now

https://www.wired.com/story/dating-is-a-rich-persons-game-now/
3•Akababa•27m ago•0 comments

The Inevitable Horror Of Biological Computing [11 min] [video]

https://www.youtube.com/watch?v=wBtr8iv7onA
1•luispa•29m ago•0 comments

SEC Proposes Amendments to Permit Semiannual Reporting by Public Companies

https://www.sec.gov/newsroom/press-releases/2026-42-sec-proposes-amendments-permit-optional-semia...
1•divbzero•29m ago•0 comments

Hong Kong's Secret City: A Labyrinth for 50,000 People (1989) [video]

https://www.youtube.com/watch?v=S-rj8m7Ssow
1•exvi•30m ago•0 comments

Show HN: Two easing curves and no animation library

https://frigade.com/blog/two-curves-no-library
1•pancomplex•31m ago•0 comments

AI Tools Directory and Comparison Platform

https://comparatif.ai-explorer.io
1•LaVoixDuFutur•34m ago•0 comments