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•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

Maintenance is more than bugs

https://tylerrussell.dev/2026/05/19/maintenance-is-more-than-bugs/
1•terussell85•1m ago•0 comments

KV Sharing, MHC, and Compressed Attention

https://magazine.sebastianraschka.com/p/recent-developments-in-llm-architectures
1•gmays•2m ago•0 comments

Using HTTP/2 Cleartext for a server in Go 1.24

https://www.clarityboss.com/blog/go-http2-cleartext-h2c-cloud-run
1•dan_sbl•2m ago•0 comments

Android Is Compose-First

https://developer.android.com/develop/ui/compose/first
1•flykespice•4m ago•0 comments

Show HN: ClassKeep – Booking, credits, and smart waitlists for boutique studios

https://www.classkeep.app
1•dtfortu•4m ago•0 comments

Made a Chrome extension that stops me from sending dumb messages

1•BeanieTheBean•4m ago•0 comments

Nice Things for Your Mac

https://nicethings.to/mac
1•Malfunction92•5m ago•0 comments

Programming as Theory Building (1985) [pdf]

https://gwern.net/doc/cs/algorithm/1985-naur.pdf
2•birdculture•7m ago•0 comments

Show HN: Loomavi-psychological insight tool that decodes what you are feeling

https://loomavi.com
1•punyaatloomavi•7m ago•0 comments

Intelligence is Artificial (Opus 23) [video]

https://www.youtube.com/watch?v=1CbmC2aWhjY
2•niles•8m ago•1 comments

Node.js – Promote Alpine Linux out of experimental to be a tier 2 platform

https://github.com/nodejs/node/issues/62764
1•linolevan•8m ago•0 comments

Dieter Rams documentary streaming free on May 20

https://www.hustwit.com/events/ramslivestreams
2•lemonberry•8m ago•0 comments

Slopinator: Attack AI training with poisoned GitHub repositories

https://codeberg.org/the-slopinator/slopinator
7•atomic128•9m ago•4 comments

Show HN: Sentilis – a folder of Markdown files becomes your bio, blog, store

https://github.com/sentilis/cli
1•josehbez•10m ago•0 comments

Laid-off Atlassian Engineer talks generally about the stuff he built [video]

https://www.youtube.com/watch?v=55pTFVoclvE
2•indigodaddy•12m ago•0 comments

Ask HN: How do word docs, slides, excel, and PDFs generate value?

1•FailMore•13m ago•0 comments

Last chance at eviction court: The San Francisco tenants teetering on the abyss

https://sfstandard.com/2026/05/18/last-chance-eviction-court-san-francisco-tenants-teetering-abyss/
2•speckx•13m ago•1 comments

Show HN: Heard Google copied part of our product for IO. Want to show off first

1•echelon•14m ago•0 comments

What gives you the stamina to work on the same product for years?

1•freemh•14m ago•1 comments

An AI announcer mispronounced and skipped names during a graduation

https://www.theverge.com/tech/933653/ai-graduation-commencement-glendale-community-college
2•cdrnsf•14m ago•1 comments

The interface is no Longer the product

https://blog.mozilla.ai/the-interface-is-no-longer-the-product/
2•hawernawer•16m ago•1 comments

Software Development in the AI Age

https://ianmcnaughton.net/blog/software-development-in-the-ai-age/
1•wc_nomad•17m ago•0 comments

AI helps topple decades-old geometry problem

https://www.scientificamerican.com/article/sensational-proof-topples-decades-old-geometry-problem/
1•chc2889•17m ago•1 comments

Apple is no longer purchasing VARTA batteries from Germany

https://old.reddit.com/r/BuyFromEU/comments/1thpbw1/apple_is_no_longer_purchasing_varta_batteries/
1•taubek•17m ago•0 comments

Show HN: hnr – a terminal Hacker News reader vibe-coded in Rust

https://github.com/prasanthj/hnr
1•prasanthj•19m ago•0 comments

KPMG Taps Anthropic to Revamp Global Tax, Advisory Platform

https://www.wsj.com/cfo-journal/kpmg-taps-anthropic-to-revamp-global-tax-advisory-platforms-853093bb
1•petethomas•20m ago•0 comments

Carbon: Autoregressive Genomic Foundation Model

https://huggingface.co/spaces/HuggingFaceBio/carbon-demo
2•kashifr•22m ago•1 comments

RuView – See through walls with WiFi

https://github.com/ruvnet/RuView
8•Iuz•23m ago•3 comments

LSTM-Based Question Answering on News Articles

https://github.com/sparshrestha/NewsQA-LSTM
1•sparshrestha•23m ago•1 comments

We kept getting different "personalities" from the same cloud VM SKU

https://webbynode.com/articles/we-realized-averaging-cloud-benchmark-runs-together-was-corrupting...
1•gsgreen•24m ago•0 comments