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

DuckLake v1.0

https://ducklake.select/2026/04/13/ducklake-10/
1•henrikhorluck•33s ago•0 comments

Trade for belief-based use drives hooded vultures to near-extinction in Benin

https://news.mongabay.com/2026/03/staggering-trade-for-belief-based-use-drives-hooded-vultures-to...
2•PaulHoule•1m ago•0 comments

Nuclear Salt-Water Rocket

https://en.wikipedia.org/wiki/Nuclear_salt-water_rocket
2•radeeyate•2m ago•0 comments

Microsoft begins removing Copilot from Notepad on Windows 11 but the AI persists

https://www.windowscentral.com/microsoft/windows-11/microsoft-finally-begins-removing-copilot-fro...
2•latexr•3m ago•0 comments

Do MCPs improve coding agent performance?

https://marginlab.ai/blog/do-mcps-improve-coding-agents-part-1/
6•jbatmargin•6m ago•0 comments

Servo is now available on crates.io

https://servo.org/blog/2026/04/13/servo-0.1.0-release/
2•ffin•6m ago•0 comments

Show HN: Formal – LLM-driven property checker, backed by Lean 4 and Mathlib

https://github.com/yamafaktory/formal
1•yamafaktory•7m ago•0 comments

EU and US near critical minerals deal to combat Chinese control

https://www.reuters.com/world/china/eu-us-near-critical-minerals-deal-combat-chinese-control-bloo...
2•giuliomagnifico•8m ago•0 comments

That Time Is Gone

https://marcobambini.substack.com/p/that-time-is-gone
1•marcobambini•9m ago•0 comments

Direct hardware capture of our GTA3 port running on the Dreamcast

https://twitter.com/falco_girgis/status/2043379700794327492
1•bpierre•10m ago•0 comments

How Netflix Uses Java (2026 Edition) [video]

https://www.youtube.com/watch?v=ucJTPda_zx0
1•jonbaer•10m ago•0 comments

Apple's AI chief John Giannandrea to exit next week

https://www.msn.com/en-in/money/general/apple-s-ai-chief-john-giannandrea-to-exit-next-week/ar-AA...
1•totalmarkdown•11m ago•0 comments

Show HN: Turn your cat into a Cubism Cat via an app

https://cubismcat.damjanski.com/
2•whatifbelief•11m ago•1 comments

Michigan 'digital age' bills pulled after privacy concerns raised

https://www.thecentersquare.com/michigan/article_7ca4e268-4a68-42fb-9042-f9d8604ebd7f.html
1•iamnothere•13m ago•0 comments

Pope says he has 'no fear of Trump administration' after president slams him

https://www.cnn.com/2026/04/12/politics/trump-pope-leo-criticism-hnk-intl
2•rawgabbit•13m ago•0 comments

Show HN: Loreo – Bot-free, 8MB AI meeting transcriber using Scribe v2

https://getloreo.com/
1•fnel•17m ago•1 comments

Show HN: A web newspaper that looks like a newspaper

https://myown.news/
1•auxten•18m ago•0 comments

I Don't Use Twitter or Microsoft. My Logs Disagree

https://the.unknown-universe.co.uk/privacy-security/my-logs-disagree/
1•TheIPW•18m ago•1 comments

The Life-and-Death Exhaustion of React

https://im.not.ci/what-a-react/
5•Nullpinter•20m ago•0 comments

The Outlaws: On the Road with a 1960s Biker Gang

https://flashbak.com/the-outlaws-on-the-road-a-1960s-biker-gang-482415/
1•bookofjoe•29m ago•0 comments

Commitgen – AI-generated Conventional Commit messages from your staged diff

2•TheAary•29m ago•0 comments

Android now stops you sharing your location in photos

https://shkspr.mobi/blog/2026/04/android-now-stops-you-sharing-your-location-in-photos/
3•edent•30m ago•0 comments

HumansMap, an interactive graph visualization of 3M+ Wikidata entities

https://humansmap.com
1•abstracthinking•31m ago•1 comments

The Global API Injection Pattern

https://www.elbeno.com/blog/?p=1831
2•ingve•32m ago•0 comments

Show HN: Digest – a Claude Code skill for your daily dev news digest

https://github.com/camilleroux/tech-digest
2•camilleroux•32m ago•0 comments

AIs can 'memorize' data they shouldn't. Can they be forced to forget?

https://www.science.org/content/article/ais-can-memorize-data-they-shouldn-t-can-they-be-forced-f...
1•giuliomagnifico•34m ago•0 comments

Share private Gitea/Forgejo repos secretly

https://sharemygit.com/
1•onesandofgrain•34m ago•1 comments

Ronja: Optical point-to-point data link with 1.4km range and 10Mbps full duplex

https://ronja.twibright.com/about.php
1•fanf2•36m ago•0 comments

How to Tax Billionaires

https://www.theatlantic.com/ideas/2026/04/estate-tax-billionaires-wealth/686770/
1•monkeydust•38m ago•0 comments

"Darwin-27B-Opus: Surpassing the Foundation Model Without Training"

https://huggingface.co/blog/FINAL-Bench/darwin-gpqa
2•makaimc•39m ago•0 comments