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

Popular Mechanics Magazine – March 1911

https://archive.org/details/bub_gb_At4DAAAAMBAJ
1•water_badger•2m ago•0 comments

Chat18GPT

https://www.chat18gpt.com
3•ClipNoteBook•4m ago•1 comments

Show HN: Joy – Trust Network for AI Agents to Verify Each Other

https://choosejoy.com.au
1•savvyllm•5m ago•0 comments

AI Policy

https://dbushell.com/ai/
1•teddyh•6m ago•0 comments

Researchers improve lower bounds for some Ramsey numbers using AlphaEvolve

https://arxiv.org/abs/2603.09172
1•1024core•6m ago•0 comments

Show HN: Structural analysis of the D'Agapeyeff cipher (1939)

https://msgtrail.com/posts/unmasking-the-dagapeyeff-cipher-a-multi-faceted-architecture
1•evaneykelen•9m ago•0 comments

Don't blunder: better chess puzzles

https://blunder.clinic
1•samwho•11m ago•0 comments

300 Hours into the Iran Internet Blackout

https://www.instagram.com/p/DVzxEXtjbt9/
1•ukblewis•15m ago•0 comments

Israel is running critically low on interceptors, US officials say

https://www.semafor.com/article/03/14/2026/israel-is-running-critically-low-on-interceptors-us-of...
3•inaros•15m ago•0 comments

Tehran Hijacked AI

https://www.dailymail.co.uk/debate/article-15640991/ChatGPT-Islamic-terrorist-propaganda.html
3•nailer•19m ago•1 comments

SBCL Fibers – Lightweight Cooperative Threads

https://atgreen.github.io/repl-yell/posts/sbcl-fibers/
1•anonzzzies•21m ago•0 comments

Show HN: Rewire – Stream ROS 2 topics to Rerun with no ROS 2 runtime required

https://rewire.run
1•alvgaona•21m ago•0 comments

Show HN: Recon – A tmux-native dashboard for managing Claude Code

https://github.com/gavraz/recon
1•gavra•23m ago•0 comments

What, exactly, is space‑time? (2025)

https://theconversation.com/what-exactly-is-space-time-259630
1•hhs•23m ago•0 comments

Show HN: Sunny Hours – an iPhone weather app with a sunshine heatmap

https://apps.apple.com/gb/app/sunny-hours-sun-by-hour/id6758806008
1•ahallan•24m ago•0 comments

CLI linter for GEO and SEO discoverability

https://xeolint.com/
1•antoinelevy27•24m ago•1 comments

Major investor 'shocked and sad' that the games industry is 'demonizing' gen AI

https://www.pcgamer.com/software/ai/major-investor-is-shocked-and-sad-that-the-games-industry-is-...
6•stalfosknight•28m ago•1 comments

Quantum Teleportation Breakthrough Brings the Quantum Internet Closer

https://scitechdaily.com/quantum-teleportation-breakthrough-brings-the-quantum-internet-closer/
1•HardwareLust•32m ago•0 comments

Show HN: NumenText, a non-modal editing terminal IDE with LSP/DAP

https://github.com/numentech-co/numentext
1•rlogman•33m ago•0 comments

Airbus is preparing two uncrewed combat aircraft

https://www.airbus.com/en/newsroom/press-releases/2026-03-airbus-is-preparing-two-uncrewed-combat...
4•phasnox•33m ago•0 comments

RFC 4180 – CSV (2005)

https://www.rfc-editor.org/rfc/rfc4180
2•basilikum•39m ago•0 comments

Book review: Laws of nature and chances

https://ndpr.nd.edu/reviews/laws-of-nature-and-chances-what-breathes-fire-into-the-equations/
1•hhs•41m ago•0 comments

The slow death of the English boarding school

https://www.ft.com/content/cc7eb665-b689-4e2f-9e35-c6ab5dbf3980
4•bookofjoe•41m ago•1 comments

Show HN: I let the internet control my iPad with AI

https://play.thomaskidane.com/
1•meneliksecond•42m ago•1 comments

The Sound of Contamination: Headphones Contain Ing Hormone-Disrupting Chemicals

https://arnika.org/en/news/the-sound-of-contamination-all-analysed-headphones-on-the-central-euro...
12•microflash•44m ago•5 comments

Book review: In search of now

https://www.wsj.com/arts-culture/books/in-search-of-now-review-time-out-of-mind-2e33a184
1•hhs•46m ago•0 comments

Tokenizing Arithmetic Expressions

https://xnacly.me/posts/2023/calculator-lexer/
2•ibobev•46m ago•0 comments

Show HN: Nia CLI, an OSS CLI for agents to index, search, and research anything

https://github.com/nozomio-labs/nia-cli
1•jellyotsiro•47m ago•0 comments

Mojo's Not (Yet) Python

https://theconsensus.dev/p/2026/03/12/mojos-not-yet-python.html
1•ibobev•47m ago•0 comments

Introduction to SQLAlchemy 2 in Practice

https://blog.miguelgrinberg.com/post/introduction-to-sqlalchemy-2-in-practice
2•ibobev•48m ago•0 comments