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•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

Understanding Synthetic Users and Synthetic Data: Future of AI-Powered Research

https://zenodo.org/records/20271450
1•anasteciadunu•1m ago•0 comments

Mistral Developing New AI Model for Banks Lacking Mythos Access

https://www.bloomberg.com/news/articles/2026-05-13/mistral-developing-new-ai-model-for-banks-lack...
3•Harvesterify•1m ago•0 comments

ExplodingWeb – find rising sites, niches and hidden opportunities

https://explodingweb.io/
1•onion92•1m ago•0 comments

Building a 1-Outlet, 4-GPU Workstation

https://jbarrow.ai/2026-05-18-gpu-workstation/
1•jbarrow•3m ago•0 comments

Sum-Check as an Algebraic Tensor Reduction: Part III

https://blog.zksecurity.xyz/posts/tensor-reductions-3/
2•marcobesier•3m ago•0 comments

Casual Archivist's Short History of Business Card: Versailles to Microsoft Word

https://themalin.co/journal/the-casual-archivists-short-history-of-the-business-card/
1•bookofjoe•3m ago•0 comments

Show HN: Catcher – An AI web testing tool where most tests never hit the API

https://github.com/Catcher2026/Catcher
1•Jasssss•4m ago•0 comments

Show HN: Engram adds universal context spine for AI coding IDEs

https://github.com/NickCirv/engram/releases/tag/v3.4.0
1•NickCirv•5m ago•0 comments

The era of free money may have ended

https://www.reuters.com/commentary/reuters-open-interest/g7-long-bond-stress-intensifies-2026-05-13/
3•latentframe•5m ago•0 comments

AI memory is not a database

https://altertable.ai/blog/2026-05-18-memory-is-not-a-database
1•fvaleye•6m ago•1 comments

Why large-scale donor programs are broken

https://www.theguardian.com/global-development/2026/may/16/aid-programmes-donors-pakistan-ngos-ci...
1•baigy•6m ago•0 comments

Show HN: I made a pulsing conductor's baton

https://bertwagner.com/posts/creating-a-pulsing-conducting-baton-part-1/
1•bertwagner•6m ago•0 comments

Ask HN: Do you know what data your AI coding agent sends to the cloud?

1•lbrauer•7m ago•0 comments

Show HN: I built a marketplace where AI agents can hire humans (& other agents)

https://gigiac.com/
1•djgel•7m ago•1 comments

'We mould trees to grow into the shape of chairs'

https://www.bbc.co.uk/news/articles/cvg0yy3gp71o
3•bauc•8m ago•0 comments

Unusual uses of OEIS sequences on GitHub

https://www.jeremykun.com/shortform/2026-04-13-0700/
2•surprisetalk•9m ago•0 comments

Apple Is Making Hit Products and High Profits from Imperfect Chips

https://www.wsj.com/tech/apple-is-making-hit-products-and-high-profits-from-imperfect-chips-d32c21d8
1•fortran77•10m ago•1 comments

Russia is starting to lose ground in Ukraine

https://www.economist.com/graphic-detail/2026/05/17/russia-is-starting-to-lose-ground-in-ukraine
15•giuliomagnifico•13m ago•8 comments

Loneliness: South Korea's silent epidemic [video]

https://www.youtube.com/watch?v=QBb9Rvy_O-Y
1•teleforce•15m ago•0 comments

ClickHouse can do vector search. Faster than you'd expect

https://www.tinybird.co/blog/vector-search-improvements
3•gnzjgo•15m ago•0 comments

Ask HN: VSCode users what do you think about this

https://github.com/microsoft/vscode/issues/316987
2•cfunderburg•17m ago•1 comments

Waylandcraft: Wayland Compositor in Minecraft

https://github.com/EVV1E/waylandcraft
2•chipheat•17m ago•0 comments

Poland directs officials to ditch Signal in favor of 'secure' state alternative

https://www.theregister.com/security/2026/05/18/poland-builds-its-own-signal-amid-security-concer...
3•Bender•18m ago•0 comments

Hack Club-Where teens make cool stuff, website redesign

https://hackclub.com
1•dragonsenseiguy•19m ago•0 comments

Backup script ingested an accidental asterisk and deleted everything

https://www.theregister.com/storage/2026/05/18/backup-script-ingested-an-accidental-asterisk-and-...
2•Bender•19m ago•0 comments

Enough with the AI FOMO, go slow-mo, says Domo CDO

https://www.theregister.com/ai-ml/2026/05/17/enough-with-the-ai-fomo-go-slow-mo-says-domo-cdo/524...
8•Bender•19m ago•2 comments

Should I take my car to the carwash 50M away or walk?

https://twitter.com/openservai/status/2055663644944576846
4•k3030•20m ago•1 comments

Show HN: Layoutmaster cures DOM reflow with six simple API

https://www.layoutmaster.dev/
2•zhxiaoliang•20m ago•1 comments

Benedict Evans: AI eats the world (Spring 26) [pdf]

https://static1.squarespace.com/static/50363cf324ac8e905e7df861/t/6a0af5d0484fbf5fe9a7743e/177910...
9•topherjaynes•20m ago•0 comments

Polynomials, the Canonical Embedding, and Encoding

https://www.jeremykun.com/2026/04/29/ckks-polynomials-the-canonical-embedding-and-encoding/
2•surprisetalk•24m ago•0 comments