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

Why your guitar goes sharp when you play hard: the Kirchoff–Carrier equation

https://mbmccoy.dev/posts/nonlinear-vibes/
1•_alternator_•1m ago•1 comments

Is ChatGPT a Scrabble Genius, or a Scrabble Disaster?

https://www.youtube.com/watch?v=8opLB1D_RYY
1•doener•1m ago•1 comments

Python Software Foundation turned down Trump admin grant (2025)

https://arstechnica.com/tech-policy/2025/10/python-foundation-rejects-1-5-million-grant-over-trum...
1•PaulDavisThe1st•1m ago•0 comments

Designing AI Chip Software and Hardware

https://docs.google.com/document/d/1dZ3vF8GE8_gx6tl52sOaUVEPq0ybmai1xvu3uk89_is/edit?tab=t.0
1•broune•3m ago•1 comments

Global Petrol Prices

https://www.globalpetrolprices.com/gasoline_prices/
1•greedo•6m ago•0 comments

AI boom risks widening wealth divide, says BlackRock's Larry Fink

https://www.theguardian.com/technology/2026/mar/23/ai-boom-risks-widening-wealth-divide-blackrock...
4•devonnull•8m ago•0 comments

Dusking is a trend aimed at helping people switch off at the end of the day

https://theconversation.com/dusking-is-a-trend-aimed-at-helping-people-switch-off-at-the-end-of-t...
2•zeristor•9m ago•0 comments

SynthVision: Building a 110K Synthetic Medical VQA Dataset

https://huggingface.co/blog/OpenMed/synthvision
1•maziyar•10m ago•1 comments

Gabbard plans to shift coveted, CIA-backed high-tech fund In-Q-Tel to her office

https://www.politico.com/news/2026/03/23/in-q-tel-odni-cia-control-00840302
2•avidruntime•11m ago•0 comments

Philosophical DNA

https://diagnostic.millermanschool.com/
1•iamjfu•11m ago•0 comments

Where Should the Agent(s) Live?

https://opencomputer.dev/blog/where-should-the-agent-live
3•iacguy•12m ago•0 comments

Why LLMs can't paragraph well

https://hollisrobbinsanecdotal.substack.com/p/for-the-love-of-god-learn-to-paragraph
2•HR01•12m ago•0 comments

PyTorch 2.11 Released

https://pytorch.org/blog/pytorch-2-11-release-blog/
1•0bytematt•13m ago•0 comments

Minutes before Trump's announcement, $800M in trades made on oil prices

https://www.9news.com.au/world/donald-trump-iran-updates-oil-futures-trade-suspicious-betting-act...
5•inaros•15m ago•0 comments

AI Trained on Birdsong Can Recognize Whale Calls

https://spectrum.ieee.org/foundation-models-google-birds-whales
1•geox•17m ago•0 comments

Leonid Radvinsky, owner of OnlyFans, dies aged 43

https://www.theguardian.com/technology/2026/mar/23/leonid-radvinsky-onlyfans-owner-death
1•chirau•18m ago•0 comments

Absolute Beginner's Guide to Databasemaxxing

https://pthorpe92.dev/databasemaxxing/
1•dvektor•19m ago•0 comments

China Just Killed the B-Pillar Zeekr Mix 2026 [video]

https://www.youtube.com/watch?v=hGV-EUR2GYQ
1•thelastgallon•20m ago•0 comments

Show HN: A CLI for building and deploying Openclaw agents

https://pinata.cloud/blog/from-docker-dread-to-agentic-flow-introducing-the-pinata-cli/
1•madrov•22m ago•0 comments

You can now enable Claude to use your macOS computer to complete tasks

https://xcancel.com/claudeai/status/2036195789601374705
2•doener•24m ago•0 comments

Show HN: VoidLLM – privacy-first LLM proxy (Go, self-hosted)

https://github.com/voidmind-io/voidllm
1•chrisremo85•25m ago•0 comments

Show HN: Mutatr – an open source A/B testing agent

https://github.com/novynlabs-repo/mutatr
1•AhmedAshraf•28m ago•0 comments

Show HN: Nomad – Self-hosted collaborative travel planner

https://github.com/mauriceboe/NOMAD
1•mauriceboe•30m ago•0 comments

Pre-written OpenClaw agent config packs (SOUL.md, HEARTBEAT.md, AGENTS.md)

https://5580846822819.gumroad.com/l/svlapl
1•nami_creator•32m ago•0 comments

I reverse-engineered Claude Code

https://github.com/SeifBenayed/claude-code-sdk
2•seifbenayed1992•34m ago•0 comments

Dear Europe: Germany has shown the way forward

https://blog.documentfoundation.org/blog/2026/03/23/dear-europe/
2•doener•37m ago•0 comments

Pentagon Adopts New Limits for Journalists After Court Loss

https://www.nytimes.com/2026/03/23/business/media/pentagon-closes-journalists-work-area.html
5•doener•38m ago•0 comments

RocksDB development finds a CPU bug

https://rocksdb.org/blog/2026/02/17/cpu-bug.html
2•eatonphil•41m ago•1 comments

Classification: Accuracy, recall, precision, and related metrics

https://developers.google.com/machine-learning/crash-course/classification/accuracy-precision-recall
1•teleforce•41m ago•0 comments

Personal and Business Tax Returns via MCP

1•unmarkdown•42m ago•0 comments