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

Show HN: Detached – Share a Git repo without the BS

https://detached.to/
1•pwnicholls•36s ago•0 comments

What?

1•lofon•5m ago•1 comments

Harvest Now, Decrypt Later

https://en.wikipedia.org/wiki/Harvest_now,_decrypt_later
1•chistev•5m ago•0 comments

What Bill Gates Expects from AI

https://www.economist.com/business/2026/12/03/what-bill-gates-expects-from-ai
1•doener•7m ago•0 comments

Llama Runner and Chat client/harness

2•merlinwarage•8m ago•0 comments

The post-quantum right answers for December 2026

https://www.latacora.com/blog/post-quantum-right-answers-december-2026/
2•DASD•9m ago•0 comments

Birdwatching expert tracked down every single bird in Grand Theft Auto VI

https://www.cbc.ca/news/entertainment/gta-6-birdwatching-9.7437865
1•kartik147•10m ago•0 comments

Post Quantum Cryptography: AI merely moved the deadline

https://www.vincirufus.com/en/posts/post-quantum-cryptography-ai-merely-moved-the-deadline/
2•vincirufus•11m ago•0 comments

Devin Gets a GPU

https://devin.ai/blog/devin-gets-a-gpu
2•gmays•18m ago•0 comments

Personal Finance in Claude

https://claude.com/resources/articles/introducing-personal-finance-in-claude
17•alwillis•19m ago•24 comments

NYC Council approves ban on fastest e-bikes

https://gothamist.com/news/nyc-council-poised-to-pass-sweeping-e-bike-safety-measures-including-s...
2•geox•20m ago•1 comments

Show HN: We crashed agents on 6 frameworks after an approval. All paid twice

https://salahmakboul.github.io/call4agents/leaderboard/
1•iuogh71•23m ago•0 comments

Show HN: Skyofsound – A star map of 6,291 music genres

https://skyofsound.com/
1•giuocopiano•23m ago•0 comments

What It Takes to Make Critical Mineral Recovery Bankable and Insurable

https://ccsi.columbia.edu/news/what-it-takes-to-make-critical-mineral-recovery-bankable-and-insur...
1•crookedroad44•24m ago•0 comments

Geothermal startup is betting lasers can slash drilling costs 95%

https://techcrunch.com/2026/12/03/this-geothermal-startup-is-betting-lasers-can-slash-drilling-co...
1•crookedroad44•25m ago•0 comments

Mixpanel: AI agent now run more queries than humans do

https://mixpanel.com/blog/agent-vs-human-queries/
1•danielwbean•25m ago•0 comments

RSI Bench: Measuring Whether AI Agents Can Improve Themselves

https://labs.scale.com/blog/rsi-bench
2•gmays•26m ago•0 comments

Microsoft Should Watch the Expanse

https://idiallo.com/blog/microsoft-should-watch-the-expanse
2•firefoxd•26m ago•0 comments

Assay: A monthly overlay journal for AIxScience

https://assay.pub/
2•jdwor•27m ago•0 comments

TechCrunch laid off 5 of its last startup-focused reporters today

https://twitter.com/joshconstine/status/2128221317895995509
1•doener•28m ago•0 comments

Is my website post-quantum?

https://ismywebsitepostquantum.vercel.app/
1•minasrc•28m ago•0 comments

A new website with PC specs for tech enthusiasts

https://allpcs.ca/en
1•boredace•28m ago•1 comments

Trump Signals That His Support for Nvidia's Jensen Huang Has Its Limits

https://www.nytimes.com/2026/12/03/us/politics/trump-nvidia-jensen-huang.html
2•JumpCrisscross•29m ago•1 comments

Cursive Muse previews cursive signature styles at real size before PNG export

https://cursivemuse.com/muse/
2•pu_jagen_cm•29m ago•0 comments

Show HN: Collect and triage feedback from users and AI agents

https://mostlovedproduct.com/
1•jcoc611•30m ago•0 comments

Ask HN: How to present my work (Internet and Software) to 3rd graders?

2•recvonline•31m ago•0 comments

Chicago Restaurant Staff Expel Nick Fuentes and Throw Raw Beef

https://demokratis.co.id/en/fuentes-expelled-chicago-restaurant
2•extasetoi12•36m ago•1 comments

Before They Were Dinosaurs: How Humanity Discovered the Deep Past

https://lifework.marioishikawa.com/before-they-were-dinosaurs/
1•ishikawa•36m ago•0 comments

Is RSA Broken? What This Week's Quantum Panic Means for OT, MQTT, and

https://iiotjob.com/blog/is-rsa-broken-quantum-panic-ot-mqtt-opc-ua
2•ishikawa•37m ago•0 comments

How a tiny HTTP response preview ended up buffering a 64 MB download

https://octri.dev/blog/how-a-response-preview-buffered-an-entire-download
2•khalidkhair•39m ago•0 comments