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

Fusion Dreams Drive High-Temperature Superconductor Quest

https://spectrum.ieee.org/high-temperature-superconductor-ai-research
1•rbanffy•47s ago•0 comments

Bun v1.4.1

https://bun.com/blog/bun-v1.4.1
1•ErenayDev•4m ago•0 comments

Scientists observe Einstein's gravity in the quantum world

https://www.eurekalert.org/news-releases/1141933
1•_hao•6m ago•0 comments

Whistle Synth

https://www.jefftk.com/p/whistle-synth-mac-app
1•luu•8m ago•0 comments

Tracing np.add, all the way down

https://blog.veitheller.de/numpy.html
1•luu•11m ago•0 comments

A preview of the future IA documentation

https://intel.github.io/SDM/announcement/2026/08/20/announce-preview.html
1•luu•16m ago•0 comments

Sudden Unexpected Death in the Pfizer Trial: A Pharmacovigilance Failure

https://esmed.org/MRA/mra/article/view/7810/99193550508
1•inanothertime•17m ago•0 comments

Hot take on GPT-6 Astra

https://garymarcus.substack.com/p/hot-take-on-gpt-6-astra
2•Bluestein•18m ago•2 comments

By 2029 no computer or "machine intelligence" will have passed the Turing Test

https://longbets.org/1/
1•tetris11•18m ago•0 comments

Nvidia's AVO harness boosts Opus 5 to 100% on ARC-AGI 3

https://developer.nvidia.com/blog/nvidia-avo-reaches-100-on-arc-agi-3-demonstrating-a-frontier-le...
1•irthomasthomas•21m ago•0 comments

Cybercab motor uses no rare earth metals

https://twitter.com/elonmusk/status/2095720611695759704
2•tosh•29m ago•0 comments

German Government abandons plan for BSI constitutional amendment

https://www.heise.de/en/news/Cybersecurity-Government-abandons-plan-for-BSI-constitutional-amendm...
2•doener•33m ago•0 comments

Which European league is hardest to predict? 52,471 matches with closing odds

https://pythiafootball.com/research/hardest-league-to-predict/
1•Yiannis91•34m ago•0 comments

Punktfunk – Game streaming that outgrew GameStream

https://punktfunk.unom.io/en/
1•sagacity•35m ago•0 comments

Nerdminer mines xcoin on a Mac using new consensus algoritm

https://medium.com/@knexcoin/why-a-macbook-beats-a-mining-warehouse-on-metaldag-3c0e4f498b87
1•winnertakeall•39m ago•0 comments

A hundred coffee machines and the joy of small open source

https://sjg.io/writing/a-hundred-coffee-machines-and-the-joy-of-small-open-source/
1•simonjgreen•42m ago•0 comments

CERN Transitioning Computers To Debian After Being A Longtime RHEL Institution

https://www.phoronix.com/news/CERN-Goes-Debian-Leaving-RHEL
4•thunderbong•42m ago•1 comments

Kraaken: A Ship, Power Plant, Reservoir and Data Centre in One

https://energydigital.com/news/kraaken-a-ship-power-plant-reservoir-data-centre-in-one
1•geox•43m ago•0 comments

Show HN: Professional Security Testing Platform

https://bugbounty-arsenal.net/
3•foxvr•44m ago•0 comments

PostHog reported zero signups while Supabase showed one

https://lifecmp.com/blog/posthog-zero-signups-supabase-one
1•michaelwang100•46m ago•0 comments

ERIS: Local-first vault agent in Rust, grammar-enforced tools

https://github.com/janpauldahlke/eris
1•teleforce•48m ago•0 comments

Show HN: TERMy – A fast terminal assistant that does not use LLMs

https://github.com/gioblu/NPC-Forge/blob/main/docs/development.md
1•gioscarab•50m ago•0 comments

Tesla launches steering-wheel-free Cybercab robotaxi in Austin

https://www.businessinsider.com/tesla-cybercab-robotaxi-launch-event-austin-self-driving-car-2026-9
1•joak•52m ago•0 comments

Show HN: Send secrets a server can't decrypt, even if compelled to

https://serial.sumitdwivedi.com/
2•AuraFarm•54m ago•1 comments

How I use GBNF grammars to make small local models stop hallucinating JSON

https://eris-system.dev/blog/gbnf-grammars
1•teleforce•54m ago•0 comments

Ask HN: Rename ChatGPT?

1•alansaber•54m ago•0 comments

Nicholas Polson Has Written Over 200 Academic Papers in 2026 (so far)

https://economistwritingeveryday.com/2026/08/26/nicholas-polson-has-written-over-200-academic-pap...
4•luu•1h ago•0 comments

Show HN: Prices.eu.org

https://prices.eu.org/
3•sourcecodeplz•1h ago•1 comments

BlackRock CEO said Americans' savings and investments will fund data centers

https://www.msn.com/en-us/money/economy/blackrock-ceo-said-americans-savings-and-investments-will...
2•SockThief•1h ago•1 comments

Promptmatics – Free telemprompter following your voice

https://promptmatics.vercel.app/
1•olvy0•1h ago•0 comments