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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•11mo ago
Agreed

Children earn screen time by reading

https://play.google.com/store/apps/details?id=com.kiddyv.youtubeblocker&hl=en_US
1•qni•50s ago•1 comments

John Maynard Keynes: Newton, the Man

https://mathshistory.st-andrews.ac.uk/Extras/Keynes_Newton/
1•admp•1m ago•0 comments

Just Enough Chimera Linux

https://www.dwarmstrong.org/chimera-install-zfs/
1•speckx•1m ago•0 comments

Zuckerberg Didn't Think He Was Robotic Enough So Now He's Using AI

https://www.motherjones.com/politics/2026/04/zuckerberg-ai-meta-metaverse-employees/
2•cdrnsf•3m ago•0 comments

Palo Alto Networks Founder Agrees to Buy California Bank for AI Revamp

https://www.wsj.com/business/deals/palo-alto-networks-founder-agrees-to-buy-california-bank-for-a...
1•petethomas•4m ago•0 comments

Mythos, Muse, and the Opportunity Cost of Compute

https://stratechery.com/2026/mythos-muse-and-the-opportunity-cost-of-compute/
1•jbernardo95•6m ago•0 comments

Digital sovereignty isn't just a buzzword – it's the future

https://www.theregister.com/2026/04/13/digital_sovereignty/
2•abdelhousni•8m ago•0 comments

Three-node test of software-mediated time continuity

https://zenodo.org/records/19546807
1•gal-2•9m ago•0 comments

(AMD) Build AI Agents That Run Locally

https://amd-gaia.ai/docs
1•galaxyLogic•10m ago•1 comments

Thermite: The First Commercial Firefighting Robot Sold in the U.S.

https://www.howeandhowe.com/civil/thermite
2•Teever•12m ago•1 comments

Amazon Leo introduces gigabit-speed antenna for commercial aviation

https://www.aboutamazon.com/news/amazon-leo/amazon-leo-aviation-antenna-gigabit-wifi
1•bookofjoe•12m ago•0 comments

OpenAI Touts Amazon Partnership in Shift Away from Microsoft

https://www.pymnts.com/artificial-intelligence-2/2026/openai-touts-amazon-partnership-in-shift-aw...
1•saikatsg•13m ago•0 comments

Shape Grammar

https://en.wikipedia.org/wiki/Shape_grammar
3•o4c•13m ago•0 comments

The Simplicity of Humanness

https://alperenkeles.com/posts/on-the-simplicity-of-humanness/
1•alpaylan•13m ago•0 comments

Without RBAC for Skills and MCP, your org has root access to your company

https://www.sleuth.io/post/without-rbac-for-agent-skills-and-mcp-your-entire-organization-basical...
3•detkin•15m ago•2 comments

From Panthor to RK3588: Advancing graphics, video and SoC support in Kernel 7.0

https://www.collabora.com/news-and-blog/news-and-events/from-panthor-to-rk3588-advancing-graphics...
2•losgehts•17m ago•0 comments

Ask HN: Could online services "flood the zone" of compromised password lists?

1•justinluther•18m ago•0 comments

Among the Private Spies

https://www.lrb.co.uk/the-paper/v48/n06/vadim-nikitin/among-the-private-spies
2•jbegley•18m ago•0 comments

The 42-Day Vibe – A technical thriller about an AI-run company and context rot

https://bugramming.dev
1•codekidX•18m ago•0 comments

Miners Risk Their Lives for Himalayan Pink Salt [video]

https://www.youtube.com/watch?v=HjSQ10zDB0k
1•gmays•20m ago•0 comments

The Looming College-Enrollment Death Spiral

https://www.theatlantic.com/ideas/2026/04/college-enrollment-demographic-cliff/686750/
11•JumpCrisscross•20m ago•1 comments

Panther Lake is the real deal

https://world.hey.com/dhh/panther-lake-is-the-real-deal-4bd731f1
1•maluta•22m ago•0 comments

Show HN: Claude Code skills for network engineering and homelabs

https://github.com/arsallls/claude-network-skills
1•arsalsajjad•23m ago•0 comments

I Went to China to See Their Progress on A.I. We Can't Beat Them

https://www.nytimes.com/2026/04/13/opinion/china-ai-america-chipmakers.html
4•amgreg•23m ago•2 comments

SSH Pilot: Scala-based SSH tool for managing and testing remote server clusters

https://github.com/openmole/sshpilot
1•thunderbong•23m ago•0 comments

Show HN: GDL – I built an AI-powered invention engine

https://groundeddiscoverylabs.com/
1•Whyachi•25m ago•0 comments

Show HN: Lint-AI by RooAGI, a Rust CLI for AI Doc Retrieval

https://github.com/RooAGI/Lint-AI
1•rooagi•27m ago•0 comments

Mapcodes – free, open way to make locations on Earth addressable by a short code

https://www.mapcode.com
1•smartmic•28m ago•0 comments

Show HN: Ithihāsas – a character explorer for Hindu epics, built in a few hours

https://www.ithihasas.in
17•cvrajeesh•28m ago•2 comments

The "AI Vulnerability Storm": Building a "Mythos-Ready" Security Program [pdf]

https://labs.cloudsecurityalliance.org/wp-content/uploads/2026/04/mythosready-20260413.pdf
3•larve•31m ago•0 comments