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

Claude Code Checkpoints

https://github.com/yahnyshc/daedalus
1•maksyyy•56s ago•0 comments

AI and Psi with Paul Werbos (Inventor of Backpropagation) [video]

https://www.youtube.com/watch?v=rMh-snQ1YWU
2•binyu•2m ago•0 comments

Show HN: Codex Workers AI Proxy – Use Workers AI models with Codex CLI

https://github.com/pitzcarraldo/codex-workers-ai-proxy
1•mrnoname•5m ago•1 comments

Show HN: ReverseYC

https://rocketplace.org/reverseyc
2•remarketme•7m ago•0 comments

Show HN: NeZha – An Open-Source Agentic Development Environment (ADE)

https://nezha.hanshutx.com/en/
1•markhan-nping•10m ago•0 comments

Building a 10BASE5 "Thick Ethernet" network (2012)

https://www.mattmillman.com/projects/10base5/
1•accrual•12m ago•0 comments

Show HN: A personality first matchmaking app

https://www.connectwithember.com/
1•willeyy•13m ago•0 comments

LLMs don't want pixels, they want tools

https://www.bobbytables.io/p/the-future-is-apis
1•btables•14m ago•0 comments

Distribution is the only moat AI can't kill

https://dheer.co/only-moat-ai-cant-kill/
1•bushido•17m ago•0 comments

Moltis – A secure persistent personal agent server in Rust

https://moltis.org/
1•rekl•17m ago•0 comments

Regional Variation in the Performance of ASR Models on Croatian and Serbian

https://aclanthology.org/2026.vardial-1.20/
1•taubek•19m ago•0 comments

Trump vows to blockade Strait of Hormuz after talks stumble

https://www.reuters.com/world/asia-pacific/us-iran-talks-pause-now-disagreements-remain-2026-04-11/
5•andyjohnson0•22m ago•1 comments

PostgreSQL Credential Rotation in Production: A Zero-Downtime Runbook

https://www.elydb.com/blog/postgresql-credential-rotation-production
1•thunderbong•24m ago•0 comments

Ask HN: What's your experience with PoW captchas against form spam?

1•pentacent_hq•25m ago•0 comments

A full-featured terminal user interface for hledger plain-text accounting

https://github.com/thesmokinator/hledger-textual
1•willm•27m ago•0 comments

Ask HN: What are all the bad things that AI companies have done which we forgot

1•Imustaskforhelp•28m ago•0 comments

Ask HN: Is Zero Trust Architecture Overkill?

2•devinabox•31m ago•0 comments

Show HN: Formal – Formal verification for AI-generated code using Lean 4

https://github.com/yamafaktory/formal
2•yamafaktory•32m ago•0 comments

Show HN: What's SBTI

https://whatssbti.com/
2•aitooltrek-com•33m ago•0 comments

Show HN: Terminal Style Web Component

https://github.com/spider-hand/terminal-element
1•spider-hand•33m ago•0 comments

Show HN: ApplePy – Embed and Call Swift from Python (Like PyO3, but for Swift)

https://github.com/jagtesh/ApplePy
2•sheepscreek•35m ago•1 comments

Show HN: PrepLists – a directory of 500 prep centers and 3PLs for sellers

https://preplists.com
1•devequijo•35m ago•0 comments

Feature Vomit

https://public.grugnotes.com/keizo/blog/feature-vomit/
3•keizo•36m ago•0 comments

Show HN: Telegram feed reader using DNS TXT records for Iran's Internet shutdown

https://github.com/sartoopjj/thefeed
2•znano•38m ago•1 comments

Trump says US will blockade Strait of Hormuz

https://www.cnn.com/2026/04/12/world/live-news/iran-us-war-talks-trump
8•Tomte•38m ago•4 comments

White Rabbit meets quantum entanglement

https://home.cern/news/news/computing/white-rabbit-meets-quantum-entanglement
1•bookofjoe•40m ago•0 comments

Ask HN: What is the best way to get your first users?

1•Mohd_Umar•40m ago•4 comments

158-year-old home distilling ban ruled unconstitutional

https://www.reuters.com/legal/government/us-appeals-court-declares-158-year-old-home-distilling-b...
2•PessimalDecimal•42m ago•1 comments

Dario Says Continual Learning Is Solved. Is It?

https://twitter.com/tianle_cai/status/2042459055483207818
1•gmays•43m ago•0 comments

Show HN: Kafkaesque – a wire-compatible mock Kafka

https://github.com/dcminter/kafkaesque
1•dcminter•46m ago•1 comments