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•11mo 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•11mo 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•11mo 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•11mo 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•11mo ago
"def" is too generic.

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•11mo ago
Agreed

Understanding the Go Runtime: Slices, Maps, and Channels

https://internals-for-interns.com/posts/go-runtime-slices-maps-channels/
1•valyala•1m ago•0 comments

LLM anomaly detectors are not a cause for concern despite Mythos

https://www.magonia.io/research/why-a-decade-of-writing-detection-logic-makes-the-mythos-exploit-...
1•badcryptobitch•1m ago•0 comments

How OpenAI delivers low-latency voice AI at scale

https://openai.com/index/delivering-low-latency-voice-ai-at-scale/
1•Sean-Der•2m ago•0 comments

German Email Sovereignty

https://raphting.dev/posts/eu-mailing/
1•zoidb•4m ago•0 comments

TuxAide – Local AI assistant that runs in your Linux terminal

https://github.com/deltaxmodules/tuxaide
1•jorgeataide•5m ago•1 comments

A breakthrough in C/C++ dependency management

https://lcamtuf.substack.com/p/a-breakthrough-in-cc-dependency-management
1•ibobev•5m ago•0 comments

FCC votes to ban all Chinese labs from certifying electronics sold in the US

https://www.tomshardware.com/tech-industry/fcc-votes-to-ban-all-chinese-labs-from-certifying-elec...
5•cdrnsf•10m ago•0 comments

Why People Get the 'Sunday Scaries'

https://www.theatlantic.com/family/archive/2020/02/sunday-scaries-anxiety-workweek/606289/
1•andyjohnson0•10m ago•1 comments

SCI Companion – An IDE for Sierra SCI Games

https://scicompanion.com/
1•reconnecting•11m ago•0 comments

CATL says sodium batteries are mainstream-ready, signs 60 GWh deal

https://electrek.co/2026/04/27/catl-sodium-ion-battery-60gwh-energy-storage-deal/
4•epistasis•15m ago•0 comments

Tell HN: The saddest irony of my/our craft

3•dakiol•16m ago•0 comments

Got into Jai closed beta on March 2026

2•demonkingswarn•16m ago•0 comments

Photoshop's challenges with focus, pt. 2

https://unsung.aresluna.org/photoshops-challenges-with-focus-pt-2/
2•frizlab•17m ago•0 comments

Show HN: Agent-evals – Claude skill to build your own evals

https://github.com/fsilavong/agent-eval
3•sauercrowd•17m ago•0 comments

MyMonk – Edit your website by talking to it

https://mymonk.ai/
2•akkishore•18m ago•0 comments

Show HN: SSH-TPM-agent · Release v0.9.0

https://github.com/Foxboron/ssh-tpm-agent/releases/tag/v0.9.0
3•Foxboron•18m ago•2 comments

Show HN: I built a Slack-native World Cup prediction pool for distributed teams

https://kickpot.app/preview
2•hassanyassine•18m ago•0 comments

On versioning

https://ssg.dev/on-versioning/
2•sedatk•19m ago•0 comments

Constructors vs. static methods in C#

https://ssg.dev/constructors-vs-static-methods-in-c/
2•sedatk•19m ago•0 comments

DeepCtx – VS Code extension that auto-builds codebase context for AI tools

https://marketplace.visualstudio.com/items?itemName=DeepCtx.deepctx
2•sonicharmi•19m ago•0 comments

Google is discontinuing its free web search index for developers

https://www.heise.de/en/news/Google-is-discontinuing-its-free-web-search-index-for-developers-111...
6•hmokiguess•19m ago•0 comments

The state of ARM64 on Windows in 2026

https://ssg.dev/the-state-of-arm64-on-windows-in-2026/
2•sedatk•19m ago•0 comments

Show HN: Genosyn – Run Autonomous Companies

https://genosyn.com
2•ndhandala•20m ago•0 comments

African economies are more resilient than ever

https://www.ft.com/content/d84cc813-777b-4729-9784-7c6d2bdb04aa
4•bookofjoe•21m ago•1 comments

'Staggering' number of people believe unproven health claims

https://www.nature.com/articles/d41586-026-01285-2
6•anigbrowl•21m ago•0 comments

What five years of solo development taught me

https://www.tylerevan.dev/writing/five-years-solo
1•tyboyd_•22m ago•0 comments

Achieving CVE Remediation in an Era of Escalating Vulnerabilities

https://flox.dev/blog/achieving-rapid-cve-remediation-in-an-era-of-escalating-vulnerabilities/
1•ronef•22m ago•0 comments

Microsoft's turned Windows into a cesspool, but it wants to do better

https://www.theregister.com/2026/05/03/microsoft_promises_to_do_better/
3•speckx•23m ago•0 comments

The Longest Softlock in Portal [video]

https://www.youtube.com/watch?v=Ax7AbXfhftE
1•bauen1•23m ago•0 comments

Claude Design fundamentally altered my understanding of AI

https://ttcbj.bearblog.dev/claude-design-fundamentally-altered-my-understanding-of-ai/
3•ttcbj•25m ago•1 comments