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

Stupid RCU Tricks: Corner-Case RCU Implementations

https://people.kernel.org/paulmck/stupid-rcu-tricks-corner-case-rcu-implementations
1•matt_d•36s ago•0 comments

The Future of Contact Form 7: Is the "End of Development" a Cause for Concern?

https://edel-hearts.com/contact-form-7-end-of-development/?display_lang=en
1•taubek•1m ago•0 comments

Growing List of Dead and Missing NASA Scientists Triggers New Alarm

https://www.yahoo.com/news/articles/growing-list-dead-missing-nasa-172454588.html
1•Teever•1m ago•0 comments

TLDR; an ArXiv –> Video Converter

https://manatee.work/
1•jrm-veris•3m ago•0 comments

FDA to weigh easing limits on unproven peptides favored by RFK Jr

https://apnews.com/article/peptides-fda-kennedy-injection-bpc157-37bf2f94f0e8a57da76e67a03b58ff0f
1•randycupertino•5m ago•1 comments

Lumen's risky fiber bet nearly bankrupted it. Now it's driving its AI future

https://www.cnbc.com/2026/04/15/from-near-bankruptcy-to-ai-tailwinds-lumens-high-stakes-fiber-bet...
1•cybermango•6m ago•0 comments

Farmer Arrested for Speaking Too Long at Datacenter Town Hall Vows to Fight

https://www.404media.co/farmer-arrested-for-speaking-too-long-at-datacenter-town-hall-vows-to-fight/
3•sudonanohome•6m ago•0 comments

Show HN: Jeeves – TUI for browsing and resuming AI agent sessions

https://github.com/robinovitch61/jeeves
1•lrobinovitch•6m ago•0 comments

Why Structured Data May Be AI's Next Enterprise Frontier

https://www.forbes.com/sites/ronschmelzer/2026/04/14/why-structured-data-may-be-ais-next-enterpri...
1•cpt100•6m ago•0 comments

Flock employees caught watching kids gymnastic class and pools

https://substack.com/home/post/p-193593234
3•enaaem•7m ago•1 comments

EU threatens to force Meta to restore WhatsApp full access for rival AI chatbots

https://apnews.com/article/whatsapp-meta-eu-european-union-antitrust-ai-c2b1000da61c204612b2fd2c5...
2•01-_-•7m ago•0 comments

You Can Soon Buy a $4,370 Humanoid Robot [Unitree R1] on AliExpress

https://www.wired.com/story/unitree-r1-humanoid-robot-for-sale-on-aliexpress/
2•falcor84•8m ago•1 comments

The World

https://hesnotjoking.substack.com/p/the-world-276
1•ucla_rob•9m ago•0 comments

Show HN: ZettelForge – Agentic memory for cyber threat intelligence

https://github.com/rolandpg/zettelforge
1•rolandpg•10m ago•0 comments

Drarpa – CDC sync engine with exactly-once delivery and saga orchestration (Go)

https://github.com/whispering3/Drarpa
1•dnosoz•10m ago•0 comments

Elon Musk, Who Owns X, Appears to Post on TikTok

https://www.nytimes.com/2026/04/12/technology/elon-musk-tiktok.html
2•bookofjoe•10m ago•1 comments

Sperm whales' communication closely parallels human language, study finds

https://www.theguardian.com/environment/2026/apr/15/sperm-whales-alphabet-vocalizations-similar-h...
2•mikhael•11m ago•0 comments

That Meeting You Hate May Keep A.I. From Stealing Your Job

https://www.nytimes.com/2026/04/15/business/ai-jobs-human-work.html
2•2OEH8eoCRo0•11m ago•1 comments

You cannot use the GNU (A)GPL to take software freedom away

https://www.fsf.org/blogs/licensing/agpl-is-not-a-tool-for-taking-freedom-away
2•Tomte•12m ago•0 comments

Annual exhortation: You should have millions of dollars of term life insurance

https://twitter.com/patio11/status/2044464318008508496
1•wmf•12m ago•2 comments

Africa pours $2B into controversial Chinese surveillance tech

https://restofworld.org/2026/africa-china-ai-surveillance/
2•PaulHoule•13m ago•0 comments

Microsoft: April updates trigger BitLocker key prompts on some servers

https://www.bleepingcomputer.com/news/microsoft/microsoft-some-windows-servers-ask-for-bitlocker-...
2•Brajeshwar•14m ago•0 comments

An Arm Mainboard for the Framework Laptop

https://www.jeffgeerling.com/blog/2026/arm-mainboard-for-framework-laptop/
2•ingve•15m ago•0 comments

Is anyone actually using OpenClaw?

4•misterchocolat•16m ago•2 comments

We Left the Cloud

https://basecamp.com/cloud-exit
2•talboren•16m ago•0 comments

Show HN: I built a browser idle game about training AI models

https://ai-lab-azure-pi.vercel.app
1•mmilovanovic87•16m ago•0 comments

Under the hood of MDN's new front end

https://developer.mozilla.org/en-US/blog/mdn-front-end-deep-dive/
1•hampelm•16m ago•0 comments

Metatextual Literacy

https://www.jenn.site/metatextual-literacy/
2•dado3212•19m ago•0 comments

Quitting my job to research AI software design

https://jamestimmins.com/p/quitting-my-job-to-research-ai-software-design/
1•jamestimmins•20m ago•0 comments

Turning a Chinese IoT camera into an owl livestream

https://blog.alexbeals.com/posts/owl-cam
1•dado3212•20m ago•0 comments