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

'Buy less' campaigns don't work

https://www.lse.ac.uk/buy-less-campaigns-dont-work
2•hhs•1m ago•0 comments

FunnyBench – Can AI Models Tell Funny Jokes?

https://funnybench.lol
1•Mockapapella•2m ago•1 comments

Stop calling the Super Productionizer a 'baby blender' – Frank Elavsky

https://www.frank.computer/blog/2025/06/baby-blender.html
2•cratermoon•2m ago•0 comments

Engineers use information theory to solve NYT puzzle with 99% success rate

https://www.binghamton.edu/news/story/6327/s-m-a-r-t-these-researchers-used-math-to-crack-wordle
1•hhs•6m ago•0 comments

Show HN: TLA+ Process Studio

https://tlaplus-process-studio.com/?example=meeting-lifecycle
2•uptodatenews•7m ago•0 comments

Pre-2022 Books

https://notes.lorenzogravina.com/musings/pre-2022-books
3•trms•9m ago•0 comments

I can haz smoller NixOS ISOs?

https://natkr.com/2026-06-19-nixos-but-smol/
3•birdculture•13m ago•0 comments

Show HN: Maccha – Cross Agent Brain for Antigravity, Claude Code, OpenCode etc.

https://github.com/KarelTestSpecial/real-agent-setup
2•kareldecherf•14m ago•1 comments

Show HN: Onsight: pay a local to photograph any spot in San Francisco, on demand

https://onsight.photo/san-francisco
1•pro_methe5•14m ago•0 comments

Show HN: Cruit – Get Hired directly from your coding agent

https://cruit.dev
1•nwang783•17m ago•0 comments

Trump DOJ Outlines Dubious Path to Force People into Psychiatric Institutions

https://www.motherjones.com/politics/2026/06/trump-doj-memo-olmstead-psychiatric-disabilities-ins...
3•hn_acker•19m ago•1 comments

Show HN: Save, an API that turns any URL into clean Markdown for LLMs

https://www.savemarkdown.co/api/
1•jswallez•21m ago•0 comments

Nvidia Vera CPU Performance Compares to the Ampere Altra Max

https://www.phoronix.com/review/ampere-altra-nvidia-vera
1•rbanffy•21m ago•0 comments

Slow breathing modulates brain function and risk behavior

https://www.cell.com/neuron/fulltext/S0896-6273(26)00339-9
1•croes•22m ago•0 comments

The Early Days: The History of Interactive Computing

https://obsolescence.dev/interactive-computing-history.html
2•rbanffy•23m ago•0 comments

Ask HN: Are You Depressed?

1•chistev•26m ago•1 comments

Admin ditches plan to close critical ocean monitoring system after backlash

https://www.cnn.com/2026/06/18/climate/trump-administration-reverses-decision-ocean-monitoring-sy...
2•gnabgib•27m ago•0 comments

Running a 35B MoE model on a 2017 AMD RX 580 8GB via Vulkan (no ROCm/CUDA)

https://github.com/aivisionslab-studios/rx580-local-ai-guide
1•aivisionslab•29m ago•0 comments

Tesla allegedly in autopilot mode crashes into Texas house, woman killed

https://abcnews.com/US/tesla-allegedly-autopilot-mode-crashes-texas-house-woman/story?id=134062374
17•malshe•31m ago•1 comments

I'm Making a Real-Life Zombie Game – 8 Months Later [video]

https://www.youtube.com/watch?v=x-ulWua0cuc
1•mmarian•32m ago•0 comments

Bluffbench is near saturation: LLMs can interpret counterintuitive plots

https://opensource.posit.co/blog/2026-06-19_ai-newsletter/
1•ionychal•35m ago•0 comments

Show HN: VLMs Can Respond Twice as Fast Without Losing Quality

https://github.com/sergey-automation/TurboPrefill-VLM-Validation
1•trykhlieb•36m ago•0 comments

Building and hosting a website in under three minutes

https://mattsayar.com/building-and-hosting-a-website-in-less-than-3-minutes/
1•MattSayar•36m ago•0 comments

FIFA World Cup 2026: 45 Cameras Will Capture Every Moment of the Action

https://vimegs.com/fifa-world-cup-2026-an-incredible-45-cameras-will-capture-the-electrifying-atm...
1•LukasMarek•37m ago•0 comments

Atlantic investigation reveals millions of songs used for AI music training

https://www.engadget.com/2194804/investigation-by-the-atlantic-reveals-many-millions-of-songs-use...
2•gnabgib•38m ago•0 comments

Playdate Became a Cult Classic

https://www.youtube.com/watch?v=PXJI7qz4svo
1•coolwulf•39m ago•1 comments

TikTok Shows 3x More AI Slop Than YouTube, Report Finds

https://www.searchenginejournal.com/tiktok-shows-3x-more-ai-slop-than-youtube-report-finds/579521/
3•gnabgib•40m ago•0 comments

Show HN: MailNuke – Inbox Clutter, Annihilated

https://www.mailnuke.ai/
1•nrice_biz•40m ago•0 comments

Objective reasons to prefer Linux to Windows (2014)

https://github.com/nbeaver/why-linux-is-better
1•downbad_•45m ago•0 comments

Never coded before, now shipping websites to clients via single prompt

1•bobthebob•49m ago•0 comments