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

Vanished in Paradise: Dark Secrets of Hawaii's Big Island [video]

https://www.youtube.com/watch?v=Y-nc9TalADk
1•keepamovin•2m ago•0 comments

Show HN: I built an AI alternative to NoBroker/MagicBricks that never calls you

https://www.abodex.space/
2•soorajsanker•8m ago•0 comments

Free Book "Rust Projects – Write a Redis Clone" Version 2.0.0

https://rust-projects-write-a-redis-clone.github.io/
1•thedigicat•9m ago•0 comments

WellaBack Posture Corrector

https://www.facebook.com/WellaBackPostureCorrector.Get
1•Bannersons•12m ago•0 comments

Show HN: Llm.sql – Run a 640MB LLM on SQLite, with 210MB peak RSS and 7.4 tok/s

3•aldielshala•13m ago•0 comments

8087 Emulation on 8086 Systems

https://www.os2museum.com/wp/learn-something-old-every-day-part-xx-8087-emulation-on-8086-systems/
1•ingve•15m ago•0 comments

2026 Annual C++ Developer Survey "Lite"

https://isocpp.org/blog/2026/04/2026-annual-cpp-developer-survey-lite1
1•pyjarrett•17m ago•0 comments

Do you need a SoC 2 report?

https://www.getprobo.com/blog/2026-04-22-do-you-need-a-soc-2-report
2•gearnode•20m ago•0 comments

Meta is revamping its cross-app management system

https://techcrunch.com/2026/04/23/meta-is-revamping-its-cross-app-management-system/
1•DropDead•21m ago•0 comments

The FBI faked a field of forensic science. (2015)

https://slate.com/news-and-politics/2015/04/fbis-flawed-forensics-expert-testimony-hair-analysis-...
2•downbad_•21m ago•1 comments

Static Types for Dynamic Targets

https://intertwingly.net/blog/2026/04/23/Static-Types-for-Dynamic-Targets.html
1•ingve•22m ago•0 comments

Health-care AI is here. We don't know if it helps patients

https://www.technologyreview.com/2026/04/24/1136352/health-care-ai-dont-know-actually-helps-patie...
3•joozio•23m ago•0 comments

Open grid data has a public benefit

https://nworbmot.org/blog/open-grid-data.html
1•lyoncy•25m ago•0 comments

UK Biobank leak: Health details of 500 000 people are offered for sale

https://www.bmj.com/content/393/bmj.s781
24•dberhane•32m ago•1 comments

Show HN: PhotoSharpener – sharpen and upscale photos in the browser with AI

https://photosharpener.com/
1•wbemaker•33m ago•0 comments

Face (Sociological Concept)

https://en.wikipedia.org/wiki/Face_(sociological_concept)
1•acqbu•35m ago•0 comments

Microsoft plans voluntary employee buyout for up to 7% of U.S. workforce

https://www.cnbc.com/2026/04/23/microsoft-plans-first-voluntary-retirement-program-for-us-employe...
1•layer8•37m ago•0 comments

Rat Park – ProofOfConcept

https://poc.bcachefs.org/blog/rat-park.html
1•Antibabelic•39m ago•0 comments

Hear your agent suffer through your code

https://github.com/AndrewVos/endless-toil
3•AndrewVos•43m ago•0 comments

A Hundred Robots Are Running a Bio Lab

https://www.corememory.com/p/a-hundred-robots-are-running-a-bio-medra-michelle-lee
1•giuliomagnifico•47m ago•0 comments

Show HN: leaf – a terminal Markdown previewer with a GUI-like experience

https://github.com/RivoLink/leaf
2•RivoLink•48m ago•1 comments

Stvor is Signal Protocol E2EE SDK for any app (zero dependencies)

https://sdk.stvor.xyz
1•sapog_kun•48m ago•0 comments

Show HN: Free MVP cost estimator – see what agencies charge vs. a 72-hour sprint

https://www.mohamedrashard.dev/cost-to-build
1•mohrashard•48m ago•0 comments

I Was Lonely and Let an App Pick My New Friends. Here’s How It Went

https://thewalrus.ca/i-was-lonely-and-let-an-app-pick-my-new-friends-heres-how-it-went/
1•pseudolus•51m ago•0 comments

How to be anti-social – a guide to incoherent and isolating social experiences

https://nate.leaflet.pub/3mk4xkaxobc2p
18•calcifer•54m ago•6 comments

Building an agentic escrow for software projects

1•sushrut1058•54m ago•0 comments

nowhere: an entire website encoded in a URL

https://hostednowhere.com/
20•bpierre•58m ago•6 comments

Ask HN: Are there any difference using open source tool instead commercial subs?

1•chalshik•1h ago•0 comments

Show HN: Figpack science viz – Python script → Shareable HTML Bundle in cloud

https://figpack.org
1•jmagland•1h ago•0 comments

AI agent designs a complete RISC-V CPU from a 219-word spec sheet in 12 hours

https://www.tomshardware.com/tech-industry/artificial-intelligence/ai-agent-designs-a-complete-ri...
1•fork-bomber•1h ago•0 comments