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•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

Anthropic Cofounder Joins Pope Leo, Warns of AI Job Losses

https://www.forbes.com/sites/aliciapark/2026/05/25/anthropic-billionaire-cofounder-joins-pope-leo...
1•alach11•49s ago•0 comments

Anthropic's Olah says AI must be guided from outside Big Tech

https://www.reuters.com/world/europe/anthropics-olah-says-ai-must-be-guided-outside-big-tech-2026...
1•alach11•1m ago•0 comments

Show HN: SailWP – WordPress theme that bundles 8 plugins in 94KB

https://sailwp.com
1•JoostBoer•5m ago•0 comments

How to get your team past the AI coding plateau

https://www.theaithinker.com/p/how-to-get-your-team-past-the-ai
1•adamfaik•9m ago•0 comments

Robot dogs with tech boss faces roam Berlin art exhibit [video]

https://www.youtube.com/watch?v=909UTYDtuGY
1•ohjeez•10m ago•0 comments

Show HN: Widget Cast – Video Widgets for iOS

2•kingofspain•11m ago•0 comments

Enhanced Games [with steroids]: only 1 record broken and 3 clean athletes win

https://www.theguardian.com/sport/2026/may/25/enhanced-games-results-record-clean-athletes-win
2•Geekette•11m ago•0 comments

How soon is now in PostgreSQL?

https://event-driven.io/en/how-soon-is-now-in-postgresql/
1•birdculture•11m ago•0 comments

The Stepford AI

https://dotart.blog/cobbles/the-stepford-ai
1•cdrnsf•12m ago•0 comments

Thomas Massie Promises to Expose More Names from Epstein Files

https://www.newsweek.com/thomas-massie-promises-to-expose-more-names-from-epstein-files-11989729
2•bushwart•12m ago•0 comments

Show HN: PhoneDiffusion – Local AI image generation for iOS

https://apps.apple.com/us/app/phonediffusion/id6762061991
5•rokgregoric•14m ago•0 comments

PID: Fast and High-Resolution Latent Decoding with Pixel Diffusion

https://research.nvidia.com/labs/sil/projects/pid/
1•nnx•14m ago•0 comments

The AI Compute Extensions (Ace) for x86 [pdf]

https://x86ecosystem.org/wp-content/uploads/2026/03/ACE-Whitepaper-v1.pdf
2•ksec•16m ago•0 comments

3D Printed Space Cadet Pinball [video]

https://www.youtube.com/watch?v=BU_02HABZ4s
1•pavel_lishin•17m ago•0 comments

Helium Mobile CEO calls early adopters 'parasites' after ending free plan

https://www.androidauthority.com/helium-mobile-ceo-comments-3670637/
2•Brajeshwar•19m ago•0 comments

Comparisons as Predictable as the Sunrise

https://pudding.cool/2026/05/similes/
2•surprisetalk•22m ago•0 comments

Pixar's 22 Rules of Storytelling (2013)

https://www.aerogrammestudio.com/2013/03/07/pixars-22-rules-of-storytelling/
1•downbad_•23m ago•0 comments

Less is exponentially more (2012)

https://commandcenter.blogspot.com/2012/06/less-is-exponentially-more.html
1•downbad_•23m ago•0 comments

Launch HN: Chert (YC P26) – Twilio for iMessage

https://www.trychert.com
3•garygao•25m ago•5 comments

Artemis II Reference Guide [pdf]

https://www.nasa.gov/wp-content/uploads/2025/12/sls-5558-artemis-ii-sls-reference-guide.pdf
1•fortran77•26m ago•0 comments

New OpenAI Phone

https://www.msn.com/en-us/news/technology/openai-is-reportedly-making-its-own-phone-here-s-what-t...
2•gibbsrich•28m ago•0 comments

Seed Oils as a Hypothesized Contributor to Heart Disease: A Narrative Synthesis

https://pmc.ncbi.nlm.nih.gov/articles/PMC12923254/
2•bilsbie•29m ago•0 comments

Pope Apologizes for Slavery

https://apnews.com/article/pope-apologizes-slavery-role-holy-see-vatican-78df993c5604eb098b19f255...
1•dzonga•30m ago•0 comments

PaintFE: Open-source raster image editor built in Rust. Single portable binary

https://github.com/kylejckson/PaintFE
2•ksec•30m ago•0 comments

Robotaxis need to be tested in real traffic

https://www.ft.com/content/75af4d22-03ba-4fcc-b269-0ffee042d8cc
2•1vuio0pswjnm7•32m ago•0 comments

Where Is the JVM Tax?

https://semyonsinchenko.github.io/ssinchenko/post/jvm-tax/
2•Malp•32m ago•0 comments

Jaeger hit 8.6× compression on 10M spans with ClickHouse

https://thenewstack.io/jaeger-clickhouse-storage-backend/
1•Brajeshwar•34m ago•0 comments

10 Years of Spiffe

https://joe.dev/posts/10-years-of-spiffe/
1•mooreds•35m ago•0 comments

Zero-Player Games

https://alexanderbjoy.com/on-zero-player-games/
1•surprisetalk•37m ago•0 comments

Distributing LLM Inference in DwarfStar

https://antirez.com/news/167
1•surprisetalk•37m ago•0 comments