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

Sony Music, Universal Music Group Sue Suno over Label-Backed Model

https://variety.com/2026/music/news/sony-music-universal-music-sue-suno-label-backed-model-123686...
1•ilamont•1m ago•0 comments

PearOS

https://pearos.xyz/
1•macote•2m ago•0 comments

Crypto Blew Its Big Moment–and the Blame Game Has Begun

https://www.wsj.com/finance/currencies/crypto-blew-its-big-momentand-the-blame-game-has-begun-dff...
2•lsowen•2m ago•0 comments

Show HN: Keep your social media active without posting every day

https://post.buzz/
1•out0fbounds•6m ago•0 comments

Humble Proxy Detection

https://proxy.kyc.red/
1•jwally•8m ago•1 comments

Polygonal Outer Billiard Discontinuity Sets

https://lael.dev/talks/imso
1•andsoitis•8m ago•0 comments

Do birds have accents? the regional differences in birdsong

https://theconversation.com/do-birds-have-accents-the-fascinating-regional-differences-in-birdson...
1•bryanrasmussen•11m ago•0 comments

Show HN: lgtm? – Jev-powered checks that make agents test

https://github.com/stardeckai/lgtm
1•jennmueng•13m ago•0 comments

Beyond jj: config & tools ecosystem

https://andre.arko.net/2026/09/16/beyond-jj-config-and-tools-ecosystem/
1•torutofu•17m ago•0 comments

Qwen-Image-2.1: Compact, efficient, and unified image creation

https://qwen.ai/blog?id=qwen-image-2.1
2•jmillikin•21m ago•0 comments

BragJack attacks hijack AI browser agents through malicious extensions

https://www.bleepingcomputer.com/news/security/bragjack-attacks-hijack-ai-browser-agents-through-...
1•sbulaev•23m ago•0 comments

Show HN: Lathe – app, Postgres and auth on your own machine, from $15/mo

https://lathe.live/
2•evgenileonti•25m ago•0 comments

Show HN: ColliePWA, a self-hosted mobile terminal for coding agents, with alerts

https://colliepwa.dev/
2•asar•26m ago•0 comments

Dr. Lael Edwards-Costa's Interactive Billiards Demo

https://lael.dev/billiards
1•vismit2000•27m ago•0 comments

The Bishop Ring Habitat

https://en.wikipedia.org/wiki/Bishop_ring_(habitat)
2•dtj1123•28m ago•0 comments

Show HN: Presence.el Online status and simple messaging for Emacs

https://git.andros.dev/andros/presence.el
1•andros•30m ago•0 comments

Show HN: Airmash – HTML5 Multiplayer Missile Warfare

https://airma.sh/
2•fivesigma•31m ago•0 comments

Ledger – walk-forward validation toolkit for retail trading strategies

https://walkfowardvalidationtoolkit.netlify.app/
1•kyoto_fixes•31m ago•0 comments

The best piece of art ever made? Enzo Mari's Autoprogettazione

https://medium.com/@hannahparadisdesign/the-best-piece-of-art-ever-made-enzo-maris-autoprogettazi...
1•Kaibeezy•31m ago•0 comments

A window switcher that does nothing until you press Option

https://alexvestea.com/
2•avestea•32m ago•0 comments

Build an Accessible Book Reader: A Raspberry Pi Scanner That Reads Printed Books

https://www.instructables.com/Build-an-Accessible-Book-Reader-a-Raspberry-Pi-Sca/
1•rbanffy•32m ago•0 comments

Claude Found Seed-indpendent collisions in most popular hash functions

https://thomasahle.com/blog/adversarial-examples-for-hashes/
2•thomasahle•35m ago•0 comments

Amtrak: A New Era of Rail Travel Has Arrived [video]

https://www.youtube.com/watch?v=J9Zj_0U1Agg
1•bennett_dev•37m ago•0 comments

The People–OK, the Men–Who Still Love Bitcoin

https://slate.com/business/2026/09/bitcoin-cryptocurrency-masculinity-economy-emotional-tether.html
2•pseudolus•41m ago•1 comments

Why Nothing Looks Cool Anymore [video]

https://www.youtube.com/watch?v=HgjXjPP_p3s
1•Kaibeezy•45m ago•0 comments

AAA AI – Autonomous AI agent squads for local and cloud LLMs

https://aaaai.me/
2•pokidovkirill•45m ago•0 comments

King Ludd

https://www.astralcodexten.com/p/king-ludd
1•andromaton•46m ago•0 comments

Self-generated prompt injections in compaction summaries

https://simonwillison.net/2026/Sep/17/compaction-summaries/
1•hn9zmdcaou•49m ago•0 comments

Show HN: A poetry site for developers – solve a code puzzle to post

https://developerpoetry.com/
1•attels33•50m ago•0 comments

OpenSaga: Matching decompilation of the Lego Star Wars

https://opensaga.dev/
2•epestr•51m ago•0 comments