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

AI Benchmarks Are Starting to Look Like Emissions Tests

https://signal-memo.com/memo-defeat-devices-for-benchmarks/
1•alex-ivan•35s ago•0 comments

Double Ratchet Algorithm

https://en.wikipedia.org/wiki/Double_Ratchet_Algorithm
1•gjvc•57s ago•0 comments

Show HN: WatchUm – Crime data for any Austin apartment or street address

https://watchum.io/
1•BreRoz•1m ago•0 comments

Show HN: OmnySSH – TUI SSH manager with dashboard, SFTP and snippets (Rust)

https://github.com/timhartmann7/omnyssh
2•hartmann7•2m ago•0 comments

Show HN: Feed-Repeat, a Tool to Repeat Old Posts from Web Feeds

https://abhin4v.github.io/feed-repeat/
2•abhin4v•5m ago•0 comments

Mythos Proves AI Safety Can No Longer Live Inside the Model

https://grith.ai/blog/mythos-ai-safety-cannot-live-inside-the-model
2•edf13•8m ago•0 comments

Omnigent: A Meta-Harness to Combine, Control and Share Your Agents

https://www.databricks.com/blog/introducing-omnigent-meta-harness-combine-control-and-share-your-...
5•fanzeyi•9m ago•0 comments

The Pulling of Mythos Offline: Why AI KYC Will Fail to Stop Cybercriminals

https://www.encurtador.dev/redirecionamento/71b29bo
6•zbangrec•10m ago•1 comments

Continuous Proffessional Development

https://www.labroots.com/virtual-event/precision-medicine-genomics-genetics-molecular-diagnostics...
2•delixelijah•16m ago•0 comments

Rethinking Monorepos in the Age of Agents

https://chamoda.com/rethinking-monorepos-in-the-age-of-agents
2•chamoda•16m ago•0 comments

Goblin Sharks Caught on Camera in Their Natural Habitat for the First Time

https://nautil.us/goblin-sharks-caught-on-camera-in-their-natural-habitat-for-the-first-time-1281981
4•Brajeshwar•20m ago•0 comments

Vindication for Young Elon Musk

https://www.wsj.com/opinion/vindication-for-young-elon-musk-4039d1ec
4•bookofjoe•22m ago•1 comments

Investigating Interactive Energy Harvesting in Battery-Free Games Consoles(2026)

https://dl.acm.org/doi/10.1145/3772318.3790831
3•menno-sh•23m ago•0 comments

Learning Infrastructure for AI Agents

https://getagentloop.io/
4•martinembon•27m ago•0 comments

Show HN: Kamio: Decorate a home for your Tamagotchi-like companion

https://kamio.ai/
3•eric_khun•29m ago•0 comments

I built a discovery layer for Discogs record stores

https://milkcrate.fm/explore
3•body-clock•29m ago•0 comments

HalluHard: A Hard Multi-Turn Hallucination Benchmark

https://arxiv.org/abs/2602.01031
2•root-parent•29m ago•0 comments

Show HN:I audited 162 agent-written PRs – 27% were the AI fixing itself

https://github.com/commensa-ai/commensa-audit
3•aimattb•30m ago•1 comments

Claude Fable 5 vs. GPT-5.5: Better Planning, Similar Execution

https://blog.kilo.ai/p/claude-fable-5-vs-gpt-5-5
6•justiceforsaas•32m ago•0 comments

Show HN: A local-first job-search command center (no cloud, no telemetry)

https://github.com/Fighter90/career-ops-ui
2•Fighter90•32m ago•0 comments

Show HN: Chrome Extension That Removes AI Slop / Spam / Self-Promo from Reddit

https://nobot-two.vercel.app/
2•DevEric•33m ago•0 comments

A thousand Postgres branches for $1

https://xata.io/blog/a-thousand-postgres-branches-for-1
3•tudorg•33m ago•0 comments

"Remaining: Szabo, Le Roux, Kleiman, Musk."

https://claude.ai/share/76e4ac64-183a-4593-89b9-dc8451d1b896
2•sorenlokholm•39m ago•0 comments

Show HN: I made a Unity Audio Manager that saves me 10 hours every project

https://unityaudiomanager.com
2•Adam-Hincu•40m ago•1 comments

/proc/self/exe overwrite from within a user namespace

https://mixedbit.org/blog/2026/06/12/proc_self_exe_overwrite_from_within_a_user_namespace.html
3•mixedbit•45m ago•0 comments

What is the most valuable skill you've learned outside of your job?

3•Soumya_Max•46m ago•2 comments

Getting World Cup Updates in Slack

https://embedworkflow.com/blog/getting-world-cup-updates-in-slack/
2•ewf•46m ago•0 comments

What task are humans still better at than AI?

2•Soumya_Max•46m ago•1 comments

Pocony: A little balcony garden on your phone

https://pocony.dollarbasellc.com/
2•nico•47m ago•0 comments

The Developer Shortage in 2026: AI Killed the Order Taker, Not the Engineer

https://fullscale.io/blog/developer-shortage/
2•USTECH_WORKER•49m ago•0 comments