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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•8mo ago
Agreed

Meta Grover 2

https://zenodo.org/records/18333427
1•KaoruAK•1m ago•0 comments

Meta Grover 1

https://zenodo.org/records/18333327
1•KaoruAK•1m ago•0 comments

Building a JavaScript runtime in one month

https://themackabu.dev/blog/js-in-one-month
1•azhenley•3m ago•0 comments

OpenUI: Open-source control center for AI agents

https://github.com/Fallomai/openui
3•anthonySs•6m ago•0 comments

New HackerOne Signal Requirement for Vulnerability Reports for Node.js

https://nodejs.org/en/blog/announcements/hackerone-signal-requirement
1•luispa•8m ago•0 comments

Momory: AI Real-Time Stream Subtitles and Translation

https://momory.dev
1•matsumotory•9m ago•0 comments

China calls for INTL efforts to prevent Japan reverting to path of militarism

https://news.cgtn.com/news/2026-01-20/China-calls-for-global-efforts-to-prevent-Japan-s-return-to...
1•Alupis•9m ago•0 comments

The Chinese Company Taking on Memory Chip Giants

https://www.wsj.com/tech/the-chinese-company-taking-on-the-worlds-memory-chip-giants-78dfea55
1•johncole•12m ago•1 comments

Congress Imposes Public Utility Rules on UnitedHealth, CVS, and Cigna

https://www.thebignewsletter.com/p/boom-the-break-up-of-big-medicine
2•connor11528•15m ago•0 comments

Plant-based plastic is saltwater degradable and leaves behind zero microplastics

https://phys.org/news/2025-12-polymer-based-plastic-fully-saltwater.html
2•PaulHoule•19m ago•0 comments

Erroneous submission

https://www.abstractsonline.com/pp8/#!/20756/presentation/5600
1•firejake308•19m ago•1 comments

Show HN: ERCOT Texas power grid dashboard

https://txryan.com/ercot
1•nexuszero•20m ago•0 comments

Weight-Loss Drugs Could Save U.S. Airlines $580M per Year

https://www.nytimes.com/2026/01/19/travel/airlines-weight-loss-drugs.html
1•mattas•21m ago•1 comments

Private Equity Saks Another Retail Outlet

https://prospect.org/2026/01/20/private-equity-saks-another-retail-outlet/
2•mooreds•21m ago•0 comments

The Foundation Sprint: From the Creators of the Design Sprint

https://www.lennysnewsletter.com/p/introducing-the-foundation-sprint
1•mooreds•33m ago•0 comments

Show HN: Ekctl CLI for Managing Calendars and Reminders on macOS

https://schappi.com/blog/meet-ekctl-a-command-line-interface-for-managing-calendars-and-reminders...
1•schappim•34m ago•0 comments

Best Practices for Ownership in GLib

https://blog.sebastianwick.net/posts/glib-ownership-best-practices/
1•JNRowe•34m ago•0 comments

Claudeception

https://github.com/blader/Claudeception
2•mooreds•34m ago•0 comments

Don't Trip[Wire] Yourself: Testing Error Recovery in Zig

https://mitchellh.com/writing/tripwire
1•todsacerdoti•36m ago•0 comments

Ask HN: How did Gemini go from being awful to incredible back to awful?

3•wewewedxfgdf•37m ago•2 comments

Realistic Designs N-Q – Atomic Rockets

https://www.projectrho.com/public_html/rocket/realdesigns2.php
2•thunderbong•40m ago•0 comments

TinyMMO Jam

https://itch.io/jam/tinymmo-jam
3•raytopia•42m ago•0 comments

An election booth inside a forest in India – for just one voter

https://www.aljazeera.com/gallery/2024/5/8/an-election-booth-inside-a-forest-in-india-for-just-on...
1•KnuthIsGod•42m ago•0 comments

A Reminder Why Digitising Old Printed Material Is Important (2025)

https://blog.decryption.net.au/posts/digitise_reminder.html
1•walterbell•44m ago•0 comments

ANN v3: 200ms p99 query latency over 100B vectors

https://turbopuffer.com/blog/ann-v3
2•tanelpoder•45m ago•0 comments

Protect the Dolls

https://naomicunningham.substack.com/p/protect-the-dolls
1•yes_you•56m ago•0 comments

Unpleasant Design and Hostile Urban Architecture (2016)

https://99percentinvisible.org/episode/unpleasant-design-hostile-urban-architecture/
3•jacobedawson•58m ago•0 comments

Against Generative AI: Is Art the Last Refuge of Our Humanity?

https://lithub.com/against-generative-ai-is-art-the-last-refuge-of-our-humanity/
1•FigurativeVoid•1h ago•0 comments

African trade has been vastly underestimated

https://www.economist.com/middle-east-and-africa/2026/01/18/african-trade-has-been-vastly-underes...
2•petethomas•1h ago•0 comments

Results from the 2025 Go Developer Survey

https://go.dev/blog/survey2025
1•prattmic•1h ago•0 comments