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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•10mo ago
Agreed

AI Agent Backdoors Trivy Security Scanner, Weaponizes a VS Code Extension

https://grith.ai/blog/ai-agent-compromised-trivy-weaponized-vscode-extension?march18=
1•edf13•34s ago•0 comments

Bennett and Brassard Win the Turing Award

https://blog.computationalcomplexity.org/2026/03/bennett-and-brassard-win-turing-award.html
1•speckx•1m ago•0 comments

Ask HN: Have you built a skill for agents?

1•david_shi•1m ago•0 comments

Why corporate lawyers always win

https://www.economist.com/business/2026/03/11/why-corporate-lawyers-always-win
1•1vuio0pswjnm7•1m ago•0 comments

Show HN: I built a short-form content intelligence tool for media buyers

https://virlo.ai
1•nmauro1•3m ago•0 comments

Generative 'AI' Pollutes Search Results

https://www.bookandsword.com/2026/03/14/how-generative-ai-pollutes-search-results/
1•speckx•4m ago•0 comments

ACM A.M. Turing Award Honors Charles H. Bennett and Gilles Brassard

https://www.acm.org/media-center/2026/march/turing-award-2025
1•intrasight•4m ago•0 comments

Vite+ Alpha is kinda underwhelming

https://github.com/TheJaredWilcurt/blog/discussions/46
1•carlos-menezes•5m ago•0 comments

Show HN: Pts.py – Visual Thinking in Code

https://ptspy.org/
1•metaphorical•5m ago•0 comments

A Quantum Leap for the Turing Award

https://www.wired.com/story/a-quantum-leap-for-the-turing-award/
1•beardyw•5m ago•0 comments

FlexLab Studio – in-person assisted stretching sessions booked online

https://www.flexlabstudio.fr
1•gugus13400•6m ago•1 comments

Anthropic Captures 73% of New Enterprise AI Spending, Outpacing OpenAI

https://thepolarisreport.com/brief/PR-xvZ14brd
1•JohnWeston•6m ago•0 comments

Hundreds of Millions of iPhones Can Be Hacked With a New Tool Found in the Wild

https://www.wired.com/story/hundreds-of-millions-of-iphones-can-be-hacked-with-a-new-tool-found-i...
3•WalterSobchak•7m ago•0 comments

Kireifilter Coming Soon

https://kireifilter.net/landingpage.html
1•shozzipen•7m ago•0 comments

Show HN: Bento – Save and restore multi-monitor app layouts

https://bentodesktop.com
3•aarmenante•8m ago•0 comments

Show HN: Balsamiq Wireframes MCP

https://www.youtube.com/watch?v=lfBP_7pV1AY
1•exalted•8m ago•0 comments

AI executions create billion-dollar valuations–just not yours

https://apcher.dev:443/
1•Samueedwards1•8m ago•1 comments

Can You Hear the Music?

https://akshay.fyi/posts/can-you-hear-it/
1•akshay_s•8m ago•0 comments

Show HN: Ranvier – Prefix-aware routing for LLM inference

https://ranvier.systems/2026/03/16/why-your-load-balancer-is-wasting-your-gpus.html
1•mindsaspire•9m ago•0 comments

Detecting When Your AI Agent Dies

https://amux.io/blog/auto-restart-ai-agents/
1•Beefin•9m ago•0 comments

Why Agent UIs Lose Messages on Refresh

https://starcite.ai/blog/why-agent-uis-lose-messages-on-refresh
4•cpluss•9m ago•1 comments

Cursor trained Composer to self-summarize through RL instead of a prompt

https://cursor.com/blog/self-summarization
1•zachdotai•9m ago•0 comments

Scientific American and Friday the 13th

https://leancrew.com/all-this/2026/03/scientific-american-and-friday-the-13th/
1•speckx•10m ago•0 comments

Anthropic turns the tables on OpenAI in critical revenue category

https://www.axios.com/2026/03/18/ai-enterprise-revenue-anthropic-openai
1•Brajeshwar•10m ago•0 comments

Stripe-backed startup Tempo releases the Machine Payments Protocol

https://fortune.com/2026/03/18/stripe-tempo-paradigm-mpp-ai-payments-protocol/
2•zachdotai•14m ago•0 comments

Bare-Metal AArch64 Networking Stack on Pi 3

https://github.com/edhodapp/ws_pi5
1•davidk42•14m ago•0 comments

The Unintended Winners and Losers of the War in Iran

https://www.barrons.com/articles/the-unintended-winners-and-losers-of-the-war-in-iran-b7508950
1•petethomas•14m ago•0 comments

Coding After Coders: The End of Computer Programming as We Know It

https://www.nytimes.com/2026/03/12/magazine/ai-coding-programming-jobs-claude-chatgpt.html
1•JeanKage•16m ago•0 comments

Project Itohs Harmony and the under explored extremes of alignment theory

1•calmkeepai•18m ago•0 comments

Upgrading in Site or Relocation? Impacts of Slum Renewal Policies

https://www.nber.org/papers/w34560
1•felineflock•18m ago•0 comments