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

New Documents Detail Nine-Figure, Silicon Valley–Funded "Abundance Movement"

https://prospect.org/2026/06/12/new-documents-detail-nine-figure-silicon-valley-funded-abundance-...
1•slater•2m ago•0 comments

Extinction-Level Capitalism

https://matthewbutterick.com/extinction-level-capitalism.html
1•csbartus•3m ago•0 comments

Phoenix LiveView 1.2 Released

https://phoenixframework.org/blog/phoenix-liveview-1-2-released
1•ksec•3m ago•0 comments

Show HN: I made a crossword (Motplot) to stop losing bananagrams to my grandma

https://motplot.app/
1•jamwise•3m ago•0 comments

Quick: An internal hosting platform for the AI era

https://shopify.engineering/quick
1•ksec•5m ago•0 comments

Forked TensorZero after it was archived after raising $7.3M

https://github.com/agentify-sh/gateway
1•agentifysh•14m ago•0 comments

Initial Results on Legal Agent Benchmark

https://twitter.com/gabepereyra/status/2059320727988224128
1•gmays•17m ago•0 comments

Show HN: Agent Gate – a deterministic CI firewall for AI-generated PRs

https://github.com/sjh9714/Agent-Gate
1•sjh9714•18m ago•0 comments

Design Engineer at Solve Intelligence

https://foundersarehiring.com/job/on-site/design-engineer-6a2bbb90fd4cdebe8c4ed02f
1•niksmac•19m ago•0 comments

Co-Founder Honch

https://www.honch.io/
2•Raeedzz•20m ago•1 comments

Hi HN: Loopy agent, meta-loop engineer my Claude Code and codex sessions

https://github.com/secretbuilds/loopy
1•secretbuilds•34m ago•1 comments

Pac-Man, but You're the Ghost

https://garrit.xyz/posts/2026-06-13-pac-man-but-you-re-the-ghost
2•mindracer•38m ago•1 comments

Ask HN: Do you buy the domain first or build first then domain?

1•akashwadhwani35•38m ago•0 comments

PeopleSoft 0-day affecting organizations steals gigabytes of data

https://arstechnica.com/security/2026/06/peoplesoft-0-day-affecting-hundreds-of-organizations-ste...
2•geoffbp•42m ago•0 comments

Track tokens usage and AI Subscriptions across major AI platforms

https://www.tokens4breakfast.app
1•1Kapish•47m ago•1 comments

Software Architecture Guide

https://martinfowler.com/architecture/
3•laxmena•49m ago•0 comments

Show HN: Winamp's Geiss and Milkdrop ported to WebGL

https://milkbar.fm/
2•vlbeta•1h ago•0 comments

OmniCloud is a full-stack cloud drive aggregation platform

https://github.com/dimartarmizi/OmniCloud
1•tonyhart7•1h ago•0 comments

Free SQL→ER diagram tool, runs in the browser, nothing uploaded

https://sqltoerdiagram.com/
2•robhati•1h ago•0 comments

Show HN: I created a simple searchable list of abandoned WordPress Plugins

https://vimsy.io/plugin-graveyard
2•arximughal•1h ago•0 comments

Running Out of Context? No More

https://github.com/shrey1110-dotcom/CLAUDE_API_SAVER
1•otto_api•1h ago•0 comments

AAD-50: multi-cycle NVMe sanitize with per-cycle hardware verification

https://github.com/yonasabeselom/aad50
1•yonasabeselom•1h ago•0 comments

UK announces $1.5B AI infrastructure plan

https://www.reuters.com/world/uk/uk-sets-out-15-billion-ai-hardware-plan-with-supercomputer-chip-...
3•Soumya_Max•1h ago•2 comments

What old technology do you still use regularly?

2•Soumya_Max•1h ago•4 comments

What happens if you click the first link on every Wikipedia article? [video]

https://www.youtube.com/watch?v=dpLG3DpfSlM
2•wilsonhobbs•1h ago•0 comments

Zero-knowledge SAT validation engine

https://ptsf-engine.vercel.app/
1•curio_Pol_curio•1h ago•0 comments

Type Theory Forall #62 – Dependent Haskell – Vladislav Zavialov [video]

https://www.youtube.com/watch?v=COBZZb6Iu2Q
5•matt_d•1h ago•0 comments

Automating my job away

https://austinhenley.com/blog/automatingmyjob.html
2•azhenley•1h ago•0 comments

The Redistribution of Housing Wealth Caused by Rent Control [pdf]

https://www.rhawa.org/file/secure/shs-the-impact-of-rent-control-in-st-paul.pdf
57•luu•1h ago•64 comments

Half-Life able to run on ReactOS

https://xcancel.com/reactos/status/2064839936059011207
3•zdw•1h ago•1 comments