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

Double Agent finds chess position where all 63 moves check, beating 1968 record

https://www.doubleai.com/research/maxwell-chess-record-63-checks
1•NeuralOracle•10s ago•0 comments

After 49 Years, Voyager 1 Is One Light-Day from Earth

https://www.nytimes.com/2026/11/18/science/nasa-voyager-1-earth-light-day.html
1•tosh•23s ago•0 comments

AI Slop as a Service: Why Microsoft Won But the Soviets Lost

https://www.flyingpenguin.com/ai-slop-as-a-service-why-microsoft-won-but-the-soviets-lost/
1•Brajeshwar•1m ago•0 comments

Berlin Simulator Game

https://kairollmann.de/berlin-survivor/
1•kadrian12•2m ago•0 comments

GloriART Internet Radio now with cross-device Cloud Sync

https://gloriart.net/radio/
1•EmiIIius•5m ago•0 comments

DNS Stamps Specification

https://dnscrypt.info/stamps-specifications/
1•NeuralOracle•5m ago•0 comments

Nigel Richards: The Scrabble Champ Making History (2022)

https://wordfinder.yourdictionary.com/blog/meet-nigel-richards-the-scrabble-champ-making-history/
1•thunderbong•6m ago•0 comments

TeamsCache – Read Local Microsoft Teams Messages via CLI or MCP

https://github.com/stn1slv/teamscache
1•stn1slv•10m ago•0 comments

A Field Guide to Elephpants

https://afieldguidetoelephpants.net/
1•theanonymousone•13m ago•0 comments

A paste-y journey – finding a pastebin candidate to use

https://savyasacheejha.com/posts/a-paste-y-journey/
1•genghizkhan•16m ago•0 comments

Arduino App Lab

https://docs.arduino.cc/software/app-lab/
1•teleforce•18m ago•0 comments

Anti-Photoshop: A Mega-Combine Without a Technical Specification

https://medium.com/@smoking2man/anti-photoshop-a-mega-combine-without-a-technical-specification-f...
1•Aldus551•20m ago•0 comments

Harsher on Male? Evaluating LLMs on Gender-Asymmetric Moral Framing in Conflicts

https://arxiv.org/abs/2606.14068
1•rzk•21m ago•0 comments

Rejoining EU 'on the table' as UK makes deals on trade and young people

https://www.theguardian.com/politics/2026/nov/21/rejoining-eu-uk-trade-youth-deals-ed-miliband
2•vrganj•22m ago•0 comments

Sphere

https://en.wikipedia.org/wiki/Sphere_(venue)
2•tosh•25m ago•0 comments

ChatGPT shrunk down to run on a Super Nintendo

https://www.theregister.com/offbeat/2026/11/21/chatgpt-shrunk-down-to-run-on-a-super-nintendo/531...
1•nephihaha•27m ago•0 comments

Roast My UI

https://heltweg.org/posts/roast-my-ui/
1•rhazn•28m ago•0 comments

TI Embedded AI

https://www.ti.com/en-us/technologies/edge-ai
1•teleforce•30m ago•0 comments

Lean Should Be Ashamed

1•LTaoist•31m ago•0 comments

Show HN: Tartelette – an RP2040 emulator and breakout simulator

https://pferreir.github.io/tartelette/
1•_pferreir_•35m ago•0 comments

Kvrocks

https://www.percona.com/blog/inside-kvrocks/
4•bashhq_r•35m ago•0 comments

87% of the Anthropic power will come from gas and 11% from coal in 2028

https://betterdatacenterproject.com/2026/11/16/how-ai-is-powered-a-breakdown-of-byop-and-grid-power/
5•happosai•42m ago•1 comments

Is AI plagiarizing human research?

https://twitter.com/Robert_E_Grant_/status/2124338413662847228
2•doener•42m ago•0 comments

Scientists build whole-Earth simulation to help find life on other planets

https://www.washington.edu/news/2026/11/02/whole-earth-simulation-exoplanets-alien-life/
1•giuliomagnifico•43m ago•0 comments

Scientists sequenced a whale's entire genome using drones and whale snot

https://www.npr.org/2026/11/21/nx-s1-6044816/scientists-sequenced-a-whales-entire-genome-using-dr...
2•Brajeshwar•44m ago•0 comments

Derivative flipping: another way of thinking about automatic differentiation

http://blog.sigfpe.com/2026/11/derivative-flipping.html
2•matt_d•45m ago•0 comments

Your personal TV

https://github.com/joonfjp/yoltapp
1•joonfjp•46m ago•1 comments

The day the Riemann hypothesis fell to AI, I took my son for a walk

https://www.theintrinsicperspective.com/p/on-the-day-the-riemann-hypothesis
1•porsager•49m ago•0 comments

Intruder swaps DeepSeek at Prime Intellect. The copy almost never refuses

https://maccus.fr/en/prime-intellect-deepseek-swap/
1•theanonymousone•49m ago•0 comments

Bypassing iOS Safari's 60 FPS Limit

https://rida.dev/blog/bypassing-ios-safari-60-fps-limit
1•HatchedLake721•51m ago•0 comments