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

Don't lick that cold metal pole in winter–if you do, don't panic

https://arstechnica.com/science/2026/03/exploring-the-science-of-tundra-tongue/
1•canucker2016•9s ago•0 comments

Turnstone: Multi-node AI orchestration platform

https://github.com/turnstonelabs/turnstone/
1•huslage•1m ago•0 comments

Revolut secures full UK banking licence after four-year wait

https://www.ft.com/content/b4df4126-351e-4424-9707-8a12ca6b79a6
1•0xFA11•2m ago•0 comments

Replit Agent 4

https://replit.com/agent4
1•colesantiago•2m ago•1 comments

Solution to the Sleuth puzzle made by Julian Assange

https://wondrousnet.blogspot.com/2023/05/solution-to-puzzle-sleuth.html
1•morethenthis•2m ago•0 comments

10x Is the New Floor

https://writing.nikunjk.com/p/10x-is-the-new-floor
1•vinhnx•3m ago•0 comments

BOE Open to Changing Stablecoin Caps After Industry Backlash

https://www.bloomberg.com/news/articles/2026-03-11/boe-open-to-changing-stablecoin-cap-after-indu...
1•petethomas•3m ago•0 comments

Launch HN: Sentrial (YC W26) – Catch AI Agent Failures Before Your Users Do

https://www.sentrial.com/
2•anayrshukla•4m ago•0 comments

Binance brings back tokenized stocks trading with Ondo Finance deal

https://www.coindesk.com/business/2026/02/23/binance-brings-back-tokenized-stocks-trading-with-on...
1•PaulHoule•4m ago•0 comments

SQLite WAL-Reset Database Corruption Bug

https://sqlite.org/wal.html#walresetbug
1•tcbrah•4m ago•0 comments

Show HN: First IDL for Object-Graph Serialization (Apache Fory IDL)

https://fory.apache.org/blog/fory_schema_idl_for_object_graph/
1•chaokunyang•4m ago•1 comments

Iran-Backed Hackers Claim Wiper Attack on Medtech Firm Stryker

https://krebsonsecurity.com/2026/03/iran-backed-hackers-claim-wiper-attack-on-medtech-firm-stryker/
1•todsacerdoti•6m ago•0 comments

OpenAIReview: AI-assisted Reviewing is Necessary and Should be Open

https://openaireview.github.io/blog.html
1•jprs•6m ago•0 comments

Show HN: Site Spy – Track webpage changes with diffs, element picking, and RSS

https://sitespy.app
1•vkuprin•7m ago•0 comments

Croissant XXL

https://philippeconticini.fr/products/croissant-xl
2•jjgreen•9m ago•0 comments

I Know Which Country the U.S. Will Invade Next (2018)

https://www.truthdig.com/articles/i-know-which-country-the-u-s-will-invade-next/
2•thisislife2•9m ago•0 comments

AI on Your Phone: How Loxation Computes Trust and Compatibility Without a Server

https://www.loxation.com/blog/posts/blog-fuzzy-social-reasoning/
2•jabbr•9m ago•0 comments

Show HN: Bingo Caller Pro – a digital BINGO experience

2•1derfool•10m ago•1 comments

Refinement Modeling and Verification of RISC-V Assembly Using Knuckledragger

https://www.philipzucker.com/refine_assembly/
2•matt_d•10m ago•0 comments

MikroORM v7 Released

https://mikro-orm.io/blog/mikro-orm-7-released
2•micahbule•11m ago•0 comments

Launch HN: Prism (YC X25) – Workspace and API to generate and edit videos

https://www.prismvideos.com
6•aliu327•12m ago•0 comments

MCP Traffic Monitoring in NGINX

https://blog.nginx.org/blog/introducing-agentic-observability-in-nginx-real-time-mcp-traffic-moni...
3•mtbchef•13m ago•0 comments

Blogpost: Postgres Work_mem Production Incident

https://mydbanotebook.org/posts/work_mem-its-a-trap/
2•ducktastic•13m ago•1 comments

Hasbro's CEO has an AI Peppa Pig help design toys

https://www.theverge.com/podcast/890703/hasbro-toys-games-magic-exodus-ai-tariffs
2•healsdata•14m ago•0 comments

Spring CRUD Generator v1.5.0: CI tests, Set relations, Copilot support

https://github.com/mzivkovicdev/spring-crud-generator/releases/tag/v1.5.0
2•mzivkovicdev•14m ago•1 comments

LLMs as a Direct Interface to Event Streams

https://www.eventsourcing.ai/deeper-insights/llms-as-a-direct-interface-to-event-streams/
2•goloroden•18m ago•0 comments

Chat Control Vote in the EU to End Untargeted Mass Scanning of Private Chats

https://www.patrick-breyer.de/en/historic-chat-control-vote-in-the-eu-parliament-meps-vote-to-end...
4•dinowars•19m ago•0 comments

Nielsen's Gracenote sues OpenAI over use of metadata in AI training

https://www.reuters.com/business/media-telecom/nielsens-gracenote-sues-openai-over-use-metadata-a...
3•1vuio0pswjnm7•19m ago•1 comments

Alex Gerko funds telescope showing 'cartography of the universe'

https://www.ft.com/content/74e5ce31-ca84-4ae0-96da-df517a015148
3•samizdis•20m ago•1 comments

The Internet Is for End Users

https://datatracker.ietf.org/doc/html/rfc8890
3•flipped•20m ago•0 comments