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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•9mo ago
Agreed

Betterment Data Breach

https://haveibeenpwned.com/Breach/Betterment
1•skogstokig•10s ago•0 comments

Show HN: Buquet – Durable queues and workflows using only S3

https://horv.co/buquet.html
1•h0rv•31s ago•0 comments

AI Command and Staff–Operational Evidence and Insights from Wargaming

https://www.militarystrategymagazine.com/article/ai-command-and-staff-operational-evidence-and-in...
1•mooreds•4m ago•0 comments

Understanding the Political Disconnect

https://www.swarthmore.edu/understanding-political-disconnect
1•mooreds•5m ago•0 comments

How to Connect with Your Developer Audience (2022)

https://maida.kim/how-to-build-developer-audience/
1•mooreds•5m ago•0 comments

Open secrets about Hacker News

https://bengtan.com/blog/open-secrets-hacker-news/
1•thunderbong•6m ago•0 comments

Tenstorrent Cuts 20 Cores from Already-Shipping "Blackhole" P150 Cards

https://www.techpowerup.com/345977/tenstorrent-cuts-20-cores-from-already-shipping-blackhole-p150...
1•signa11•6m ago•0 comments

The Newsroom You Carry with You *to WP Staff Laid Off

https://claudepress.substack.com/p/the-newsroom-you-carry-with-you
1•Paodim•10m ago•0 comments

A few CPU hardware bugs

https://www.taricorp.net/2026/a-few-cpu-bugs/
2•signa11•15m ago•0 comments

Wirth's Revenge

https://jmoiron.net/blog/wirths-revenge/
2•signa11•16m ago•0 comments

I outperformed Enterprise Engines by 225,000x on a $50 CPU. Here is the data

1•iseph•16m ago•1 comments

Andrej Karpathy on 1 year anniversary of vibe coding

https://twitter.com/karpathy/status/2019137879310836075
1•vinhnx•20m ago•0 comments

CIA ends publication of its popular World Factbook reference tool

https://apnews.com/article/cia-world-factbook-ratcliffe-trump-fbec61ce16c4b3db59db9cefce0da043
2•prawn•22m ago•1 comments

Show HN: Rho – an OpenClaw like micro-agent that lives in termux

https://github.com/mikeyobrien/rho
1•mobrienv•30m ago•0 comments

Dictating anywhere with Nvidia open models – Nemotron ASR and Tambourine

https://kingstonkuan.com/blog/nemotron-voice-dictation/
1•kstonekuan•31m ago•0 comments

Prominent Individuals in the Files

https://en.wikipedia.org/wiki/Prominent_individuals_mentioned_in_the_Epstein_files
1•oldfuture•33m ago•0 comments

Ask HN: Are "provably fair" JavaScript games trustless?

1•rishi_blockrand•35m ago•0 comments

MLIR-Tutor: Exercises for Learning MLIR (Originally Written for PPoPP 2026)

https://github.com/Groverkss/mlir-tutor
1•matt_d•40m ago•0 comments

Ask HN: Does anyone have interests in anything besides AI?

4•drsalt•42m ago•1 comments

Effects of Full-Fat and Fermented Dairy Products on Cardiometabolic Disease

https://www.sciencedirect.com/science/article/pii/S2161831322004367
3•brendanashworth•48m ago•0 comments

A tale of two flows: Metaflow and Kubeflow

https://blog.kubeflow.org/metaflow/
4•savin-goyal•48m ago•0 comments

Show HN: Superfocus – Pomodoro timer and focus app for students

https://www.superfocus.live/
1•Jcjimenez•50m ago•0 comments

Microsoft's New Open-Source Project: LiteBox, a Rust-Based Sandboxing Library OS

https://www.phoronix.com/news/Microsoft-LiteBox
2•heavyset_go•51m ago•0 comments

Why SOTA Hybrid Models are Stuck at 1:7

https://gist.github.com/eric2675-coder/4a1d472e0775728bbcf23f4a57e3ad05
1•eric2675•55m ago•1 comments

The Traffic Mimes of Bogotá

https://www.atlasobscura.com/articles/traffic-mimes-of-colombia
2•IgorPartola•56m ago•0 comments

Zed now supports next edit prediction models Zeta, Mercury Coder, Sweep and more

https://zed.dev/blog/edit-prediction-providers
2•DesaiAshu•58m ago•0 comments

Show HN: Dengen Shrine – A privacy-focused digital Shinto ritual

https://dengen-shrine.com/
2•yumeda•1h ago•0 comments

Discover How Pros Analyze Website Traffic (Without Access)

https://newtutoweb.blogspot.com/2026/02/discover-how-pros-analyze-website.html
1•Traumen•1h ago•2 comments

Nginx vulnerability CVE-2026-1642

https://my.f5.com/manage/s/article/K000159824
2•ericdiao•1h ago•0 comments

Show HN: AI ASMR Voice – Text to ASMR Voice Generator

https://www.aiasmrvoice.com/en
1•leoncos•1h ago•0 comments