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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•10mo ago
Agreed

Whoop is trying to copyright UI patterns, activity rings, dark mode and words

https://www.youtube.com/watch?v=iAcx7kP9sog
3•chakintosh•2m ago•0 comments

vLLM introduces memory optimizations for long-context inference

https://github.com/vllm-project/vllm/releases
2•addisud•2m ago•0 comments

We Score MCP Servers – and Why We Rebuilt It from Scratch

https://mcppedia.org/blog/2026-04-04-how-we-score-mcp-servers
2•bibekshrestha•7m ago•1 comments

The Only Game Worth Playing

https://newsletter.calvinrosser.com/p/207
2•sillywabbit•8m ago•0 comments

Map Gesture Controls - Control maps with your hands

https://sanderdesnaijer.github.io/map-gesture-controls/
1•hebelehubele•11m ago•0 comments

Show HN: Local-first resume generator with in-browser PDF rendering

https://resume.journy.live/
2•dlvktrsh•11m ago•1 comments

WebAssembly Explorer

https://mbebenita.github.io/WasmExplorer/
2•luu•11m ago•0 comments

Feds Seek Access to Three Texas State Parks for Border Wall

https://insideclimatenews.org/news/02042026/texas-state-parks-border-wall-construction/
2•geox•13m ago•0 comments

Debian Is Figuring Out How Age Verification Laws Will Impact It

https://www.phoronix.com/news/Debian-Undecided-Age-Laws
3•breve•15m ago•0 comments

A Python package for verifying PyPI attestations of other Python packages

https://github.com/Halfblood-Prince/trustcheck
1•halfblood1010•15m ago•2 comments

ACE on a USB→HDMI Adapter

https://blazelight.dev/blog/ms2160.mdx
1•theblazehen•17m ago•0 comments

LLM 'benchmark' – writing code controlling units in a 1v1 RTS

https://yare.io/ai-arena
2•levmiseri•21m ago•0 comments

Syd sandbox has new Tutorial

https://man.exherbo.org/sydtutorial.7.html
1•hayali•26m ago•0 comments

Making a Type Checker/LSP for Nix

https://johns.codes/blog/making-a-type-checker-lsp-for-nix
1•birdculture•29m ago•0 comments

The Oxygen Apocalpyse: how bacteria used a spin diode to wipe out ancient life

https://keiran-rowell.github.io/oxygen/2026-04-02-the-oxygen-apocalypse/
2•KR_compchem•30m ago•0 comments

Shibuya's New 'G-Cha and Ba-Cha' Cafe Is Run by Senior Citizens

https://spoon-tamago.com/shibuya-senior-citizen-cafe/
1•herbertl•30m ago•1 comments

Void: Netflix open-sources a model for physics-aware video object removal

https://firethering.com/void-ai-video-object-removal-physics/
1•steveharing1•30m ago•0 comments

Show HN: Dev Personality Test

https://personality.4m1r.dev/
1•4m1rk•32m ago•0 comments

Mad Television Tycoon

https://store.steampowered.com/app/3565020/Mad_Television_Tycoon/
1•doener•38m ago•0 comments

Mecha: A flat-file content management system for minimalists

https://github.com/mecha-cms/mecha
2•indigodaddy•38m ago•0 comments

Show HN: Harness CLI – Open-source agent loop for long-running app development

https://github.com/hyspacex/harness-cli
1•huanyux•38m ago•0 comments

Offering 1 free hour on marketing and distribution for early builders

1•zonementale•44m ago•0 comments

Show HN: Weakmap – weak map for Go without use of finalizers

https://codeberg.org/yarmak/weakmap
1•Snawoot•45m ago•0 comments

Cindy Cohn: Privacy's Defender – Fighting Digital Surveillance for over 30 Years [video]

https://www.youtube.com/watch?v=APYidsm5FOs
3•verdverm•46m ago•0 comments

Dropping capitalist-individualism for democratic-socialist spiritualism

https://thenotoriousdmg.substack.com/p/non-alignment-and-its-consequences
4•himanshu7net•47m ago•0 comments

NASA Astronomy Picture of the Day

https://apod.nasa.gov/apod/astropix.html
1•lschueller•47m ago•1 comments

Google Now Lets You Change Your Gmail Address

https://www.wired.com/story/how-to-change-your-gmail-address/
3•mgh2•48m ago•1 comments

Camels, sailboats and poultry trucks: One man's no-fly journey around the world

https://www.cnn.com/2026/04/01/travel/egyptian-traveler-omar-nok-round-the-world-without-flying
2•NaOH•53m ago•0 comments

OpenClaw CVE and Security Advisory Tracker

https://github.com/jgamblin/OpenClawCVEs/
4•_____k•55m ago•0 comments

SEC Rubio Revokes Green Cards of Foreign Nationals W Ties to Iranian Terror

https://www.state.gov/releases/office-of-the-spokesperson/2026/04/secretary-rubio-revokes-green-c...
1•737min•55m ago•0 comments