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

Show HN: Sentinely – Runtime security for AI agents

https://sentinely.ai
1•sameergh•36s ago•0 comments

America Is Now a Rogue Superpower

https://www.theatlantic.com/international/2026/03/trump-us-power-iran/686567/
1•JumpCrisscross•39s ago•0 comments

Fast and Gorgeous Erosion Filter

https://blog.runevision.com/2026/03/fast-and-gorgeous-erosion-filter.html
1•tobr•49s ago•0 comments

Practical Strategies to Monetize AI APIs in Production

https://konghq.com/blog/engineering/monetize-ai-apis
1•makaimc•1m ago•0 comments

A second Starlink satellite exploded in orbit

https://twitter.com/LeoLabs_Space/status/2038680177408880719
2•wmf•1m ago•0 comments

Show HN: Between Us – Swipeable question cards for couples and friends

https://www.coupledatequestions.com
1•sam_josh1•2m ago•0 comments

Microsoft kills Windows Remote Desktop app in favor of the new Windows App

https://techcommunity.microsoft.com/blog/windows-itpro-blog/windows-app-to-replace-remote-desktop...
1•bundie•3m ago•0 comments

Move GitHub Private Repos to Google Drive in Minutes

https://tonym.us/move-github-repos-to-google-drive.html
1•speckx•4m ago•0 comments

I Built a Plugin Because Anthropic Won't Stop Shipping

https://feld.com/archives/2026/03/i-built-a-plugin-because-anthropic-wont-stop-shipping/
1•mooreds•4m ago•0 comments

Antienshittification

https://www.ystrickler.com/antienshittification/
1•ystrickler•5m ago•0 comments

Token Salary

https://aifoc.us/the-token-salary/
1•kinlan•6m ago•0 comments

Founder and CEO, Datris.ai

https://datris.ai
1•tfearn•8m ago•0 comments

PoliTax Split: PDF splitting benchmark from presidential tax returns

https://www.extend.ai/resources/document-splitting-benchmark
1•kbyatnal•9m ago•0 comments

Scientists have found an alarming environmental impact of data centers

https://www.cnn.com/2026/03/30/climate/data-centers-are-having-an-underrported
1•campuscodi•10m ago•0 comments

The Long Chain of Wi-Fi Dysfunction Gets Longer

https://wirednot.wordpress.com/2026/03/27/the-long-chain-of-wi-fi-dysfunction-gets-longer/
1•obscurette•12m ago•0 comments

We Hid a Free Trip to Switzerland in Our Privacy Policy. Someone Found It

https://www.cape.co/blog/easter-egg-in-privacy-policy
2•bwoah•12m ago•0 comments

Multi-Model Intelligence in Researcher

https://techcommunity.microsoft.com/blog/microsoft365copilotblog/introducing-multi-model-intellig...
1•taubek•12m ago•0 comments

The Fall of the Shah

https://www.lrb.co.uk/the-paper/v07/n12/malise-ruthven/the-fall-of-the-shah
1•alkyon•14m ago•0 comments

Chatbots as Anti-Social Media

https://paulkedrosky.com/chart-of-the-weekend-chatbots-as-anti-social-media/
1•kristianp•14m ago•0 comments

See How Hollywood's Job Market Is Collapsing

2•JumpCrisscross•16m ago•0 comments

The Cost of Scrolling: A scale visualization of social media usage

https://azariak.github.io/CostOfScrolling/
2•InvestingEasy•18m ago•0 comments

You're right, no one can tell if C++ is AI generated

https://mropert.github.io/2026/03/30/ai_garbage_cpp/
1•ingve•19m ago•0 comments

America Downs Cheap Drones with Million-Dollar Missiles. A Fix Is in the Works

https://www.wsj.com/world/america-downs-cheap-drones-with-million-dollar-missiles-a-fix-is-in-the...
1•JumpCrisscross•19m ago•0 comments

Qwen 3.6 Plus Preview Available for Free for a Limited Time

https://twitter.com/OpenRouter/status/2038701599175196715
1•mirzap•20m ago•0 comments

Rust 1.94.1

https://blog.rust-lang.org/2026/03/26/1.94.1-release/
1•kazu11max17•21m ago•0 comments

Show HN: I built a simpler way to follow research papers–AI summaries and emails

https://openscience.ink
2•samfeldman•21m ago•0 comments

ARC-AGI-3: A New Challenge for Frontier Agentic Intelligence

https://arxiv.org/abs/2603.24621
1•doener•23m ago•0 comments

Are you team MCP or team CLI?

1•sharath39•25m ago•2 comments

Novel environments, no precedents or plagiarism possible. Humans 100%, AI <1%

https://xcancel.com/heygurisingh/status/2038266503993372774
2•doener•25m ago•1 comments

Show HN: NewsMarvin – AI news from 71 sources, classified by Claude Haiku

https://newsmarvin.com/
1•mzuniga51•26m ago•0 comments