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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•10mo ago
Agreed

A terminal-style AI coding agent running on Cloudflare Workers

https://github.com/qaml-ai/pi-worker/tree/main/examples/terminal-agent
1•tosh•3m ago•0 comments

Is the Future of AI Local?

https://tombedor.dev/open-source-models/
1•mpweiher•4m ago•0 comments

Show HN: MCP-scan – Security scanner for MCP server configs

https://github.com/rodolfboctor/mcp-scan
1•AbanoubRodolf•5m ago•0 comments

Impact of AI on the practice of math analogous to cars on evolution of cities

https://mathstodon.xyz/@tao/116252708577614828
1•ColinWright•7m ago•0 comments

Show HN: Free Online Audio Cut – Trim MP3, WAV and More

https://audiocut.io/
1•DoubleStar•8m ago•0 comments

The Great CSS Expansion

https://blog.gitbutler.com/the-great-css-expansion
1•futurecat•13m ago•0 comments

Canonical joins the Rust Foundation as a Gold member

https://rustfoundation.org/media/canonical-joins-the-rust-foundation-as-a-gold-member/
1•jnsgruk•14m ago•0 comments

GB News seems to have become Reform TV–and Ofcom hasn't stopped it

https://www.prospectmagazine.co.uk/ideas/media/72784/gb-news-reform-tv-no-one-stopped-it
3•stuaxo•18m ago•0 comments

Rated Days – Rate your day and track your life (iOS)

https://apps.apple.com/tr/app/rated-days-daily-life-journal/id6759349207
3•vcdiren•23m ago•0 comments

BYD Battery-Box HVB [video]

https://www.youtube.com/watch?v=WPTgg3joL5E
2•thelastgallon•25m ago•0 comments

MCP Registry – Open-source discovery layer for 20 Model Context Protocol servers

https://github.com/SirhanMacx/mcp-registry
1•machinaMKT•26m ago•0 comments

Precision from simple parts - Machine Thinking[video]

https://www.youtube.com/watch?v=8VyyNsifckU
1•pillars•28m ago•0 comments

Huel Joins Danone

https://huel.com/pages/huel-joins-danone
3•aquir•29m ago•0 comments

ULA again fails to launch a satellite; military transfers mission to SpaceX

https://arstechnica.com/space/2026/03/spacex-swipes-yet-another-military-contract-from-united-lau...
2•isaacfrond•30m ago•0 comments

Solving Impossible Problems for Fun and Profit – Dan Gelbart [video]

https://www.youtube.com/watch?v=UTgrWmOk4q8
3•nill0•31m ago•0 comments

Product Management on the AI Exponential

https://claude.com/blog/product-management-on-the-ai-exponential
2•tablet•35m ago•0 comments

Digs: Offline-first iOS app to browse your Discogs vinyl collection

https://lustin.fr/blog/building-digs/
4•rlustin•37m ago•0 comments

Dataframe 1.0.0.0

https://discourse.haskell.org/t/ann-dataframe-1-0-0-0/13834
2•internet_points•37m ago•0 comments

Ask HN: Are you using OpenClaw or similar agents? How?

2•nclin_•43m ago•3 comments

History of the Baumann Weltrecord

https://www.metmo.co.uk/pages/history-of-the-baumann-weltrecord
2•thunderbong•45m ago•0 comments

Ask HN: Growth for me,is realizing how much I didn't know 6 months ago. Yours?

1•kathir05•46m ago•0 comments

Pilot and co-pilot killed after Air Canada jet collision at LaGuardia New York

https://www.theguardian.com/us-news/2026/mar/23/air-canada-plane-collides-with-ground-vehicle-at-...
3•n1b0m•46m ago•0 comments

Police raid exposes YouTube "view farm" packed with phones

https://uk.news.yahoo.com/police-raid-exposes-secret-view-200051203.html
4•cft•51m ago•1 comments

MacBook Air M5 has newer wireless than the 14-inch MacBook Pro M5

https://www.apple.com/mac/compare/?modelList=MacBook-Air-M5,MacBook-Air-M5-15,MacBook-Pro-14-M5
2•dev_grex•52m ago•1 comments

A Geometric Solution for the Hubble Tension and Dark Matter(Open Source Physics)

https://github.com/robus4D/The-R4-Geometry-Manifest-The-Unity-of-Physics
1•Robus4D•54m ago•0 comments

BidWix – Fast fair way to agree on a price, from creator of myNoise.net

https://bidwix.com/
1•veltas•55m ago•1 comments

Cyber Security firm Cybereason open-sourced their Linux EDR agent

https://github.com/Cybereason-Public/owLSM
1•TheOpenSourcer•57m ago•1 comments

A Year of Multi-Model Assisted Development

https://fullhoffman.com/2026/03/22/on-a-year-of-multi-model-development/
1•adunk•57m ago•0 comments

Token Optimisation with LLMs

1•xoptions•57m ago•0 comments

Kardashev Scale

https://en.wikipedia.org/wiki/Kardashev_scale
1•tosh•1h ago•0 comments