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

Security vulnerabilities I found in high school

https://blog.raed.dev/posts/hacking-stories-from-high-school-days/
1•Raed667•2m ago•0 comments

Microscopes Can See Video on a LaserDisc

https://www.youtube.com/watch?v=qZuR-772cks
1•zdw•3m ago•0 comments

Debunking of inaccurate and misinformed claims being made about GrapheneOS

https://twitter.com/GrapheneOS/status/2030402535463506069
1•hnburnsy•5m ago•0 comments

Show HN: Agentpng – turn agent sessions into shareable images

https://www.agentpng.dev/
2•siegers•5m ago•0 comments

Show HN: Open-source tool turns a site into an MCP by recording the browser

https://github.com/danielthedm/browse2mcp
1•ethantheswe•6m ago•0 comments

Modular Video Transmission Platform

https://mvtp.cesnet.cz/#demovideo
1•clan•9m ago•0 comments

Show HN: Herd – Session-affine process pool for Go

https://github.com/HackStrix/herd
1•sankalpnarula•10m ago•0 comments

Show HN: Brw – Browser automation for Claude Code agent teams

https://github.com/sshh12/claude-plugins/blob/main/plugins/brw/README.md
1•sshh12•10m ago•0 comments

$3T Blind Spot: US nonprofits

https://charitysense.com/insights/the-3-trillion-blind-spot
2•mtweak•11m ago•0 comments

Show HN: Ash – OSS Infra for Running Claude Agent SDK

https://github.com/ash-ai-org/ash-ai
1•nicklo•15m ago•1 comments

Show HN: Send Secret Message in a Maze

https://wordsastray.com/home.html
1•bilkoo•16m ago•0 comments

PhD interrupted by personal safety issues, now publication record is thin

2•qthrwaway•17m ago•0 comments

Git diffs are 40 years old, introducing Semantic diffs

https://twitter.com/i/status/2029992315532759435
1•Palanikannan•18m ago•1 comments

How do you capture decisions made in Slack so they don't get lost?"

1•frankiefrazer•19m ago•1 comments

Roguelike music algorithm showcase by Nifflas

https://www.youtube.com/watch?v=WbgdXalXPus
1•todsacerdoti•19m ago•0 comments

Because Algospeak

https://www.tbray.org/ongoing/When/202x/2026/03/05/Because-Algospeak
1•zdw•20m ago•0 comments

Why do papers get desk rejected?

https://purl.stanford.edu/yb785sx5019
2•paulpauper•20m ago•0 comments

Show HN: DBWarden – A database migration tool for Python/SQLAlchemy projects

https://github.com/emiliano-gandini-outeda/DBWarden
1•emi_gandini•23m ago•0 comments

QRPC: Low Latency RPC over Link Layer

https://github.com/malandrakisgeo/qRPC
1•plethon•25m ago•0 comments

For These Millennials, College Was a Party. Then Came Real Life

https://www.nytimes.com/2026/02/17/books/review/so-old-so-young-grant-ginder.html
1•paulpauper•27m ago•0 comments

Almost a third of Gen Z men agree a wife should obey her husband

https://www.kcl.ac.uk/news/almost-a-third-of-gen-z-men-agree-a-wife-should-obey-her-husband
3•johntfella•28m ago•1 comments

Ask HN: Would you use a job board where every listing is verified?

2•BelVisgarra•30m ago•0 comments

I glimpsed heaven and it showed me the door (Jhourney retreat report)

https://lalachimera.com/p/i-glimpsed-heaven-and-it-showed-me
1•paulpauper•30m ago•0 comments

From a £1B dream to a brutal collapse: How Brewdog hit the rocks

https://www.bbc.com/news/articles/cn4ggqgyk51o
1•ZeljkoS•34m ago•0 comments

A16Z: The Power Brokers

https://www.notboring.co/p/a16z-the-power-brokers
1•sershe•35m ago•0 comments

Autonomous AI Agents Have an Ethics Problem

https://undark.org/2026/03/05/opinion-ai-agents-ethics/
1•EA-3167•39m ago•1 comments

Typst Meetup 2026: Keynote

https://www.youtube.com/watch?v=WOQXL6vRrJs
1•todsacerdoti•40m ago•0 comments

Show HN: I built a zero-lag, local-first Markdown capture tool

https://gojot.app/
1•shubham2892•42m ago•0 comments

Show HN: Main Character – A gamified productivity app (no login demo)

https://maincharacter.game
1•gmays•44m ago•0 comments

Apple Silicon Laptops Can Run a Mind, but Never a Superintelligence

https://vbar.io/laptop-mind.html
1•walterbell•47m ago•0 comments