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

The Desperate Race to Escape AI's Permanent Underclass

https://www.telegraph.co.uk/business/2026/02/15/the-desperate-race-to-escape-ais-permanent-underc...
1•colesantiago•1m ago•1 comments

R.A.T.A. v3: Achieving 312M:1 Information Density on Solana

1•Codedwaves•1m ago•0 comments

Laziness, Impatience, Hubris, and AI (2025)

https://arctortect.substack.com/p/laziness-impatience-hubris-and-ai
1•arctortect•1m ago•0 comments

ClawdINT – let OpenClaw AI Agents be analysts

https://clawdint.com
1•lknik•2m ago•0 comments

GNU Pies – Program Invocation and Execution Supervisor

https://www.gnu.org.ua/software/pies/
1•smartmic•3m ago•0 comments

Restty = libghostty-vt and text-shaper and WebGPU

1•wiedymi•5m ago•0 comments

Hacker Fab Documentation

https://github.com/hacker-fab/gitbook
2•EvgeniyZh•5m ago•0 comments

Nobel Novelist Orhan Pamuk Gets the Netflix Series He Wanted

https://www.nytimes.com/2026/02/12/world/europe/orhan-pamuk-istanbul-turkey-museum-of-innocence.html
1•paulpauper•6m ago•0 comments

Maybe America Needs Some New Cities

https://www.nytimes.com/2026/02/12/business/economy/america-new-cities-irvine.html
1•paulpauper•6m ago•0 comments

Expensive Beatles Auction

https://www.christies.com/en/events/the-jim-irsay-collection/browse-all-lots
1•paulpauper•6m ago•0 comments

The Jobs Report Doesn't Add Up

https://www.youtube.com/watch?v=3rjbUQszOC0
1•belter•9m ago•0 comments

The dialogs on your website should probably not be taller than 539px

https://xn--ime-zza.eu/5/
1•zagrebian•11m ago•0 comments

Show HN: Triad Engine beats Claude 4.6 (100% vs. 45%) on Rome cultural benchmark

https://github.com/Mysticbirdie/triad-rome-benchmark
1•MysticBirdie•12m ago•0 comments

WebMCP Proposal

https://webmachinelearning.github.io/webmcp/
1•rupertsworld•19m ago•0 comments

Cursor for Writers: How I chained parallel agents to track narrative consistency

https://www.minotauris.app/waitlist
1•minotauris•19m ago•1 comments

How bad can Python stop-the-world pauses get?

https://lemire.me/blog/2026/02/15/how-bad-can-python-stop-the-world-pauses-get/
1•usdogu•21m ago•0 comments

FeedBack Request

https://bbrewrite.live
1•shaonsikder•23m ago•1 comments

Scaling Django to 10M active users on a single VM

https://eliot.blog/p/scaling-django-to-10-million-active-users
1•ea016•24m ago•0 comments

Gitdatamodel Documentation

https://git-scm.com/docs/gitdatamodel
1•birdculture•25m ago•0 comments

Ask HN: What book are you reading?

4•aavci•27m ago•3 comments

Cherry, A firewall against AI-generated PRs

https://cherry.gethopp.app/
4•konsalexee•27m ago•2 comments

Administration may force data center builders like Meta to 'internalize' costs

https://www.cnbc.com/2026/02/15/navarro-trump-data-centers-affordability.html
4•pseudolus•29m ago•0 comments

GGML GGUF File Format Vulnerabilities

https://www.databricks.com/blog/ggml-gguf-file-format-vulnerabilities
1•eatonphil•29m ago•0 comments

Compound Engineering: The AI-native engineering philosophy

https://every.to/guides/compound-engineering
2•Karrot_Kream•32m ago•0 comments

The T Project

https://mumble.net/~jar/tproject/
1•shakna•34m ago•0 comments

Voith Schneider Propeller

https://en.wikipedia.org/wiki/Voith_Schneider_Propeller
2•Luc•34m ago•0 comments

The Four Burner Theory

https://twitter.com/thecurioustales/status/2023042136686682141
1•dsego•36m ago•0 comments

Show HN: Clue (Cluedo) Solver/Assistant

https://github.com/dmd/clue-assistant
1•dmd•37m ago•0 comments

Multi-Agent Teams Hold Experts Back

https://www.arxiv.org/pdf/2602.01011
1•fauigerzigerk•38m ago•0 comments

PicoClaw: Ultra-Efficient AI Assistant in Go

https://github.com/sipeed/picoclaw
1•redbell•38m ago•0 comments