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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•7mo ago
Agreed

Leaks Predict $5000 RTX 5090 GPUs in 2026 Thanks to AI Industry Demand

https://www.techpowerup.com/344578/leaks-predict-usd-5000-rtx-5090-gpus-in-2026-thanks-to-ai-indu...
1•linksbro•3m ago•0 comments

Meta AI chief Alexandr Wang says will have kids only after Elon Musk's Neuralink

https://www.businessinsider.com/scale-ai-founder-alexandr-wang-meta-neuralink-kids-elon-musk-2025-6
1•radeeyate•7m ago•0 comments

Show HN: Chat with people who share the same Internet connection (= IP address)

https://ipchat.org
1•kkovacs•12m ago•0 comments

Bokehlicious Selfies in Python (2020)

https://www.rahulrav.com/blog/bokehlicious.html
1•azhenley•15m ago•0 comments

52 Things I Learned in 2025

https://probablyinteresting.substack.com/p/52-things-i-learned-in-2025
1•zdw•15m ago•0 comments

Show HN: BusterMQ, Thread-per-core NATS server in Zig with io_uring

https://bustermq.sh/
2•jbaptiste•16m ago•0 comments

It will be more practical to fingerprint real media than fake media

https://www.engadget.com/social-media/instagram-chief-ai-is-so-ubiquitous-it-will-be-more-practic...
1•geox•16m ago•0 comments

A geological carbon cycle sink hosted by ocean crust talus breccias

https://www.nature.com/articles/s41561-025-01839-5
1•PaulHoule•16m ago•0 comments

Predictions on how software will be built in 2026 by CTO of non-AI company

https://behan.substack.com/p/reflections-on-the-best-year-of-my
2•behan•17m ago•0 comments

Application Prohibited Internationally

https://tuckersiemens.com/posts/application-prohibited-internationally/
1•nfrmatk•18m ago•0 comments

Show HN: Use Internationalizationext in Astro

https://github.com/gutenye/astro-i18next
1•GutenYe•18m ago•0 comments

Happy New Year

https://en.wiktionary.org/wiki/Bliadhna_Mhath_%C3%99r
2•onraglanroad•18m ago•1 comments

New measles cases in S. Carolina put U.S. at risk of losing elimination status

https://www.nbcnews.com/health/health-news/measles-south-carolina-us-elimination-status-rcna251515
4•lemonberry•19m ago•0 comments

Capital in the 22nd Century

https://philiptrammell.substack.com/p/capital-in-the-22nd-century
1•newyankee•20m ago•1 comments

Simvastatin-induced skeletal muscle weakness associated with mutation

https://www.jci.org/articles/view/194490
1•bookofjoe•28m ago•0 comments

Elastic style faceted search from PostgreSQL

https://www.paradedb.com/blog/faceting
1•jamesgresql•29m ago•0 comments

Versant: Decoding the OpenVerse (2022) [pdf]

https://www.opentext.com/assets/documents/en-US/pdf/opentext-ceo-book-versant-decoding-the-openve...
1•twoodfin•29m ago•0 comments

Show HN: LáR – An open-source, deterministic "Glass Box" agent framework

https://github.com/snath-ai/lar
1•axdithya•31m ago•1 comments

The Delete Act

https://privacy.ca.gov/drop/about-drop-and-the-delete-act/
19•weaksauce•33m ago•5 comments

Your Life Can Be Better, and You Can Fix It Right Now

https://perpetual-rewiring.mataroa.blog/blog/your-life-can-be-better/
1•asterakan•33m ago•0 comments

Antivirus Software

https://en.wikipedia.org/wiki/Antivirus_software
1•npmcoders•34m ago•0 comments

2025: Year in Review

https://onebadbit.com/posts/2025/12/year-in-review/
1•wilkystyle•35m ago•0 comments

Why many embodied AI systems fail under load (architecture, not learning)

https://osf.io/ugck7/overview
1•tysonjeffreys•35m ago•1 comments

Remote Client for Life360

https://github.com/Dynosol/life360-remote
1•dynosol•37m ago•0 comments

How to become a VP at a billion-dollar company

https://markgreville.ie/2025/04/13/how-to-become-a-vp-at-a-billion-dollar-company-guaranteed-succ...
1•gHeadphone•38m ago•0 comments

Personal Autonomy and the Loss of Freedom

https://coleroberts.dev/posts/personal_autonomy
1•airhangerf15•39m ago•0 comments

2025: The Year in LLMs

https://simonwillison.net/2025/Dec/31/the-year-in-llms/
3•simonw•40m ago•0 comments

China builds a record-breaking hypergravity machine to compress space and time

https://www.scmp.com/news/china/science/article/3338193/china-builds-record-breaking-hypergravity...
1•ulrischa•41m ago•0 comments

Spokester1: Realtime Neural Game Graphics

https://theadamcolton.github.io/spokester1-neural-game-graphics
1•topwalktown•43m ago•0 comments

Show HN: Chaos Chess – 960 Bullet built in 37 days with Google Antigravity

https://chaoschess.bigbrainbusiness.de/
1•luniprise•49m ago•0 comments