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

We built inplan – Collaborative Planning between Human and Agent

1•diane-cis•2m ago•0 comments

Ephemeral Perception: A Reference Architecture for On-Device AI Glasses

https://www.levinriegner.com/research/ephemeral-perception
1•ileider•3m ago•0 comments

Chinese supercomputer leapfrogs best US machines to be ranked fastest

https://www.theguardian.com/technology/2026/jun/24/china-supercomputer-world-fastest-top500-ranki...
1•pseudolus•3m ago•0 comments

Show HN: Sixwhyo – Your code reviewed by a six-year-old (and he's not wrong)

https://6yo.dev
1•hxii•4m ago•0 comments

Interview with Jim Goodnight, July 22, 1999

https://docsouth.unc.edu/sohp/I-0073/I-0073.html
1•thomasjb•4m ago•0 comments

Elevated error rate on Claude Opus 4.8

https://status.claude.com/incidents/8b0rggdfh1hv
2•lvncelot•4m ago•0 comments

France confirms first Ebola case in doctor returning from DR Congo mission

https://www.france24.com/en/france/20260624-france-confirms-first-ebola-case-in-doctor-returning-...
1•speckx•4m ago•0 comments

Show HN: Munin – OSS HubSpot alternative I built in a month with Claude Code

https://github.com/getmunin/munin
1•kman_85•4m ago•0 comments

Qualcomm Is Acquiring Modular

https://twitter.com/clattner_llvm/status/2069769232477192354
2•tosh•7m ago•0 comments

An Existential Guide To: Asking for Help

https://theshadowedarchive.substack.com/p/an-existential-guide-to-asking-for
1•jger15•8m ago•0 comments

How do you keep Web MIDI from crashing a 1983 synthesizer?

https://knob.monster/how-do-you-keep-web-midi-from-crashing-a-1983-synthesizer
1•halfradaition•8m ago•0 comments

I built a local AI deck music assistant on a Mac mini

https://github.com/wkswede/robot-deck-audio
1•wkswede•8m ago•0 comments

How Bod 26-04 Is Coming for Your Vulnerability Management Program

https://www.cybrsecmedia.com/federal-agency-or-not-how-bod-26-04-is-coming-for-your-vulnerability...
1•speckx•8m ago•0 comments

Project Setti

https://readme.dm/project-setti/
1•epaga•10m ago•0 comments

Stars light up largest and most detailed shot of Milky Way's centre

https://www.theguardian.com/science/2026/jun/24/stars-galactic-bulge-milky-way-euclid-telescope
1•sandebert•10m ago•0 comments

Walmart to Acquire Vibe.co to Expand Access to Connected TV Advertising

https://corporate.walmart.com/news/2026/06/23/walmart-to-acquire-vibe-co-to-expand-access-to-conn...
1•cstever•11m ago•0 comments

System design rules I always come back to

https://www.thetrueengineer.com/p/10-system-design-rules-i-always-come
3•andrewstetsenko•12m ago•0 comments

Slate EV truck starts at $24,950

https://www.slate.auto/en
28•cobri•13m ago•11 comments

Wikipedia Article on 'The Second Cold War'

https://en.wikipedia.org/wiki/Second_Cold_War
1•sourdecor•14m ago•0 comments

Computable Numbers, with an Application to the Entscheidungsproblem [pdf]

https://www.cs.ox.ac.uk/activities/ieg/e-library/sources/tp2-ie.pdf
1•speckx•17m ago•0 comments

Zero to the Power of Zero

https://en.wikipedia.org/wiki/Zero_to_the_power_of_zero
2•tosh•19m ago•0 comments

Show HN: Crossary – Field mapping that won't guess; every row cites its source

https://www.crossary.com
1•migueljpalmeida•19m ago•0 comments

Ask questions, get answers from Marcus Aurelius' Meditations

https://maurelius.app
2•igarbuz•23m ago•0 comments

The largest CFP directory online, with AI matching talks to conferences

https://www.cfpradar.dev/
1•gemanor•23m ago•0 comments

It's Not Mom-and-Pop SaaS Era

https://pawelbrodzinski.substack.com/p/its-not-mom-and-pop-saas-era
1•flail•24m ago•0 comments

Polls: Voters favor federal oversight of prediction markets

https://www.semafor.com/article/06/24/2026/polls-voters-favor-federal-oversight-of-prediction-mar...
2•cdrnsf•24m ago•0 comments

Show HN: Proxy Block-CAGE, a new sparse block attention

https://github.com/iqbal1980/ai_research_assistant_rnd_projects/blob/main/proxy_block_cage_attent...
1•iqbal1980•24m ago•0 comments

The Standard Model Is Not a Coincidence

https://www.novaspivack.com/best-articles/the-standard-model-is-not-a-coincidence
1•surprisetalk•24m ago•0 comments

Companies Are Scrambling to Stop Spending So Much on AI

https://www.404media.co/the-tokenpocalypse-is-here-companies-are-scrambling-to-stop-spending-so-m...
3•cdrnsf•25m ago•0 comments

OpenAI and Broadcom unveil LLM-optimized inference chip

https://openai.com/index/openai-broadcom-jalapeno-inference-chip/
4•meetpateltech•25m ago•0 comments