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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•6mo ago
Agreed

Crucial shutting down as Micron wants to sell RAM/SSDs to AI companies instead

https://www.theverge.com/news/837594/crucial-ram-ssd-micron-ai
1•kjhughes•1m ago•0 comments

Scientists Create Ultra Fast Memory Using Light

https://www.isi.edu/news/81186/scientists-create-ultra-fast-memory-using-light/
1•giuliomagnifico•1m ago•0 comments

Pantone makes a surprising choice for its 2026 color of the year

https://www.washingtonpost.com/home/2025/12/04/pantone-color-of-the-year-2026
1•yawnxyz•2m ago•1 comments

Hedra

1•bl4ckstack•3m ago•0 comments

Anthropic Interviewer: What 1,250 professionals told us about working with AI

https://www.anthropic.com/news/anthropic-interviewer
1•miltava•5m ago•0 comments

A secure cloud vault and usage-tracking service for all your LLM providers

https://blog.mozilla.ai/introducing-any-llm-managed-platform-a-secure-cloud-vault-and-usage-track...
2•mzlaai•6m ago•0 comments

Games That Pushed the Limits of the Sony PlayStation

https://racketboy.com/retro/games-that-pushed-the-limits-of-the-sony-playstation-ps1
1•tosh•6m ago•0 comments

Mental Models (2024)

https://allan.reyes.sh/models/
1•mooreds•7m ago•0 comments

Snapchat and FaceTime Banned in Russia

https://www.themoscowtimes.com/2025/12/04/roskomnadzor-confirms-its-blocking-snapchat-and-facetim...
2•defly•8m ago•0 comments

Why Are 38 Percent of Stanford Students Saying They're Disabled?

https://reason.com/2025/12/04/why-are-38-percent-of-stanford-students-saying-theyre-disabled/
3•delichon•9m ago•1 comments

Xzone Malloc

https://github.com/apple-oss-distributions/libmalloc/blob/af3c5dc3a540eeec030930b35b1349f4de40020...
1•gok•9m ago•0 comments

Vibecession: More Than You Wanted to Know

https://www.astralcodexten.com/p/vibecession-much-more-than-you-wanted
2•feross•10m ago•0 comments

Why PyTorch is an amazing place to work and Why I'm Joining Thinking Machines

https://www.thonking.ai/p/why-pytorch-is-an-amazing-place-to
1•vrnvu•10m ago•0 comments

How AI Is a Blessing and a Curse

https://substack.productmind.co/p/the-curse-of-ai-riches
1•okosisi•11m ago•0 comments

Super-Flat ASTs

https://jhwlr.io/super-flat-ast/
1•mmphosis•12m ago•0 comments

Russia blocks Snapchat, RIA reports

https://www.reuters.com/technology/russia-blocks-snapchat-ria-reports-2025-12-04/
1•schmuckonwheels•13m ago•0 comments

Show HN: LLM Debugging Traces

https://github.com/tomarrell/jtree
1•slicedbrandy•13m ago•0 comments

Show HN: ConvertDrop – Privacy-focused file converter in the browser

https://www.convertdrop.com/
1•BadgerSlayer•13m ago•0 comments

Generative AI is a Parasitic Cancer [video]

https://www.youtube.com/watch?v=-opBifFfsMY
1•ceving•13m ago•0 comments

Russia blocks Roblox and FaceTime amid growing rebuke of foreign tech platforms

https://www.cbc.ca/news/entertainment/russia-roblox-facetime-9.7002881
1•schmuckonwheels•14m ago•0 comments

Texas's Water Wars

https://www.newyorker.com/news/letter-from-the-southwest/texas-water-wars
1•PaulHoule•16m ago•0 comments

Han – A plugin marketplace for Claude Code built on Bushido principles

https://han.guru
1•jwaldrip•18m ago•1 comments

Ampcode / a Claude Code Alternative

https://ampcode.com/
1•krystofee•18m ago•0 comments

Show HN: After being laid off from a corporate job I built my first AI Startup

https://www.novichat.ai
2•antonio07c•19m ago•0 comments

Dan Wang on What China and America Can Learn from Each Other (Ep. 263)

https://conversationswithtyler.com/episodes/dan-wang/
1•paulpauper•21m ago•0 comments

Innovations in Health Care

https://marginalrevolution.com/marginalrevolution/2025/12/innovations-in-health-care.html
1•paulpauper•21m ago•0 comments

'Protestant Magic' Today

https://www.thefitzwilliam.com/p/protestant-magic-today
1•paulpauper•21m ago•0 comments

Travelers wear pajamas to airports in protest of government request

https://www.washingtonpost.com/travel/2025/12/04/airport-pajamas-duffy-video/
3•bookofjoe•23m ago•1 comments

Show HN: AQUA – model agnostic lightweight command line agent coordinator

https://vignesh07.github.io/aqua/2025/12/02/introducing-aqua.html
1•eigen-vector•26m ago•0 comments

Russia blocks Apple's FaceTime in mounting push against foreign tech platforms

https://www.reuters.com/business/retail-consumer/russia-imposes-restrictions-apples-facetime-app-...
2•coloneltcb•26m ago•0 comments