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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•7mo ago
Agreed

Mapping out the hidden mechanics behind why some fads spread like wildfire

https://phys.org/news/2025-11-hidden-mechanics-fads-wildfire.html
1•PaulHoule•22s ago•0 comments

UI Finesse Playbook

https://github.com/jshmllr/ui-finesse-playbook
1•triphoppin•33s ago•0 comments

Model Evals Can Fix Education

https://sibylline.dev/articles/2025-12-31-how-agent-evals-can-fix-education/
1•CuriouslyC•1m ago•0 comments

Ask HN: What if social media was mapped on to a globe?

1•anon_anon12•2m ago•0 comments

Ask HN: How does one scrape a website?

1•terry_hc•3m ago•0 comments

America's fight back against China starts in Los Angeles

https://www.economist.com/christmas-specials/2025/12/18/americas-fight-back-against-china-starts-...
2•andsoitis•5m ago•0 comments

The Next Thing Will Not Be Big

https://blog.glyph.im/2026/01/the-next-thing-will-not-be-big.html
1•vortex_ape•6m ago•0 comments

Pebble Round 2 – The Most Stylish Pebble Ever

https://repebble.com/blog/pebble-round-2-the-most-stylish-pebble-ever
2•jackwilsdon•6m ago•0 comments

Show HN: Ultrasync – faster indexing, search, memory, and more for coding agents

https://ultrasync.dev
1•darvid•6m ago•0 comments

IPv6 just turned 30 and still hasn't taken over the world

https://www.theregister.com/2025/12/31/ipv6_at_30/
1•Brajeshwar•7m ago•0 comments

Chemical-Hygiene

https://karpathy.bearblog.dev/chemical-hygiene/
1•varunr89•7m ago•0 comments

So Long, GPT-5. Hello, Qwen

https://www.wired.com/story/expired-tired-wired-gpt-5/
1•voxleone•8m ago•0 comments

First new motion sickness drug arrives after nearly half a century

https://newatlas.com/disease/first-motion-sickness-drug/
2•Brajeshwar•9m ago•0 comments

Stranger Things 5 Finale Ending Explained

https://www.netflix.com/tudum/articles/stranger-things-5-episode-8-ending-explained
2•HelloUsername•16m ago•1 comments

Bees – Best-Effort Extent-Same, a btrfs dedupe agent

https://github.com/Zygo/bees
1•embedding-shape•19m ago•0 comments

Investigating and fixing a nasty clone bug

https://kobzol.github.io/rust/2025/12/30/investigating-and-fixing-a-nasty-clone-bug.html
1•r4um•20m ago•0 comments

Show HN: Linvisual – A simple to use Linear Algebra Visualization library

https://github.com/Jeditrix/Linvisual
2•jeditrix•21m ago•0 comments

Show HN: LoginLlama – behaviour-based login anomaly detection for small teams

https://loginllama.app
1•joshghent•26m ago•0 comments

ARKit Testing with RobotKit

https://www.chrisdavis.com/articles/arkit_robotkit.html
1•nthState•27m ago•1 comments

We Become What We Behold (2016)

https://github.com/ncase/wbwwb
1•Lwrless•29m ago•0 comments

You are already behind by not having read this post

https://christianheilmann.com/2026/01/02/you-are-already-behind-by-not-having-read-this-post/
2•ArmageddonIt•30m ago•1 comments

Show HN: I built a countdown app because system alarms gave my friend anxiety

https://apps.apple.com/us/app/duepal-visual-countdown-timer/id6756181712
1•elevenapril•31m ago•3 comments

Ask HN: Successful one-person online businesses in 2026?

2•vekker•31m ago•1 comments

Street Fighter 2 fixed a typo with a human leg [video]

https://www.youtube.com/watch?v=dUkLYOPRYH4
1•sd9•31m ago•0 comments

The Kimwolf Botnet Is Stalking Your Local Network

https://krebsonsecurity.com/2026/01/the-kimwolf-botnet-is-stalking-your-local-network/
1•todsacerdoti•32m ago•0 comments

Do you want a prompt saver and fantastic organizer?

1•SRMohitkr•32m ago•0 comments

Stardust study resets how life's atoms spread through space

https://www.chalmers.se/en/current/news/see-stardust-study-resets-how-life-s-atoms-spread-through...
3•geox•34m ago•0 comments

Matryoshka embeddings: How to make vector search 5x faster

https://sderosiaux.substack.com/p/matryoshka-embeddings-how-to-make
3•chtefi•35m ago•0 comments

Tesla sales fall for the second year in a row

https://www.businessinsider.com/tesla-sales-fall-second-year-ev-elon-musk-2026-1
4•jrpelkonen•35m ago•2 comments

DeepSeek's new AI training method is a 'breakthrough' for scaling

https://www.businessinsider.com/deepseek-new-ai-training-models-scale-manifold-constrained-analys...
2•ryan_j_naughton•35m ago•0 comments