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

1•aurumlabs•5s ago

Wrapping GTK4 in 800 lines of Clojure with Jolt

https://yogthos.net/posts/2026-08-29-glimmer-ui.html
1•yogthos•5m ago•0 comments

Redesigning the Inference Chip: From Nvidia GPU's Flaws to OpenAI Jalapeño

https://zartbot.github.io/blog/arch/jalapeno/en.html
1•hasheddan•8m ago•0 comments

What I Learned from My Mom (1941-2026)

https://experimentalliving.substack.com/p/what-i-learned-from-my-mom-1941-2026
2•NaOH•8m ago•0 comments

Appetite for insect protein is early evidence of an El Niño shock wave

https://www.wsj.com/economy/global/the-strongest-el-nino-in-a-generation-is-wreaking-havoc-on-glo...
1•cwwc•15m ago•0 comments

Syzygies and Higher Groupoids

https://hidden-phenomena.com/articles/anima
1•measurablefunc•18m ago•0 comments

Show HN: SSH Ache – open-source desktop SSH client with SFTP, tunnels and MCP

https://github.com/SSH-Ache/ssh-ache
1•tanvirmahin24•19m ago•0 comments

Show HN: Stop That Shit – a guard against unrequested hashes from coding agents

https://github.com/lennney/stop-that-shit
1•lennney•20m ago•0 comments

You or Someone You Love Could Be Next

https://robertreich.substack.com/p/you-or-someone-you-love-could-be
3•dxs•21m ago•0 comments

DIY Gene Gun [video]

https://www.youtube.com/watch?v=gRIMH3cx0iw
1•E-Reverance•24m ago•0 comments

Slop.speak – translate human speak to AI slop

https://slop-speak.pages.dev/
1•daavidhauser•25m ago•0 comments

Tencent Releases and Open-Sources Tencent Hy4 Preview

https://www.tencent.com/tencent-releases-and-open-sources-tencent-hy4-preview/
3•shenli3514•28m ago•1 comments

AI and the Commons

https://creativecommons.org/ai-and-the-commons/
2•arto•31m ago•1 comments

How I made Rustdoc 33% faster in one week

https://noahlev.org/blog/2026/08/27/making-rustdoc-faster/
2•camelid•31m ago•1 comments

The new Go JSON API: twice as fast, or 1.5x slower?

https://lemire.me/blog/2026/08/29/the-new-go-json-api-twice-as-fast-or-1-5x-slower/
1•ingve•32m ago•0 comments

Domain-Driven Agents

https://coldtake.dev/blog/domain-driven-agents
2•AlarQ•33m ago•0 comments

Subs, the cloud native agent harness

https://substructure.ai/
1•handfuloflight•33m ago•0 comments

Signal Cartel a Home for Peaceful Explorers

https://signalcartel.org/
1•Bluestein•35m ago•0 comments

The elementary school pickup incident and the road ahead

https://shitposting.ai/pickup-incident/
1•mkeeter•36m ago•0 comments

Beyond Booleans

https://overreacted.io/beyond-booleans/
3•m-hodges•38m ago•0 comments

There oughta be a Lego marble run

https://there.oughta.be/a/lego-marble-run
1•_Microft•39m ago•0 comments

Should the press "run toward" AI?

https://www.cjr.org/analysis/should-the-press-run-toward-ai-tom-rosenstiel-new-book-next-journali...
1•thm•41m ago•0 comments

All-in-one AI job search platform, resume to offer

https://rezoom.io/
1•mynameisgoodi•41m ago•0 comments

Eight Things to Know about Large Language Models(2023)

https://arxiv.org/abs/2304.00612
1•turingbook•44m ago•1 comments

A safe MySQL upgrade that wasn't so safe

https://blog.elis.cc/articles/a-safe-mysql-upgrade-that-wasnt-so-safe/
2•el1s7•45m ago•0 comments

One Model, Many Views: Type-Safe Transforms with Valibot and Doba

https://valibot.dev/blog/same-data-different-shapes/
1•karol-broda•48m ago•1 comments

Polyend Keys – A Mechanical QWERTY Keyboard for Musicians

https://www.synthtopia.com/content/2026/08/27/polyend-keys-a-mechanical-qwerty-keyboard-for-music...
1•oidar•49m ago•0 comments

Warp builds self-improving agents on Claude

https://claude.com/blog/how-warp-builds-self-improving-agents-on-claude
28•shenli3514•52m ago•18 comments

Show HN: Moe-Direct – MoE Models far larger than your RAM, on a consumer desktop

https://github.com/tmxkzm1925-max/MoE-Direct
1•tmxkzm1925-max•54m ago•0 comments

WinUI development is now happening on GitHub

https://github.com/microsoft/microsoft-ui-xaml/discussions/10700
1•neversaydie•57m ago•0 comments