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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•10mo ago
Agreed

You could be next The lawyers and scientists training AI to steal their careers

https://www.theverge.com/cs/features/877388/white-collar-workers-training-ai-mercor
1•JeanKage•4m ago•0 comments

The Star Chamber: Multi-LLM Consensus for Code Quality

https://blog.mozilla.ai/the-star-chamber-multi-llm-consensus-for-code-quality/
1•gsaslis•6m ago•0 comments

Vibe Tuning Startup - Waitlist (ex google labs + deepmind)

https://vibetune.framer.ai/
1•pranavch28•6m ago•0 comments

Post-quantum cryptography beyond TLS

https://www.akamai.com/blog/security/post-quantum-cryptography-beyond-tls
1•fanf2•8m ago•0 comments

An Ode to Craftsmanship in Software Development

https://www.infoworld.com/article/4140156/an-ode-to-craftsmanship-in-software-development.html
2•SuaveSteve•8m ago•0 comments

Bell's X-76 Fold-Away Rotor Aircraft Is DARPA's Newest X-Plane

https://www.twz.com/air/bells-x-76-fold-away-rotor-aircraft-is-darpas-newest-x-plane
1•throwawayffffas•9m ago•0 comments

Claude helped me get a traffic light reprogrammed in my town

https://www.reddit.com/r/ClaudeAI/s/yqe7NEFI6b
1•merlindru•11m ago•0 comments

Show HN: SoloDB 1.1 – embedded .NET document DB with real referential integrity

https://unconcurrent.com/articles/SoloDB110.html
1•falsename•11m ago•0 comments

Stop using chat history as your agent's state store

https://blog.raed.dev/posts/agentic-workflows-are-not-conversations/
1•Raed667•13m ago•1 comments

MPs reject ban on social media for under-16s

https://www.theguardian.com/uk-news/2026/mar/09/proposed-ban-on-social-media-for-under-16s-reject...
1•chrisjj•19m ago•0 comments

Making your JITted Code known: Let me count the ways

https://wakelift.de/2026/03/09/making-your-jitted-code-known-let-me-count-the-ways/
1•lizmat•19m ago•0 comments

Ask HN: Are there any alternatives to LocalStack?

1•sceptic123•19m ago•1 comments

Increased risk of bullying in open-plan offices

https://www.eurekalert.org/news-releases/1118481
1•robtherobber•20m ago•0 comments

We got tired of ChatGPT confidently giving wrong answers about our SDK

https://blog.leanmcp.com/blog/llms-getting-leanmcp-wrong
1•jialu1•24m ago•0 comments

RISC-V Integrated Matrix Extension Release for Internal Review

https://github.com/riscv/integrated-matrix-extension/releases
1•camel-cdr•25m ago•0 comments

Jai in 2026: The State of Jonathan Blow's Programming Language

https://www.mrphilgames.com/blog/jai-in-2026
1•roflcopter69•28m ago•0 comments

Dependency Tracking Is Hard

https://daniel.haxx.se/blog/2026/03/10/dependency-tracking-is-hard/
2•riffraff•30m ago•0 comments

WikiFlix – freely licened/public domain movies uploaded to Wikipedia

https://wikiflix.toolforge.org/#/
2•bawolff•32m ago•1 comments

Tachyum Open Sources 281GB/S TDIMM for the Future of AI and Computing (2025)

https://www.tachyum.com/media/press-releases/2025/11/25/tachyum-open-sources-281gb/s-tdimm-for-th...
1•peter_d_sherman•34m ago•0 comments

Free file-sharing app for macOS for all small teams out there

https://apps.apple.com/us/app/filenotch-transfer-files/id6758035666?mt=12
1•lillyAnne•34m ago•0 comments

The 3-Company Cartel That Controls Every Gadget on Earth [video]

https://www.youtube.com/watch?v=Tqq4qKDzX6o
1•mgh2•36m ago•0 comments

Show HN: Draft2final – CLI converts Markdown into manuscript and screenplay PDFs

https://www.draft2final.app/
1•cosmiciron•37m ago•0 comments

Ask HN: Do you still run Redis and workers just for background jobs?

1•sergF•41m ago•0 comments

Looking for a technical co-founder to build a group travel platform

https://www.booqall.com/
1•Gedtech•41m ago•1 comments

Proxima Fusion, the first commercial fusion power plant in Europe

https://www.proximafusion.com/press-news/proxima-fusion-rwe-the-free-state-of-bavaria-and-max-pla...
3•taubek•42m ago•0 comments

1,300-pound NASA satellite will crash to Earth on March 10

https://www.space.com/space-exploration/satellites/incoming-1-300-pound-nasa-satellite-will-crash...
3•Brajeshwar•43m ago•0 comments

SETI admits its search for alien life may be too narrowly focussed

https://www.theregister.com/2026/03/10/seti_admits_its_search_for/
1•samizdis•48m ago•0 comments

Billionaires are a danger to themselves and (especially) us

https://pluralistic.net/2026/03/09/autocrats-of-trade-2/
3•only_in_america•49m ago•0 comments

Spider-Man and Hydra

https://medium.com/luminasticity/spider-man-and-hydra-680a9306f599
1•bryanrasmussen•50m ago•0 comments

Meteorite Crashes Through Roof in Germany After Fiery Light Show

https://www.nytimes.com/2026/03/09/science/meteorite-europe-crash-germany-roof.html
1•Brajeshwar•51m ago•0 comments