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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•11mo ago
Agreed

Musk asks SpaceX IPO banks to buy Grok AI subscriptions, NYT reports

https://www.reuters.com/business/finance/musk-asks-spacex-ipo-banks-buy-grok-ai-subscriptions-nyt...
1•1vuio0pswjnm7•49s ago•0 comments

Crafting Engineering Strategy: How Thoughtful Decisions Solve Complex Problems

https://craftingengstrategy.com
1•teleforce•1m ago•0 comments

Media scraper Gallery-dl is moving to Codeberg after receiving a DMCA notice

https://github.com/mikf/gallery-dl/discussions/9304
3•MoltenMonster•4m ago•0 comments

A "Unix-style tool" crashes with the –version flag

https://github.com/imbue-ai/mngr/issues/1165
2•typissedoff•5m ago•0 comments

An open-source 240-antenna array to bounce signals off the Moon

https://moonrf.com/
3•hillcrestenigma•10m ago•0 comments

Show HN: Multi-agent coding assistant with a sandboxed Rust execution engine

https://github.com/christianmeurer/Lula
4•chrismeurer•13m ago•1 comments

A local search engine for AI Agents

https://github.com/itsmostafa/qi
4•puremetrics•14m ago•1 comments

Better ClassPass Food Searching in Manhattan

https://adindrabkin.com/classpass-manhattan/
2•boxedadin•15m ago•0 comments

Show HN: Open-source ontology – SEC fund filings

https://github.com/getfundflow/gff-schema
2•scalefirst•18m ago•0 comments

Show HN: md-redline - inline review comments for markdown, readable by AI agents

https://github.com/dejuknow/md-redline
2•dejuknow•24m ago•0 comments

Your File System Is Already A Graph Database

https://rumproarious.com/2026/04/04/your-file-system-is-already-a-graph-database/
1•alxndr•26m ago•1 comments

The 1987 Game "The Last Ninja" was 40 kilobytes

https://twitter.com/exQUIZitely/status/2040777977521398151
3•keepamovin•29m ago•1 comments

Is AI the New Fracking?

https://www.ft.com/content/525cc89e-1ee9-4039-a588-5039565053f9
2•1vuio0pswjnm7•35m ago•0 comments

More Americans Are Breaking into the Upper Middle Class

https://www.wsj.com/economy/more-americans-are-breaking-into-the-upper-middle-class-bf8b7cb2
2•lxm•37m ago•0 comments

Show HN: Not a CLI, Toward a New Agent-Computer Interaction Model

https://agentina-agent-apps.vercel.app/
2•agentina•43m ago•1 comments

Show HN: Magma Memory Claude Browser cloaking tool

https://github.com/Vektor-Memory/Vektor-memory
2•vektormemory•46m ago•0 comments

The Spark – A sophisticated scrolling experience

https://spark.thedigitalpanda.com/
2•gitgud•56m ago•1 comments

Does coding with LLMs mean more microservices?

https://ben.page/microservices
4•jer0me•59m ago•0 comments

Kicking Off the ATP Working Group at the IETF

https://atproto.com/blog/kicking-off-the-atp-working-group
1•andrewl•59m ago•0 comments

Best Paper Awards in Computer Science over the past 30 years

https://jeffhuang.com/best_paper_awards/
3•vinhnx•1h ago•1 comments

Case study: recovery of a corrupted 12 TB multi-device pool

https://github.com/kdave/btrfs-progs/issues/1107
3•salt4034•1h ago•0 comments

Which is when I got to see what it looks like

https://technex.us/2026/04/while-humans-are-flying-to-the-moon-i-tried-to-build-an-earth-orbital-...
1•hparadiz•1h ago•1 comments

Before smart Siri, I made Agentic Quake Terminal

https://www.patreon.com/posts/154881456
3•rohanrhu•1h ago•0 comments

Show HN: I made a free daily puzzle game

https://www.nerdcube.games/carom
3•nerdcube•1h ago•2 comments

Moody – Give your MacBook a personality that reacts to hardware events

https://dinakars777.github.io/moody/
2•dinakars777•1h ago•1 comments

Show HN: LLM Wiki – Open-Source Implementation of Karpathy's LLM Wiki

https://llmwiki.app
2•lucasastorian•1h ago•1 comments

Show HN: The easiest way to generate AI stickers then get them in the mail

https://stickerdaze.com/
1•qhoc•1h ago•2 comments

New Copilot for Windows 11 includes a full Microsoft Edge package, uses more RAM

https://www.windowslatest.com/2026/04/05/new-copilot-for-windows-11-includes-a-full-microsoft-edg...
11•aaronsung•1h ago•2 comments

Association between Covid-19 vaccination and sudden death in younger individuals

https://journals.plos.org/plosmedicine/article?id=10.1371/journal.pmed.1004924
4•pseudolus•1h ago•2 comments

We replaced Node.js with Bun for 5x throughput

https://trigger.dev/blog/firebun
5•pier25•1h ago•0 comments