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•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

Munich's IT transition: open-source is the default for the new coalition

https://www.heise.de/en/news/Munich-s-IT-transition-Open-Source-is-the-default-for-the-new-coalit...
1•doener•1m ago•0 comments

Great Essays About Biology

https://nikomc.com/essays/30-great-essays.html
1•sebg•1m ago•0 comments

Viral Marketing

1•FDX2018•1m ago•1 comments

Medicare's new payment model is built for AI. Most of the tech world has no idea

https://techcrunch.com/2026/05/12/medicares-new-payment-model-is-built-for-ai-and-most-of-the-tec...
1•brandonb•2m ago•0 comments

More concentrated precipitation decreases terrestrial water storage

https://www.nature.com/articles/s41586-026-10487-7
1•littlexsparkee•3m ago•0 comments

Lobotomized Claude Code: system-prompt overrides for Opus 4.7

https://github.com/skrabe/lobotomized-claude-code
1•opwizardx•3m ago•0 comments

Hondurasgate.ch Portal Under Attack

https://hondurasgate.ch/investigaciones/hondurasgate-under-attack-us-israel-digital-siege
1•lbrito•4m ago•0 comments

Token Dashboard – local desktop app to see where your Claude Code tokens go

https://github.com/Arylmera/Token-Dashboard
1•Arylmera•5m ago•0 comments

Show HN: Building effective Human-AI hybrid decision-making ecosystem

https://galdren.com/lgd/
1•stAInley•7m ago•0 comments

Windows 11 PCs Compared to MacBook Neo

https://signal65.com/research/windows-11-pcs-compared-to-macbook-neo/
1•ndr42•8m ago•1 comments

An 'Impossible' Idea Led to a Pancreatic Cancer Breakthrough

https://www.nytimes.com/2026/05/12/health/pancreatic-cancer-daraxonrasib-kras.html
1•bookofjoe•8m ago•1 comments

San Fransokyo: imagining a denser San Francisco

https://chinoiserie.media/posts/san-fransokyo/
1•stevenzzzzzzz•9m ago•0 comments

LLMs are breaking 20 year old system design

https://zknill.io/posts/llms-are-breaking-20-year-old-system-design/
1•zknill•10m ago•0 comments

ContextPilot... I got tired of paying for the same system prompt 200 times

https://github.com/msousa202/ContextPilot
1•msousa202•12m ago•0 comments

The Per-Minute Calling Myth: The Hidden Economics of Voice and Video Calling API

https://blog.mesibo.com/per-minute-calling-myth-hidden-economics-voice-video-calling-apis/
1•mesibo•13m ago•0 comments

"Call A Republican" San Francisco public phone lets you call a Texas Republican

https://www.axios.com/local/san-francisco/2026/01/26/sf-texas-phone-call-experiment-political-div...
1•WarOnPrivacy•16m ago•1 comments

Pythons new httpx fork: httpx2

https://tildeweb.nl/~michiel/httpx2.html
1•roywashere•20m ago•0 comments

TSMC unveils process technology roadmap through 2029 – A12, A13, N2U announced

https://www.tomshardware.com/tech-industry/semiconductors/tsmc-unveils-process-technology-roadmap...
2•rbanffy•20m ago•0 comments

Pullback Drive

https://xkcd.com/3244/
2•linuxkernal•20m ago•0 comments

Fragnesia (Linux LPE)

https://github.com/v12-security/pocs/tree/main/fragnesia
2•Wingy•21m ago•0 comments

Cisco to Cut Jobs in Shift to Capture More AI Demand

https://www.wsj.com/business/earnings/cisco-to-cut-jobs-in-shift-to-capture-more-ai-demand-b99eeb21
1•whatthesmack•22m ago•0 comments

PyTorch 2.12 Released

https://pytorch.org/blog/pytorch-2-12-release-blog/
1•0bytematt•22m ago•0 comments

Show HN: Sinain captures screen and audio in KG, shares it with agents/peers

https://anthillnet.github.io/sinain-hud/
2•geravant•25m ago•0 comments

QWEN2.5-1.5B Abliterated Release for Android Mobile

https://huggingface.co/automajicly/qwen-1.5b-android/commit/
1•automajicly•25m ago•0 comments

I tested GPT-5.5, Claude Opus 4.7, and Gemini 3.1 Pro on financial-control

https://albertquaisie.substack.com/p/i-tested-gpt-55-claude-opus-47-and
1•Aquaisie•28m ago•0 comments

I was asked to install malware during a fake interview

https://ashishb.net/security/contagious-interview/
9•ashishb•28m ago•0 comments

TinyStories-260K running locally on a stock Game Boy Color

https://github.com/maddiedreese/gbc-transformer
1•adunk•28m ago•0 comments

Content-defined chunking added to Bazel

https://www.buildbuddy.io/blog/content-defined-chunking/
1•siggi•29m ago•0 comments

The Acceleration of Addictiveness (2010)

https://www.paulgraham.com/addiction.html
2•downbad_•29m ago•0 comments

Ask HN: What programming blogs do you follow?

1•chistev•31m ago•1 comments