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

Kiwix: Free educational content, offline browser apps, and local hotspot device

https://kiwix.org/en/
1•adityaathalye•4m ago•1 comments

The Economist – Archive 1945 – NotebookLM

https://notebooklm.google.com/notebook/34510332-d39c-499e-882d-e48393d612cd
2•instagraham•9m ago•0 comments

ChatGPT involvement in mentally-ill person's murder and suicide

https://en.wikipedia.org/wiki/Murder_of_Suzanne_Adams
2•d_silin•10m ago•0 comments

Show HN: Sessy – Open-source email observability for AWS SES

https://github.com/marckohlbrugge/sessy
1•marckohlbrugge•12m ago•0 comments

Fork Yeah: We're keeping ingress-Nginx alive

https://www.chainguard.dev/unchained/keeping-ingress-nginx-alive
1•gpi•14m ago•0 comments

Crazy Jam Jar: Match-3 Blast for Nonstop Fun

https://ibb22.com/casino/bbgame-13370/
1•gamedemoplayer•14m ago•1 comments

A Big, Long Day: The Fastest Known Time on the Everest Base Camp Trail

https://strivetrips.org/blog/ebc-writeup/
2•mcoliver•16m ago•0 comments

A new era of Stack Overflow

https://stackoverflow.blog/2025/12/30/a-new-era-of-stack-overflow/
1•gudzpoz•17m ago•0 comments

Sirius DB

https://www.sirius-db.com/
1•manoji•18m ago•0 comments

Conduit (Rust Matrix Server) v0.10.11 another critical vulnerability

https://conduit.rs/changelog/#v0-10-11-2025-12-30
2•acheong08•26m ago•0 comments

Apps Let You Bet on Deportations and Famine. Mainstream Media Is Eating It Up

https://theintercept.com/2025/12/29/polymarket-kalshi-betting-prediction-cnn-news-media/
2•thm•33m ago•0 comments

Show HN: S3Broker – CF Worker library to protect your S3 storage from ransomware

https://github.com/tsunrise/s3broker
1•tsunrise•33m ago•0 comments

Show HN: Perfetto2LLM - A tool to pass system traces to an LLM

https://perfetto-to-llm.vercel.app/
2•ak2242•34m ago•0 comments

Nexels

https://lessvrong.com/cs/nexels/
1•ibobev•35m ago•0 comments

Show HN: Supertictactoe.gg – A real-time PvP implementation of Ultimate TTT

https://supertictactoe.gg
1•dheesh•36m ago•0 comments

Direct3D 12: The Behavior of ClearUnorderedAccessViewUint/Float

https://asawicki.info/news_1795_secrets_of_direct3d_12_the_behavior_of_clearunorderedaccessviewui...
1•ibobev•36m ago•0 comments

Microsoft's Nadella overhauls leadership as he plots AI strategy beyond OpenAI

https://www.ft.com/content/255dbecc-5c57-4928-824f-b3f2d764f635
4•JamesAdir•37m ago•1 comments

OpenUSD Core Spec 1.0 is Here

https://aousd.org/blog/foundations-of-open-3d-development-introducing-aousd-core-specification-1-0/
1•ibobev•39m ago•0 comments

RunST does not prevent resources from escaping

https://welltypedwit.ch/posts/runst-does-not-prevent-resources-from-escaping.html
1•todsacerdoti•40m ago•0 comments

ByteDance to pour US$14B into Nvidia chips in 2026

https://www.scmp.com/tech/big-tech/article/3338191/bytedance-pour-us14-billion-nvidia-chips-2026-...
2•mfiguiere•41m ago•0 comments

New Yorker Dr. Berkan's New Channel RogoTRON

https://www.youtube.com/channel/UCGlaL2xCv4X1hDb1fQhU74w
1•northlondoner•45m ago•0 comments

Questions to ask yourself every year

https://gourav.io/blog/yearly-review
3•jerrygoyal•52m ago•2 comments

I Won a Teknofest 2025: A Step-by-Step Guide

https://www.notion.so/yapsgg/How-I-Won-a-TEKNOFEST-2025-A-Step-by-Step-Guide-2d2465f04ab58023bed5...
1•abdibrokhim•53m ago•1 comments

Study links America's favorite cooking oil to obesity

https://medicalxpress.com/news/2025-11-links-america-favorite-cooking-oil.html
2•PaulHoule•1h ago•0 comments

Show HN: Weekly newsletter with tactical frameworks from 50 $1M+ founders

https://www.doanything.com/preview/uXalImXcFZk
1•AlexMorganFndr•1h ago•0 comments

How musicals use motifs to tell stories

https://pudding.cool/2025/12/motifs/
1•gmays•1h ago•0 comments

Ask HN: What to do when Claude Code is writing code?

1•brihati•1h ago•2 comments

Show HN: Schengen Calculator – Avoid €5K Fines for Overstaying EU"

https://owlfacts.com
1•sunrays•1h ago•1 comments

A personal recap of 2025: on running, LLMs, family, coffee, work

https://dimitarmisev.com/blog/2025-recap
1•misev•1h ago•0 comments

I Built a Module System for a Language That Doesn't Have One

https://www.claudianadalin.com/blog/building-pinecone
1•xbmcuser•1h ago•0 comments