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

Show HN: Mrs-Hybride-PQC – Hybrid Kyber1024 KEM 5-6x Faster Than HKDF-SHA256

https://github.com/A19dammer91/MRS-Hybride-PQC
1•A19dammer91•3m ago•0 comments

GLM-5.2: The Most Powerful Open Model yet and the Brutal Reality of Running It

https://vettedconsumer.com/glm-5-2-the-most-powerful-open-weight-model-yet-and-the-brutal-reality...
1•ermantrout•4m ago•0 comments

A modest proposal: Reformat everything to make documents more palatable to AI

https://www.theregister.com/ai-and-ml/2026/06/16/a-modest-proposal-reformat-everything-to-make-do...
1•gmays•5m ago•0 comments

Plop Linux

https://www.plop.at/en/ploplinux/index.html
1•modinfo•7m ago•0 comments

Prospective clinical study assumes one trial. What if there are two?

https://pubpeer.com/publications/A4D2D6AD194572CFA62BACD99C46D1
1•appleridge•7m ago•0 comments

Ask HN: Multi-LLM orchestration frameworks that collaborate?

1•ch3coohlink•9m ago•0 comments

CBC to stop airing NHL games after 74 years, end of free hockey on Canadian TV

https://www.theglobeandmail.com/sports/hockey/article-cbc-to-no-longer-air-nhl-hockey-ending-74-y...
2•1vuio0pswjnm7•14m ago•0 comments

Russian Dandelion plant offers solution to global rubber shortage

https://www.theguardian.com/science/2026/jun/17/plantwatch-russian-dandelion-solution-global-rubb...
1•oliculipolicula•18m ago•0 comments

Olympic Cyclist vs. Toaster: Can He Power It? [video]

https://www.youtube.com/watch?v=S4O5voOCqAQ
1•thunderbong•26m ago•0 comments

Apple allows alternative app stores, payments in Brazil

https://www.reuters.com/world/americas/apple-allows-alternative-app-stores-payments-brazil-after-...
1•virgulino•28m ago•0 comments

Coding Theory

https://en.wikipedia.org/wiki/Coding_theory
3•binyu•29m ago•0 comments

Went from zero interviews this year to landing 3 interviews this week

https://resume.metashark.io/
3•grantespo•30m ago•0 comments

AI has granted America new power

https://www.economist.com/leaders/2026/06/18/ai-has-granted-america-vast-new-power
2•andsoitis•31m ago•1 comments

Finally MCP's Tool Poisoning Gap Solved: A Protocol-Level Defense

https://github.com/modelcontextprotocol/modelcontextprotocol/discussions/2913
1•Raj_Sidwadkar•38m ago•0 comments

From Dream Job to 'The Gulag': Inside Staff Revolt Zuckerberg's Brutal AI Push

https://www.inc.com/bruce-crumley/from-dream-job-to-the-gulag-inside-the-meta-staff-revolt-over-z...
2•1vuio0pswjnm7•39m ago•0 comments

Datasette-apps: Apps that live inside Datasette

https://github.com/datasette/datasette-apps
2•doppp•47m ago•0 comments

Meta's AI agent for WhatsApp Business is now available globally

https://techcrunch.com/2026/06/03/metas-ai-agent-for-whatsapp-business-is-now-available-globally/
1•doppp•47m ago•0 comments

Datasette Apps: Host custom HTML applications inside Datasette

https://simonwillison.net/2026/Jun/18/datasette-apps/
13•lumpa•55m ago•3 comments

Observation is the layer under taste. We built it for AI runtime

https://twitter.com/damnventures/status/2067394719756251468
14•Cherepukhin•59m ago•0 comments

How to Build ChatGPT from Scratch: Understanding LLMs Step by Step

https://nextweekai.com/blog/build-chatgpt-from-scratch-guide/
1•javatuts•1h ago•0 comments

AI Governance Cannot Be a Tool Call

https://tenureai.dev/writing/ai-governance-cannot-be-a-tool-call/
4•jflynt76•1h ago•0 comments

Captcha audio going nuts (concerning) [video]

https://www.youtube.com/shorts/lbPwZyNsCR0
1•threaderr•1h ago•1 comments

What I Learned from Being Burned Alive

https://www.wsj.com/lifestyle/what-i-learned-from-being-burned-alive-95e91c88
3•Anon84•1h ago•1 comments

Meta lobbies Congress for protection from child-harm lawsuits

https://www.reuters.com/world/meta-lobbies-congress-protection-child-harm-lawsuits-2026-06-18/
8•jethronethro•1h ago•0 comments

1992 view of the problems of computer programming in 1992

https://blog.plover.com/2026/06/18/#fortran-i
3•tjwds•1h ago•0 comments

AI Holdouts in Tech Face 3 Times Higher Layoff Odds, Gallup Finds

https://finance.yahoo.com/technology/ai/articles/ai-holdouts-tech-face-3-095310222.html
3•littlexsparkee•1h ago•1 comments

Teen summer employment is headed for its worst year since 1948

https://fortune.com/2026/06/18/teen-summer-jobs-record-low-2026/
4•cheschire•1h ago•2 comments

Did Massachusetts Legalize Haggis?

https://www.cbsnews.com/boston/news/haggis-massachusetts-legal-scotland/
2•speckx•1h ago•0 comments

Writing Postcards with a 3D Printer

https://severinbucher.com/posts/writing-postcards-with-a-3d-printer/
3•typesafeJ•1h ago•0 comments

The Job Market Is Thawing

https://www.theatlantic.com/newsletters/2026/06/job-market-hiring-may/687640/
13•littlexsparkee•1h ago•1 comments