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

Kap

https://kapdemo.dhsdevelopments.com/
1•tosh•1m ago•0 comments

Show HN: Shifu – A pure POSIX shell framework to create powerful CLIs

https://github.com/Ultramann/shifu
1•ultramann•1m ago•0 comments

Fast sandboxed code execution with pre-warmed gVisor pools

https://github.com/shayonj/gvisord
1•shayonj•2m ago•0 comments

Economics Papers to Inspire Wonder

https://docs.google.com/document/d/1ZW8f0eFEZhwmKeRu1KqxLFMaouajmEGfvZF0Us_G4Iw/edit?pli=1&tab=t.0
1•sebg•2m ago•0 comments

ZimaOS: A Simplified, Focused and Open NAS OS Supports All x86-64 Hardware

https://www.zimaspace.com/zimaos
1•thunderbong•2m ago•0 comments

You probably don't need to lift state

https://allthingssmitty.com/2026/03/30/you-probably-dont-need-to-lift-that-state/
2•AllThingsSmitty•2m ago•0 comments

Tryptophan-rich allosteric communication network helps activate a major receptor

https://phys.org/news/2026-03-tryptophan-rich-allosteric-communication-network.html
2•PaulHoule•2m ago•0 comments

Operational Benefits of Databases Built on Object Storage

https://blog.colinbreck.com/operational-benefits-of-databases-built-on-object-storage/
2•sebg•5m ago•0 comments

Deer-Flow Installing Line

https://github.com/bytedance/deer-flow
2•cnrd•5m ago•1 comments

Structuring a Team Around AI-Assisted Development

https://jasonrobert.dev/blog/2026-03-22-structuring-an-ai-assisted-development-team/
3•cebert•5m ago•0 comments

Vibe Code vs. Trad Code

https://www.dolthub.com/blog/2026-03-26-vibe-code-vs-trad-code/
2•lukev•6m ago•0 comments

Mistral secures $830M in debt financing to fund AI data center

https://www.cnbc.com/2026/03/30/mistral-ai-paris-data-center-cluster-debt-financing.html
2•gslin•7m ago•0 comments

Show HN: A CardDAV server for LDAP

https://github.com/isubsoft/ldap-carddav
2•spnandi•8m ago•0 comments

The ARIANE 5 Software Failure (1997)

https://dl.acm.org/doi/pdf/10.1145/251880.251992
2•scoresmoke•10m ago•0 comments

Do AI-enabled companies need fewer people?

https://seldo.com/posts/do-ai-enabled-companies-need-fewer-people/
2•mooreds•10m ago•0 comments

Maybe you should have bought an electric car

https://www.noahpinion.blog/p/maybe-you-should-have-bought-an-electric
3•mooreds•10m ago•0 comments

Craig Newmark: Billionaires, Stop Whining About the Giving Pledge

https://www.nytimes.com/2026/03/30/opinion/giving-pledge-philanthropy.html
3•mooreds•10m ago•0 comments

Grade Caps Fail the Game Theory Exam

https://www.thecrimson.com/article/2026/3/27/kominers-harvard-grade-cap/
2•mhb•12m ago•0 comments

Better Datamash Build Story with Meson

https://gms.tf/datmash-meson.html
2•ingve•12m ago•0 comments

Databricks allegedly compromised in a TeamPCP supply chain attack

https://twitter.com/IntCyberDigest/status/2038552600375648701
3•matthieu_bl•14m ago•0 comments

24 Hard Rules for Writing Correct Async C++

https://ranvier.systems/2026/03/29/24-hard-rules-for-writing-correct-async-cpp.html
2•mindsaspire•14m ago•0 comments

You shouldn't write library style code (probably)

https://wilsoniumite.com/2025/05/17/you-should-not-write-library-code-probably/
1•Wilsoniumite•15m ago•0 comments

Don't Let AI Write for You

https://alexhwoods.com/dont-let-ai-write-for-you/
1•karimf•15m ago•0 comments

Pushing Simulation to the Limit to Find Order in Chaos [video]

https://www.youtube.com/watch?v=8jVogdTJESw
1•CGMthrowaway•17m ago•0 comments

Show HN: SycoFact 4B: Open model detecting sycophancy and delusion confirmation

https://huggingface.co/iwalton3/sycofact
1•iwalton3•18m ago•0 comments

Ask HN: Is it actually possible to run multiple coding sessions in parallel?

3•sukit•19m ago•1 comments

Show HN: ListenDock – turn blogs and PDFs into audio

https://listendock.com/blogs
1•janpmz•20m ago•0 comments

Indian University Directory

https://chimera.university/ranking
1•celestiallylvd1•21m ago•1 comments

How to build a pipeline in Canada's frozen, shifting North

https://thenarwhal.ca/pipeline-north-challenges/
1•bookofjoe•22m ago•0 comments

It's Time to Build Assets?

https://www.molsonhart.com/blog/its-time-to-build-assets
1•monomial•22m ago•0 comments