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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•8mo ago
Agreed

Show HN: I put economic rules in silicon that can't be changed by software

1•PrimalOrigins•1m ago•0 comments

The Poverty Trap's Most Popular Posts: 2025

https://povertytrap.substack.com/p/the-poverty-traps-most-popular-posts-370
1•jdemartin•3m ago•0 comments

Primecoin Primality Test

https://www.johndcook.com/blog/2026/01/10/primecoin-primality-test/
1•ibobev•5m ago•0 comments

Bi-Twin Prime Chains

https://www.johndcook.com/blog/2026/01/10/bi-twin-prime-chains/
1•ibobev•5m ago•0 comments

Primecoin and Cunningham Prime Chains

https://www.johndcook.com/blog/2026/01/10/prime-chains/
1•ibobev•5m ago•0 comments

Stories into podcasts, narrated in your voice by cloning your voice

https://storybee.app/podcast-monetization/start
1•niksmac•6m ago•0 comments

There's a full line of Trustworthy Technology available now

https://aol.codeberg.page/eci/status.html
1•babylon5•7m ago•0 comments

Password Hashing Competition

https://www.password-hashing.net/
1•mooreds•7m ago•0 comments

Garbage collected handles are lifetime-contravariant

https://trynova.dev/blog/garbage-collection-is-contrarian
2•birdculture•11m ago•0 comments

Detecting event loop blocking in asyncio

https://deepankarm.github.io/posts/detecting-event-loop-blocking-in-asyncio/
1•deepankarm44•13m ago•0 comments

Replace the Retiring Windows XP with Linux

https://www.linux.com/training-tutorials/replace-retiring-windows-xp-linux/
2•righthand•15m ago•1 comments

Thoughts on Claude Code

https://www.spakhm.com/claude-code
1•coffeemug•16m ago•0 comments

Deep reinforcement learning trading bot 90%-120% returns yearly

https://github.com/zero-was-here/tradingbot
2•solosquad•18m ago•0 comments

The Curious Cult of Aldi How a German discount chain became US's hottest grocer

https://www.bloomberg.com/news/features/2026-01-06/german-grocer-aldi-built-an-american-empire-on...
1•helsinkiandrew•18m ago•1 comments

How artificial intelligence is reshaping the future of war

https://thehill.com/policy/defense/5683359-artificial-intelligence-future-war/
1•c420•21m ago•0 comments

Show HN: 17 yo built my first app after 7 months of teaching myself development

https://www.domnest.app/
1•imad-101•21m ago•0 comments

Tech and retail back a new AI shopping standard at NRF 2026

https://www.axios.com/2026/01/11/google-shopify-ai-shopping-standard-nrf-2026
1•thm•25m ago•0 comments

SpaceX Lowering Orbits: 4,400 Satellites Moving Closer to Earth

https://nasaspacenews.com/2026/01/spacex-lowering-orbits/
2•slow_typist•25m ago•0 comments

Installerpedia: Install Anything Without Hassle

https://journal.hexmos.com/introducing-installerpedia/
6•lordwiz•31m ago•0 comments

30 Years Old

https://andys.blog/30/
1•andytratt•33m ago•0 comments

Show HN: Nexus Gateway – Open-Source AI Caching Layer in Go

https://www.nexus-gateway.org/
1•Sunnyanand_dev•33m ago•0 comments

Kontigo: Y Combinator's Venezuelan Sanctions Evasion Startup

https://fintechbusinessweekly.substack.com/p/kontigo-ycombinators-venezuela-sanctions
3•firekvz•34m ago•0 comments

Coding Adventure: Analyzing Audio – Painting with Sound

https://www.youtube.com/watch?v=08mmKNLQVHU
1•kordlessagain•37m ago•0 comments

Minneapolis Is Not Even a Close Call –A Lawsplainer on Officer-Involved

https://shipwreckedcrew.substack.com/p/minneapolis-is-not-even-a-close-call
11•PhaedrusV•41m ago•7 comments

Linus Torvalds' Latest Open-Source Project Is AudioNoise – Made with Vibe Coding

https://www.phoronix.com/news/Linus-Torvalds-Vide-Coding
3•kordlessagain•43m ago•2 comments

Taking Your Observability Strategy to the Next Level

https://thenewstack.io/taking-your-observability-strategy-to-the-next-level/
1•mooreds•44m ago•0 comments

Deliberate Mediocrity: How Weak Management Protects Itself

https://yanivpreiss.com/2026/01/11/deliberate-mediocrity-how-weak-management-protects-itself/
3•mooreds•45m ago•0 comments

Dracula Land Is Coming

https://timemachiner.io/2025/12/18/dracula-land-is-coming/
1•mooreds•45m ago•0 comments

Donald Trump 'orders army chiefs to draw up plan to invade Greenland'

https://www.dailymail.co.uk/news/article-15452323/Donald-Trump-orders-army-chiefs-plan-invade-Gre...
6•N19PEDL2•47m ago•2 comments

Software Acceleration and Desynchronization

https://ferd.ca/software-acceleration-and-desynchronization.html
1•kiyanwang•47m ago•0 comments