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

Quine Game

https://adam.scherl.is/static/quine-game/
1•snarkconjecture•2m ago•1 comments

Declining Global Security

https://epthinktank.eu/2026/04/02/declining-global-security/
1•jruohonen•2m ago•0 comments

Maybe Trump Should Not Have Given This Speech

https://www.theatlantic.com/ideas/2026/04/trump-iran-war-speech/686663/
2•handfuloflight•3m ago•1 comments

Show HN: Widekey Keyboard for Android, double/long tap for 2nd on dual button

https://github.com/kaie/widekey-keyboard
1•kaiengert•3m ago•0 comments

Nursing Is the Surefire New Path to American Prosperity

https://www.wsj.com/economy/jobs/nursing-jobs-pay-prosperity-b2769391
1•JumpCrisscross•3m ago•0 comments

PS6 Could Ditch Built‑in Disc Drive,Let Players Buy Ext. Unit for Physical Games

https://www.extremetech.com/gaming/ps6-could-ditch-builtin-disc-drive-let-players-buy-external-un...
1•Markoff•5m ago•0 comments

IKEA working on gaming console konsål

https://www.gamereactor.se/rykte-ikea-bygger-svensk-spelkonsol-med-vansinnig-prestanda-ska-lanser...
1•amarant•6m ago•0 comments

Refactoring Is Not Heroism – An Information-Theoretic Proof

https://github.com/HeinrichvH/articles/blob/main/building-with-ai/01-entropy-cycle/01-entropy-cyc...
1•HeinrichAQS•6m ago•0 comments

Where to host leaked Claude Code source?

https://github.com/tornikeo/claude-code/
2•tornikeo•8m ago•1 comments

Automated Pigeon Defense System

https://old.reddit.com/r/SideProject/comments/1s9ywir/automated_pigeon_defense_system/
2•thunderbong•11m ago•0 comments

We automated our business vetting with OpenClaw

https://www.indiehackers.com/post/we-automated-our-business-vetting-with-openclaw-788b285744
1•geojacobm6•18m ago•0 comments

Scaling a Monolith to 1M LOC: 113 Pragmatic Lessons from Tech Lead to CTO

https://www.semicolonandsons.com/articles/scaling-a-monolith-to-1m-loc-113-pragmatic-lessons-from...
1•birdculture•18m ago•0 comments

Claude Code users hitting usage limits 'way faster than expected'

https://www.bbc.com/news/articles/ce8l2q5yq51o
11•steveharing1•18m ago•3 comments

AI Models Lie, Cheat, and Steal to Protect Other Models from Being Deleted

https://www.wired.com/story/ai-models-lie-cheat-steal-protect-other-models-research/
2•joozio•19m ago•0 comments

30-second setup to avoid being hit by supply chain attacks like the axios one

https://old.reddit.com/r/node/comments/1s8r8aj/30second_setup_to_avoid_being_impacted_by_supply/
1•bundie•24m ago•0 comments

Universal diagnostic and monitoring tool for GPUs, TPUs and NPUs

https://zml.ai/posts/zml-smi/
2•steren•25m ago•0 comments

WhatsApp notifies users who installed fake app made by government spyware maker

https://techcrunch.com/2026/04/01/whatsapp-notifies-hundreds-of-users-who-installed-a-fake-app-th...
3•ledoge•27m ago•0 comments

Aftonbladet Is Monetizing Your Privacy

https://www.assured.se/posts/monetizing-privacy
2•JoachimS•31m ago•0 comments

Holo3: Breaking the Computer Use Frontier

https://hcompany.ai/holo3
1•bmichel•31m ago•0 comments

Insights from 24 real subscription/email bombing waves

https://www.xorlab.com/en/blog/from-chaos-to-control-insights-from-24-email-bombing-waves
2•mfi•37m ago•0 comments

Why your agent needs one session, not one per channel – kern

https://kern-ai.com/blog/why-your-agent-needs-one-session
2•obilgic•38m ago•0 comments

RepoFortify – Production readiness scanner for GitHub repos (free, no signup)

https://repofortify.com/
1•braingemai•39m ago•0 comments

Quad9 Enables DNS over HTTP/3 and DNS over QUIC

https://quad9.net/news/blog/quad9-enables-dns-over-http-3-and-dns-over-quic/
3•itchingsphynx•39m ago•1 comments

Pulse Warroom

https://pulsewarroom.com/
1•caidenlk•42m ago•0 comments

Nerd meets crazy nerd in random comment section

https://reverseengineering.stackexchange.com/questions/8549/reverse-engineering-a-proprietary-gpu...
1•isodude•45m ago•1 comments

Evolutionary Computation Bestiary

http://fcampelo.github.io/EC-Bestiary/
2•emil-lp•46m ago•0 comments

Neuledge Context: Local-first documentation for AI agents

https://github.com/neuledge/context
2•lastdong•48m ago•0 comments

A Cost-Benefit Analysis of Using Direct Air Capture to Remove Atmospheric Carbon [pdf]

https://energyanalytics.org/wp-content/uploads/2026/02/Direct-Air-Capture-Report-FINAL.pdf
1•xbmcuser•50m ago•1 comments

Running Out of Disk Space on Launch

https://alt-romes.github.io/posts/2026-04-01-running-out-of-disk-space-on-launch.html
1•romes•56m ago•0 comments

Ask HN: Can WASM be used as a means of sanitizing native code?

1•foota•59m ago•1 comments