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

The kenopsia of dead software [video]

https://www.youtube.com/watch?v=0YYH6oPPLkg
1•macgyverismo•1m ago•1 comments

Wit, unker, Git: The lost medieval pronouns of English intimacy

https://www.bbc.com/future/article/20260408-the-extinct-english-words-for-just-the-two-of-us
1•eigenspace•2m ago•0 comments

Neocities

https://neocities.org/
1•nc0•2m ago•0 comments

Privilege Escalation Attacks on GPUs Using Rowhammer

https://gpubreach.ca/
1•photon-torpedo•3m ago•0 comments

Shared Genetic Liability Across Systems of Psychiatric and Physical Illness

https://www.nature.com/articles/s41467-026-69218-1
1•gehwartzen•3m ago•0 comments

BoxWallet v0.3.4

https://github.com/richardltc/boxwallet2
1•richardltc•10m ago•0 comments

Ask HN: Local-first meetings recorder and transcriber?

1•dandaka•11m ago•1 comments

Slowjamastan: The new 'nation' hiding in the US

https://www.bbc.com/travel/article/20260330-slowjamastan-the-worlds-newest-nation-youve-never-hea...
1•keepamovin•13m ago•0 comments

Stockfish removes classical evaluation functions in favor of NNUE only (2023)

https://github.com/official-stockfish/Stockfish/commit/af110e02ec96cdb46cf84c68252a1da15a902395
1•knuckleheads•13m ago•0 comments

PolyCombo – Bundle multiple Polymarket positions into a single trade

https://polycombo.co
1•fleufleu•14m ago•0 comments

Kern – agents built for co-working

https://github.com/oguzbilgic/kern-ai
1•obilgic•14m ago•0 comments

The Internet needs an antibotty immune system, stat

https://anil.recoil.org/notes/internet-immune-system
1•avsm•15m ago•0 comments

Show HN: Running a 1.7B parameters LLM on an Apple Watch

https://twitter.com/nobodywho_ai/status/2042179816925864209
3•pielouNW•15m ago•0 comments

Wine on Astral OS

https://astral-os.org/posts/2026/04/03/wine-on-astral.html
2•mrunix•18m ago•0 comments

America Has Lost the Arab World

https://www.foreignaffairs.com/iran/america-has-lost-arab-world
4•robtherobber•18m ago•0 comments

Fluent – AI Language Learning Kit for Claude Code and Others

https://github.com/m98/fluent
1•surrTurr•19m ago•0 comments

HookVerify – Webhook reliability layer for the receiving side

https://hookverify.com/
1•phntmdz•23m ago•0 comments

Oracle's 30k Employee Layoffs

https://tech-insider.org/oracle-30000-layoffs-ai-data-center-restructuring-2026/
5•01-_-•29m ago•0 comments

Russia sees China's WeChat, Douyin as models for its homegrown Max messenger

https://www.reuters.com/world/china/russia-sees-chinas-wechat-douyin-models-its-homegrown-max-mes...
2•01-_-•29m ago•0 comments

Multi-Core by Default – By Ryan Fleury – Digital Grove

https://www.dgtlgrove.com/p/multi-core-by-default
1•birdculture•38m ago•0 comments

Ortto Is Joining Canva

https://ortto.com/blog/ortto-is-joining-canva/
2•kehers•41m ago•0 comments

Mano-P: Open-source on-device GUI agent, #1 on OSWorld benchmark

https://arxiv.org/abs/2509.17336
1•mininglamp•43m ago•0 comments

The day you get cut out of the economy

https://geohot.github.io//blog/jekyll/update/2026/04/08/the-day-you-get-cut-out.html
2•rvz•43m ago•1 comments

Search page for Rust developer blogs

https://rustgrep.dev
1•adamsmo•44m ago•0 comments

Bring Buddy Back

https://github.com/anthropics/claude-code/issues/45596
2•cientifico•46m ago•0 comments

Claude mixes up who said what and that's not OK

https://dwyer.co.za/static/claude-mixes-up-who-said-what-and-thats-not-ok.html
26•sixhobbits•46m ago•7 comments

AnyInspect – Service Inspections made simple with AI

https://anyinspect.ai/en-GB
1•Velc•49m ago•0 comments

Unofficial Linux 7.0-rc7 Release Notes, AI-generated

https://lexplain.net/release-notes/v7.0-rc7
2•daisydevel•50m ago•0 comments

Gemini-CLI, zeroclaw, Llama.cpp, Qwen3.5 on TK1

https://forums.developer.nvidia.com/t/gemini-cli-zeroclaw-llama-cpp-qwen3-5-on-tk1/365653
1•benbojangles•50m ago•1 comments

An international analysis of psychedelic drug effects on brain circuit function

https://www.nature.com/articles/s41591-026-04287-9
2•XzetaU8•50m ago•0 comments