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

A SaaS Boilerplate So You Can Launch in Hours, Not Weeks

https://github.com/katarinapetrov19/ShipKit
1•katarinap19•22s ago•1 comments

What can Cloudflare's Browser Run do?

https://what-can-browser-run-do.examples.workers.dev/
1•fayazara•1m ago•0 comments

Turn any MP3 into a karaoke pitch game (Demucs and RMVPE and forced alignment)

https://pitchhighway.com/
1•gabrielpolyy•2m ago•0 comments

PostFast MCP – schedule social posts to 11 platforms from Claude/Cursor/ChatGPT

https://github.com/peturgeorgievv-factory/postfast-mcp
1•peturgeorgievv•2m ago•0 comments

Luxury markets burn trillions in human labor – here's an engineering solution

https://qasoft.wordpress.com/2013/11/10/luxury-and-its-impact-on-society/
1•qamaster•3m ago•0 comments

The Underground Logic Shaping the Suburbs [video]

https://www.youtube.com/watch?v=jHIkiGJ1PxM
1•surprisetalk•3m ago•0 comments

Sexually Rejected Flies Turn to Booze (2012)

https://www.science.org/content/article/sexually-rejected-flies-turn-booze
1•speckx•3m ago•0 comments

OpenOMB – Apportionment Tracker

https://openomb.org/
1•softwaredoug•4m ago•0 comments

81920 CPU Cores per Rack with AMD EPYC Venice at HPE Discover 2026

https://www.servethehome.com/81920-cores-per-rack-with-amd-epyc-venice-at-hpe-discover-2026/
2•ksec•7m ago•0 comments

Show HN: Talos – Open-source WASM interpreter for Lean

https://github.com/cajal-technologies/talos
3•mfornet•8m ago•0 comments

MCP-customs: NPM audit, but for MCP servers

https://github.com/mcpcustoms/mcp-customs
1•mcpcustoms•8m ago•0 comments

Develop magazine #19 (1994) [pdf]

https://vintageapple.org/develop/pdf/develop-19_9408_September_1994.pdf
1•gregsadetsky•12m ago•1 comments

How Alberta Eradicated Rats

https://worksinprogress.co/issue/albertas-war-on-rats/
1•tzury•13m ago•0 comments

The Big Dig: Learning from a Mega-Project [pdf]

https://www.nasa.gov/wp-content/uploads/2025/09/appel-the-big-dig.pdf
1•bluedino•13m ago•0 comments

Is this England's best World Cup team since 1966?

https://www.ft.com/content/a6995fe9-9459-4e71-8e58-1cf33a5689fd
1•helsinkiandrew•13m ago•0 comments

How Hackers Found a Back Door into the American Living Room

https://www.wsj.com/tech/cybersecurity/how-hackers-found-a-back-door-into-the-american-living-roo...
1•thm•13m ago•0 comments

CVE-2026-42530 – Nginx HTTP3/QUIC Use-After-Free

https://my.f5.com/manage/s/article/K000161616
1•kro•14m ago•0 comments

CI/CD Security Principles in 2026

https://worklifenotes.com/2026/06/18/ci-cd-security-principles-in-2026/
1•taleodor•15m ago•0 comments

An Introduction to Programming with Threads [pdf]

http://birrell.org/andrew/papers/035-Threads.pdf
1•ibobev•15m ago•0 comments

Why Runtime Reconstruction Is Only Half the Problem

https://blog.bridgexapi.io/runtime-reconstruction-created-a-new-problem
2•Bridgexapi•15m ago•0 comments

Show HN: Flexorch-audit – quality scoring and PII detection for LLM pipelines

https://github.com/flexorch/flexorch-audit
1•flexorch•15m ago•0 comments

Leviathan Waking

https://www.hyperdimensional.co/p/leviathan-waking
1•gmays•16m ago•0 comments

Where's the holistic AI productivity data?

https://rachelandrew.co.uk/archives/2026/06/11/wheres-the-holistic-ai-productivity-data/
1•speckx•17m ago•0 comments

Before Mythos, Satan: A 1990s Software Satanic Panic

https://newsletter.pessimistsarchive.org/p/before-mythos-satan-a-1990s-software
1•pr337h4m•18m ago•0 comments

There have been 4 major plane crashes in the US in 4 days. What is going on?

https://www.cnn.com/2026/06/17/us/there-have-been-four-major-plane-crashed-in-the-us-in-four-days...
2•Tomte•19m ago•0 comments

Show HN: Know which AI coding tools/MCPs/etc. are used to ship software

https://blog.codacy.com/the-visibility-problem-behind-ai-tool-adoption-in-engineering-teams
2•ARayOutOfBounds•19m ago•0 comments

Sort This Out

https://thedailywtf.com/articles/sort-this-out
1•montrealish•20m ago•0 comments

AI Socratic Blog Posts

https://aisocratic.org/blog
1•feulf•22m ago•1 comments

Netanyahu and Modi: the making of an unlikely alliance

https://www.ft.com/content/5829cf25-42c0-4aa4-84d7-9142ab66d6d4
2•JumpCrisscross•25m ago•0 comments

Windows stack limit checking retrospective, follow-up

https://devblogs.microsoft.com/oldnewthing/20260617-00/?p=112436
1•ibobev•27m ago•0 comments