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

Large language models pass a standard three-party Turing test

https://www.pnas.org/doi/10.1073/pnas.2524472123?trk=3246d38d-657b-4330-8a8c-4fca0385cac6&sc_chan...
1•cassianoleal•5m ago•0 comments

Show HN: Check – prefix any command to know if it'll work before you run it

https://www.golproductions.com/check
1•golproductions•5m ago•0 comments

Owning Your Token Capital: Building the Enterprise AI Learning Loop

https://twitter.com/LakshyAAAgrawal/status/2066392532540670354
1•LakshyAAAgrawal•7m ago•0 comments

Ask HN: Renting GPUs, do you mostly care about price, reliability, or setup?

1•tinstar112•8m ago•0 comments

CUDA-like programming of Cerebras WSE

https://github.com/greg1232/cerebras-py-sim
1•gdiamos•15m ago•1 comments

How to Be Good at AI Research

https://twitter.com/i/status/2064686372737454155
1•yarapavan•18m ago•0 comments

I sped up the test suite by 2x with one simple change

https://gaultier.github.io/blog/I_sped_up_the_test_suite_by_x2.html
1•broken_broken_•19m ago•0 comments

Care about what you do – even when nobody's watching

https://mattcasmith.net/2026/05/31/care-about-what-you-do
1•signa11•19m ago•0 comments

I restarted a 10 year old Xeon 174 times to delete 12 flags and gain 4 TPS

https://point.free/blog/delete-12-flags/
2•cafkafk•20m ago•0 comments

Oğuzxccl Kimdir?

1•oguzxxlxv•22m ago•0 comments

Email Data Normalization for Automation

https://blog.mailwebhook.com/blog/normalization-is-where-reliability-starts/
1•birdculture•25m ago•0 comments

Token-warden is a thrifty office manager for your AI assistants

https://github.com/vukkt/token-warden
1•vukkt•26m ago•0 comments

What I have done with Claude Code in the last 60 days being a non tech person

2•sahiltll•26m ago•1 comments

Under-16s to be banned from social media, Starmer announces

https://www.bbc.co.uk/news/live/c77yx1jpg1nt
3•petepete•28m ago•0 comments

Brand Voice Local Tunning Tool Demo

https://github.com/yuvhaim-gif/LLM_InSight
1•yuvalhaim•29m ago•0 comments

Building N8n AI Automation Workflows: What I Learned Creating a Masterclass

https://www.udemy.com/course/n8n-ai-automation-masterclass-build-ai-chatbots-hindi/?referralCode=...
1•tv77048•29m ago•2 comments

Selective Elimination of TP53 Mutant Cells

https://www.biorxiv.org/content/10.64898/2026.05.08.723607v1
2•rballpug•35m ago•1 comments

Openrouter Fusion API

https://openrouter.ai/openrouter/fusion
2•tdchaitanya•37m ago•0 comments

Ask HN: Is the Fable situation the ultimate "security through obscurity"?

1•king_zee•38m ago•0 comments

Crown Sanctum of Symmetries

https://sand-morph.up.railway.app/crown-sanctum
1•echohive42•39m ago•0 comments

Knicks in 5

https://www.natesilver.net/p/knicks-in-5
1•7777777phil•39m ago•0 comments

Horsewood Capsules: Don't Buy Until You Read This Real Truth

https://finance.yahoo.com/sectors/healthcare/articles/horsewood-urgent-report-2026-horse-19110038...
1•gabykais•41m ago•1 comments

I think a global AI pause almost certainly won't happen

https://www.lesswrong.com/posts/mtNZG7Ee6JfBKhE2H/why-i-think-a-global-ai-pause-almost-certainly-...
2•joozio•44m ago•0 comments

AI demands more engineering discipline. Not less

https://charitydotwtf.substack.com/p/ai-demands-more-engineering-discipline
1•robin_reala•44m ago•0 comments

Why AI hasn't replaced software engineers, and won't

https://simonwillison.net/2026/Jun/14/why-ai-hasnt-replaced-software-engineers/
3•SVI•45m ago•0 comments

Heisenbug

https://en.wikipedia.org/wiki/Heisenbug
2•y1n0•46m ago•0 comments

The Null in Your Not IN

https://boringsql.com/posts/not-in-null/
1•radimm•49m ago•0 comments

A frontier without an ecosystem is not stable

https://twitter.com/i/status/2066182223213293753
3•Michelangelo11•51m ago•1 comments

New Hetzner price increase (As of 15 June)

https://www.hetzner.com/cloud/
7•radimm•53m ago•2 comments

Successful Psilocybin Treatment of Alzheimer

https://www.frontiersin.org/journals/neuroscience/articles/10.3389/fnins.2026.1813281/full
3•cl3misch•56m ago•0 comments