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

No Taco: This Is Complete US Strategic Failure

https://phillipspobrien.substack.com/p/midweek-update-5-this-is-no-taco
3•JumpCrisscross•2m ago•0 comments

Anthropic Claims Its New A.I. Model, Mythos, Is a Cybersecurity 'Reckoning

https://www.nytimes.com/2026/04/07/technology/anthropic-claims-its-new-ai-model-mythos-is-a-cyber...
2•nsoonhui•9m ago•0 comments

Show HN: AudioEditor – Free Online Audio Tools

https://audioeditor.org
3•Airyisland•18m ago•0 comments

Show HN: CCG – Block merges until devs prove they read their own diff

https://github.com/islandbytesio/commit_comprehension_gate
1•islandbytes•19m ago•0 comments

Ask HN: What are the odds Mythos is hype/bluff?

1•AbstractH24•19m ago•0 comments

Disney to Lay Off Up to 1k Employees in First Cuts Under New CEO Josh D'Amaro

https://deadline.com/2026/04/disney-layoffs-new-ceo-1236785214/
3•thunderbong•20m ago•0 comments

Meta launches new family of models: Muse

https://www.facebook.com/zuck/posts/nine-months-ago-we-founded-meta-superintelligence-labs-with-t...
1•umangsehgal93•24m ago•0 comments

State of Homelab 2026 – Evolution of a Self-Hosting Hobby

https://mrlokans.work/posts/state-of-homelab-2026/
3•swq115•26m ago•0 comments

Germany is building a 364-metre world’s tallest wind turbine in a coal mine

https://timesofindia.indiatimes.com/world/rest-of-world/germany-is-building-a-364-metre-worlds-ta...
1•rustoo•31m ago•0 comments

DuckTales: A DuckLake Story(Rethinking the Lakehouse with a Duck and a Plan)

https://medium.com/@tfmv/ducktales-a-ducklake-story-3b4d4e400578
1•b-man•32m ago•0 comments

Prospectus for the Hormuz Toll Booth IPO

https://www.wsj.com/world/middle-east/a-prospectus-for-the-tehran-toll-booth-ipo-43c06a87
1•RyanShook•33m ago•0 comments

I built a social platform with no karma, no downvotes, and no algorithm

https://www.thedrop.fyi/
1•bocksum•34m ago•0 comments

Help Denmark Buy California – Because Why Not?

https://denmarkification.com/
1•pabs3•40m ago•0 comments

News

https://en.wikipedia.org/wiki/Portal:Current_events/2026_April_2
1•openrockets•40m ago•0 comments

Code as a Crime Scene (2013)

https://www.adamtornhill.com/articles/crimescene/codeascrimescene.htm
2•vismit2000•42m ago•0 comments

Ask HN: S3(AWS) vs R2(CF)–Which is better?

1•wasimsk•43m ago•0 comments

You Can't Vibecode Trust [audio]

https://open.spotify.com/episode/3B5e5s3u3vPjsGPAjgCht9
2•mooreds•47m ago•0 comments

Claude Code plugin for LLM research with typed claims and conflict detection

https://github.com/grainulation/grainulator
3•volatilityfund•48m ago•0 comments

Rift – Deterministic Concurrency for Go

https://github.com/damienos61/rift
1•DamienOS•49m ago•0 comments

Harness engineering for coding agent users

https://martinfowler.com/articles/harness-engineering.html
3•mooreds•52m ago•0 comments

Global Cultural Change and Anxiety in Children and Adolescents

https://onlinelibrary.wiley.com/doi/10.1111/desc.70157
1•PaulHoule•53m ago•0 comments

Show HN: Preview.thedrive.ai – instant thumbnails for any document URL

https://preview.thedrive.ai
1•sftechdude•55m ago•0 comments

AI Is Weird

https://www.wheresyoured.at/ai-is-really-weird/
2•weakfish•1h ago•0 comments

Show HN: Feature release system with MCP agent controls

https://featureflare.com/
2•jsonstcyr•1h ago•0 comments

The Whitelist Won: How Anthropic Turned a Pentagon Blacklist into a Consortium

https://liminaldr.substack.com/p/the-whitelist-won
1•BlendedPanda•1h ago•0 comments

A Visual Guide to Gemma 4

https://newsletter.maartengrootendorst.com/p/a-visual-guide-to-gemma-4
2•vismit2000•1h ago•0 comments

Show HN: An agent-friendly image CDN built on Cloudflare Workers

https://img.pro
2•cr1st1an•1h ago•0 comments

Show HN: 2500 vision benchmarks / evals for Vision Language Models

https://github.com/Overshoot-ai/vlm-benchmarks
1•zakariaelhjouji•1h ago•0 comments

Demystifying Open Silicon – Matt Venn Is Democratizing Chip Design

https://www.siliconimist.com/p/tiny-tapeout-matt-venn
1•johncole•1h ago•0 comments

Show HN: Public Domain Audiobooks with AI (Azalea Audio)

https://apps.apple.com/us/app/azalea-audio/id6761150322
1•nbaronia•1h ago•1 comments