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

Meta's Muse Charm Shows That AI Devices Are Poised to Rival Phones

https://www.bloomberg.com/news/articles/2026-12-01/meta-muse-charm-review-299-ai-gadget-is-poised...
1•mfiguiere•1m ago•0 comments

Twingle Garden

https://twinglegarden.duckdns.org/
1•ShannuMaker•1m ago•0 comments

Laravel, reimagined in Rust: A batteries-included web framework

https://laravel.com/rust
2•pushpak1300•2m ago•0 comments

Authoritarian and Democratic Structures Emerge

https://www.santafe.edu/news-center/news/how-authoritarian-and-democratic-structures-emerge
1•ersinesen•2m ago•0 comments

Michael Caine RIP

https://www.the-independent.com/arts-entertainment/films/news/michael-caine-death-age-cause-b2419...
2•nephihaha•2m ago•0 comments

DR Tulu 2: an open deep research agent

https://allenai.org/blog/dr-tulu2
1•publicmatt•3m ago•0 comments

Show HN: A hub for sharing control system models

https://github.com/lmark-labs/ModeloopExamples
1•lucamark•3m ago•0 comments

Can open-weight models reverse-engineer a stripped Rust binary?

https://www.eiken.dev/blog/2026/11/can-open-weight-models-reverse-engineer-a-stripped-rust-binary/
1•fortran77•3m ago•0 comments

OpenGov Experiencing Major Outages Across Multiple Services

https://www.opengovstatus.com
2•gcheong•3m ago•1 comments

Everything You Need - Right in Your Browser

https://jellykit.site/
1•johnnyballgame•4m ago•0 comments

Nvidia Nemotron 4 Open-Weight Models

https://nvidianews.nvidia.com/news/nvidia-open-models-advance-frontier-for-enterprises-and-indust...
1•panarky•5m ago•0 comments

More Blatant FAA Fraud

2•bdwilnalex•7m ago•0 comments

Cbash – Rust POSIX Hub, 2FA Vault, and Scoped SDK for AI CLIs and GPUs

https://cbash.ai
1•ricfulop•7m ago•0 comments

Why Anthropic? (open sourcing my cover letters)

https://thoward37.me/blog/articles/why-anthropic/
3•thoward37•8m ago•1 comments

Cheat Sheet: Agentic Commerce

https://radar.thecyberhut.com/p/cheat-sheet-agentic-commerce
2•mooreds•10m ago•0 comments

Show HN: Route CI jobs across self-hosted, paid, and GitHub Actions runners

https://relayrunner.dev/
2•zachdunn•10m ago•0 comments

The media has newsletter envy

https://www.natesilver.net/p/the-media-has-newsletter-envy
1•PaulHoule•12m ago•0 comments

Dufuna canoe: world's second-oldest known boat

https://en.wikipedia.org/wiki/Dufuna_canoe
1•bookofjoe•12m ago•0 comments

What Happens to Data Analytics After AGI?

https://fsdatalab.github.io/blog/analytics-after-agi/
1•skadamat•12m ago•0 comments

Does Silicon Valley Breed Criminal Power Couples?

https://www.rollingstone.com/culture/culture-features/altruists-sbf-silicon-valley-criminal-power...
2•mikelgan•12m ago•0 comments

Defective Accelerationism

https://www.wheresyoured.at/defective-accelerationism/
1•voxleone•13m ago•0 comments

A flexible sensor that can distinguish stretching, bending, temperature changes

https://news.rice.edu/news/2026/rice-researchers-develop-artificial-skin-can-distinguish-movement...
1•giuliomagnifico•13m ago•0 comments

DuckDB Goes Distributed

https://duckdb.org/2026/12/01/duckdb-scales
4•jincongho•15m ago•1 comments

Escape "The Algorithm"

https://www.cloudlesssoftware.com/articles/escape-the-algorithm/
1•presleymarkw•18m ago•0 comments

One Memory for Claude, ChatGPT and Codex: An Obsidian Vault and MCP

https://mirekhovorka.cz/en/blog/shared-ai-memory-obsidian-vault/
1•mirekhovorka•19m ago•0 comments

US Population Poised for Historic Decline

https://finance.yahoo.com/economy/articles/us-population-poised-historic-decline-110000703.html
3•adventured•20m ago•2 comments

Diving Lock 21: a submerged Victorian canal lock on the St Lawrence River

https://davidgibbins.com/journal/2016/4/8/diving-lock-21-a-submerged-victorian-canal-lock-on-the-...
1•pombo•20m ago•0 comments

How to report an app to Intuit QuickBooks Online

https://www.for.inc/
1•alexyes•20m ago•1 comments

A new PHP framework's RPS rises with concurrency

https://web-frameworks-benchmark.vercel.app/frameworks/php/
1•marius-ciclistu•21m ago•0 comments

Show HN: Dojo – managed Claude RC and codex app-server across machines

https://github.com/scornz/dojo
1•scornz•21m ago•0 comments