frontpage.
newsnewestaskshowjobs

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

Gluon string breaking is simulated using trapped ions

https://physicsworld.com/a/gluon-string-breaking-is-simulated-using-trapped-ions/
1•EA-3167•25s ago•0 comments

How do you deal with AI Output of your boss?

1•okr•3m ago•0 comments

Logitech begins making devices in India, says it was a 'natural' shift

https://indianexpress.com/article/technology/tech-news-technology/logitech-begins-making-devices-...
1•thisislife2•5m ago•0 comments

What's New in React 19.3 and How It Changes UI Development

https://jsdev.space/react-19-3/
1•javatuts•7m ago•0 comments

Show HN: Nexo – S3-compatible object storage in Go, single binary, AGPL

https://github.com/R3n3r0/Nexo
1•paolorusso•8m ago•1 comments

Ledger Nano X: the spy implant

https://www.tibane.net/research/ledger-nano-x-implant
1•imichael•11m ago•0 comments

Simple Consensus Under Synchrony and Crash Faults

https://medium.com/@bhaskark2/simple-consensus-under-synchrony-and-crash-faults-1ae637e23718
1•adunk•14m ago•0 comments

I built a programming language that LLMs can't use

https://blog.picheta.me/post/killswitch-lang/
2•dom96•19m ago•0 comments

Bitter Lessons and Premature Optimizations

https://blog.veitheller.de/bitter.html
1•hellerve•20m ago•0 comments

Cloudroom – Every agent. One app

https://www.cloudroom.dev
2•nikolay•22m ago•1 comments

Unrest Mars Day of Protest in France, as Student Movement Turns National

https://www.nytimes.com/2026/10/17/world/europe/france-protest-riots-marseille.html
1•donsupreme•24m ago•0 comments

Espagne

https://www.citaconsular.es/es/hosteds/widgetdefault/25028fcd7126544630b8da0c6e60722b5
1•samuelys•27m ago•0 comments

VedaOS: The First Intelligent Hobby OS

https://github.com/vahmoh25/Veda/commit/5fcea329e3ccc891d34aeee355132719b9e59745
2•newshk2026•30m ago•2 comments

Can predictive tools tell us who will benefit from antidepressants?

https://www.science.org/content/article/can-predictive-tools-tell-us-who-really-needs-antidepress...
1•EA-3167•31m ago•0 comments

Show HN: PrimerKit, financial market work at agent speed

https://primerkit.ai/
2•KalskiTheDan•32m ago•0 comments

Poll: Stanford students preferred 22% less salary for annual equity liquidity

1•lukasgruber__•33m ago•0 comments

Proposal: Every vulnerability report < HIGH is immediately public

https://curl.se/mail/lib-2026-10/0006.html
1•sbinder•34m ago•0 comments

Do you think you can trust the privacy policy of a company or project?

https://unixdigest.com/articles/do-you-think-you-can-trust-the-privacy-policy-of-a-company-or-pro...
1•1317•36m ago•0 comments

AI coding interfaces make approval easy and understanding hard

https://www.aymannadeem.com/artificial/intelligence,/developer/tools/2026/10/10/ai-coding-interfa...
1•emschwartz•38m ago•0 comments

Show HN: Put AI to work across your company

https://vstorm-co.github.io/vstormos-landing/
1•outageroom•39m ago•0 comments

Flexi, Martin and geiss – dedicated to the sherwin maxawow

https://www.toil.fyi/?preset=flexi-martin-geiss-dedicated-to-the-sherwin-maxawow
1•TomJansen•40m ago•0 comments

Attacks on applications of k-anonymity for password retrieval (2019)

http://cablej.io/blog/k-anonymity/
1•pbrowne011•40m ago•0 comments

Cadence: A free, copyleft music-learning studio for Mac

https://cigrainger.github.io/cadence/
2•cigrainger•46m ago•0 comments

Epic's EAC2 v2 seems fairly easily bypassable

https://codon.org.uk/~mjg59/blog/p/epics-eac2-v2-seems-fairly-easily-bypassable/
1•birdculture•47m ago•0 comments

I Became a Citizen of AI

https://discuss.google.dev/t/trusted-automation-with-google-antigravity-scaling-secure-finance-in...
1•ffgffxddxxxxxx•50m ago•0 comments

Google DeepMind's New Resident Philosopher Tackles AI Ethics

https://spectrum.ieee.org/ai-ethics-deepmind-philosopher-shevlin
2•pseudolus•52m ago•0 comments

Neoism – An open-source agent harness and native IDE in Rust

https://neoism.ai/
3•Mr_Settle•52m ago•0 comments

For those using huge amount of tokens monthly for dev work, why do you need it?

2•why_is_my_floor•1h ago•2 comments

JDK 28

https://openjdk.org/projects/jdk/28/
4•ejboy•1h ago•0 comments

One Hash Bloom Filters

https://calabro.io/ohbf
1•jcalabro•1h ago•0 comments