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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•9mo ago
Agreed

Show HN: HN Bot Detector – Detects LLM-Generated Comments on Hacker News

https://github.com/umairnadeem/hn-bot-detector
1•umairnadeem123•25s ago•0 comments

What does everyone think of this "anti-social" network?

https://char.social/
1•poorIy•30s ago•0 comments

He lived on the street. Now turns raw dryland into frugal homestead [video]

https://www.youtube.com/watch?v=xa63fqDHmTQ
1•fallinditch•2m ago•0 comments

How I used Cursor to Migrate Frameworks

https://kentcdodds.com/blog/how-i-used-cursor-to-migrate-frameworks
1•abraham•2m ago•0 comments

How are engineering teams handling AI compliance?

1•partycat•3m ago•0 comments

A Program Binary Becomes a Running Process

https://buildsoftwaresystems.com/post/program-binary-to-running-process/
1•ThierryBuilds•4m ago•1 comments

Show HN: Cosmic horror newspaper engine for an Amsterdam art collective

https://unsafejournal.com/
1•webhouwer•5m ago•0 comments

DVC: Data Version Control

https://dvc.org/
1•Olshansky•8m ago•0 comments

Show HN: AluminatiAi – Per-job GPU energy cost tracking (open source)

1•AluminatiAi•9m ago•0 comments

Did the president need Congress to attack Iran?

https://docs.google.com/document/d/1KONKQuQkkU3lbWalkkvAdpJFk6xEPulCKmDPHHz-dLw/edit?usp=sharing
1•mrjoshuacraigt•13m ago•1 comments

Show HN: AI agent that works autonomously while I'm offline

https://hire-your-ai-guide.vercel.app
1•ZeroDayCyber•14m ago•0 comments

Show HN: Minecraft music player, with random intervals like in the game

https://paul-andre.github.io/minecraft-music-simulator/
1•bogdanoff_2•16m ago•0 comments

Show HN: Laid – Chrome extension that detects AI-generated LinkedIn posts

https://github.com/oldeucryptoboi/linkedin-ai-detector
1•oldeucryptoguy•18m ago•1 comments

Show HN: Tiny Toasts – Collect video toasts using a QR code (no app required)

https://tinytoasts.co
1•jtowers2010•21m ago•0 comments

Show HN: Cc-reaper – Three-layer cleanup for orphan Claude Code processes

https://github.com/theQuert/cc-reaper
1•thequert•24m ago•0 comments

Cab-Rank Rule

https://en.wikipedia.org/wiki/Cab-rank_rule
1•valzevul•24m ago•0 comments

The Whispering Earring

https://gwern.net/doc/fiction/science-fiction/2012-10-03-yvain-thewhisperingearring.html
3•iamsam123•26m ago•1 comments

Software Engineering in the Agentic Era

https://sidv.dev/blog/software-engineering-agentic-era/
1•fangpenlin•28m ago•0 comments

Show HN: Ralphex – autonomous GPT Codex agent loop for ChatGPT Pro users

https://github.com/SmolNero/ralphex
1•edgar_ortega•30m ago•0 comments

Xuv: X11 user daemon to automatically run commands triggered by user specified

https://codeberg.org/NRK/xuv
2•todsacerdoti•31m ago•0 comments

SaaS-pocalypse chatter is doomster pr0n

https://www.theregister.com/2026/03/01/saaspocalypse_opinion/
1•Bender•33m ago•1 comments

Lenovo shows off snap-together laptop with removable keyboard, screen, and ports

https://www.theregister.com/2026/03/01/lenovo_shows_off_modular_laptop/
1•Bender•33m ago•0 comments

South Korea's tax office apologizes for leaking seed phrase to seized crypto

https://www.theregister.com/2026/03/02/south_korea_tax_office_cryptocurrency_leak/
1•Bender•34m ago•0 comments

Ultrafast neural sampling with spiking nanolasers

https://www.nature.com/articles/s41467-025-66818-1
1•PaulHoule•39m ago•0 comments

Show HN: Port Forwarding Wrapper for Mosh

https://github.com/liyu1981/moshpf
1•liyu1981au•40m ago•0 comments

GPL as the Best Licence – Governance and Philosophy

https://blog.hansenpartnership.com/gpl-as-the-best-licence-governance-and-philosophy/
2•pabs3•41m ago•0 comments

The Mystery of Asjo.org

https://acid.vegas/blog/the-mystery-of-asjo-org/
1•reubn•41m ago•0 comments

If Trump attacks Iran, western media will be cheering him on

https://www.middleeasteye.net/opinion/if-trump-attacks-iran-western-media-will-be-cheering-him
2•lyu07282•46m ago•0 comments

Say Goodbye to the Undersea Cable That Made the Global Internet Possible

https://www.wired.com/story/say-goodbye-to-the-undersea-cable-that-made-the-global-internet-possi...
2•CHB0403085482•47m ago•1 comments

We Made the Isospectral Drums and It Went Fine

https://prismika.github.io/2026/03/01/we-made-the-isospectral-drums.html
2•nill0•47m ago•0 comments