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

AI bot roasts any website URL you give it and it's scathingly mean

https://www.pcgamer.com/software/ai/this-ai-bot-roasts-any-website-url-you-give-it-and-its-hilari...
1•ohjeez•1m ago•0 comments

PageMaker pioneer Paul Brainerd, 1947-2026

https://www.geekwire.com/2026/pagemaker-pioneer-paul-brainerd-1947-2026-aldus-founder-devoted-his...
2•throw0101c•3m ago•1 comments

Thousand Year old experiment to find height of atmosphere [video]

https://www.youtube.com/shorts/2MjmO4bL4xw
1•lifeisstillgood•7m ago•0 comments

Steve was a leader, innovator, and friend

https://twitter.com/tim_cook/status/2026296056435138620
1•keepamovin•9m ago•0 comments

What keeps Japan's 1k-year-old companies alive?

https://www.japantimes.co.jp/business/2026/02/09/companies/japan-1000-year-old-business/
1•PaulHoule•10m ago•0 comments

Ask HN: Built an algorithmic forensic accounting tool

1•cd_mkdir•11m ago•0 comments

Stress testing Claude's language skills

https://vivsha.ws/blog/stress-testing-claudes-language-skills
1•nl•12m ago•0 comments

Ask HN: How do you find a cofounder for a game?

1•general_reveal•12m ago•0 comments

Democracy in 2025: on rising authoritarianism in the United States

https://www.hks.harvard.edu/faculty-research/policy-topics/democracy-governance/harvard-experts-d...
3•KnuthIsGod•18m ago•0 comments

The Price of American Authoritarianism What Can Reverse Democratic Decline?

https://www.foreignaffairs.com/united-states/american-authoritarianism-levitsky-way-ziblatt
2•KnuthIsGod•18m ago•0 comments

The Internet, nobody knows you're a dog (1993)

https://en.wikipedia.org/wiki/On_the_Internet,_nobody_knows_you%27re_a_dog
2•vismit2000•20m ago•0 comments

Go-Size-Analyzer

https://www.datadoghq.com/blog/engineering/agent-go-binaries/
1•vismit2000•22m ago•0 comments

Show HN: AI Olympics – Claude vs. GPT-4 vs. Gemini in live browser competitions

https://ai-olympics.vercel.app
1•stefanogebara•22m ago•1 comments

The Tail That Wags the Company

https://k2xl.substack.com/p/the-tail-that-wags-the-company
1•k2xl•24m ago•0 comments

Secure, kernel-enforced sandbox CLI and SDKs for AI agents

https://github.com/always-further/nono
1•mooreds•25m ago•0 comments

Ask HN: Built a real functional game from scratch where do I find investors?

1•chiengineer•25m ago•0 comments

Offline Intelligence: Founding Software Engineer (Equity Only)

https://www.offlineintelligence.io
1•lillian_lakes•26m ago•1 comments

US Military leaders meet with Anthropic to argue against Claude safeguards

https://www.theguardian.com/us-news/2026/feb/24/anthropic-claude-military-ai
6•KnuthIsGod•27m ago•0 comments

AI's Uneven Impact

https://the-home-ceo.web.app/ai-blogs/ai-uneven-impact
1•astuteajax•28m ago•1 comments

The Edge of Mathematics

https://www.theatlantic.com/technology/2026/02/ai-math-terrance-tao/686107/
1•hackernj•28m ago•0 comments

One Million Checkboxes on SpacetimeDB

https://twitter.com/gill_kyle/status/2026450707990327415
1•kylegill•28m ago•0 comments

The Software Upgrade in Chinese Civic Behaviour

https://thewire.in/culture/the-software-upgrade-in-chinese-civic-behaviour
2•herbertl•28m ago•0 comments

Pentagon Gives Anthropic an Ultimatum

https://www.nytimes.com/2026/02/24/us/politics/pentagon-anthropic.html
4•egonschiele•29m ago•1 comments

The Physical Intelligence Layer

https://www.pi.website/blog/partner?v=1
5•lachyg•30m ago•0 comments

Native KV Cache Offloading to Any Filesystem with LLM-D

https://llm-d.ai/blog/native-kv-cache-offloading-to-any-file-system-with-llm-d
1•mji•30m ago•0 comments

Mercury 2: Best-in-class speed-optimized intelligence at 1,200 tok/SEC

https://twitter.com/ArtificialAnlys/status/2026360491799621744
1•volodia•33m ago•0 comments

I Built an "AI for Shell Commands" CLI (So I Could Stop Asking ChatGPT)

https://agingcoder.com/posts/i-built-a-thing/
1•inssein•33m ago•0 comments

A Meta AI security researcher said an OpenClaw agent ran amok on her inbox

https://techcrunch.com/2026/02/23/a-meta-ai-security-researcher-said-an-openclaw-agent-ran-amok-o...
1•cratermoon•33m ago•0 comments

Argus: Automated Discovery of Test Oracles for DBMSs Using LLMs

https://joyemang33.github.io/blog/2026/argus/
1•matt_d•33m ago•0 comments

App Fair Project: free and open-source app store for iPhone and Android

https://appfair.org/
2•LorenDB•34m ago•0 comments