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

Balsamiq AI

https://balsamiq.com/product/ai/
1•ilt•1m ago•0 comments

StackTrove: Encrypted local registry for all your side projects

https://github.com/sennaBruno/stacktrove
1•essieli•4m ago•0 comments

Justin Sun Accuses Trump's WLFI Cryptocurrency of Hiding Wallet Freeze Function

https://beincrypto.com/justin-sun-slams-world-liberty-financials-blacklist-feature/
2•jrflowers•9m ago•0 comments

'The gravest crime against humanity': What does the UN vote on slavery mean?

https://www.bbc.com/news/articles/c0rxqng5pyno
1•gpi•11m ago•0 comments

IBM AP-101 general-purpose computer [pdf]

https://gandalfddi.z19.web.core.windows.net/Shuttle/IBM%20AP-101S%20General%20Purpose%20Computer%...
1•__patchbit__•15m ago•0 comments

Your Harness, Your Memory

https://blog.langchain.com/your-harness-your-memory/
2•tanelpoder•18m ago•0 comments

Show HN: Tokemon – monitor token use with out refreshing 27 browser tabs

https://github.com/rvantonder/tokemon
1•rvttt•22m ago•0 comments

Overcoming Informational Risk

https://bencornia.com/blog/overcoming-informational-risk
1•bencornia•22m ago•0 comments

Best AI coding interview assistant in 2026

https://www.linkjob.ai/interview-questions/ai-coding-interview-assistant/
1•Silviaaa•26m ago•0 comments

Kindle users in uproar re: latest update, old devices now unusable: 'Fuck You '

https://nypost.com/2026/04/09/tech/kindle-to-cease-support-for-old-devices-causing-user-uproar/
1•1vuio0pswjnm7•26m ago•0 comments

Going Beyond World Models and VLAs

https://generalistai.com/blog/apr-07-2026-beyond-world-models
1•NeoInHacker•28m ago•1 comments

Show HN: Chipmunkify – I used ML to solve audio's dumbest problem

https://www.chipmunkify.com/
1•treelover•30m ago•1 comments

Artemis II: Christina Koch's PCD Failure

1•robgibbons•31m ago•1 comments

Show HN: React Modern Audio Player

https://github.com/slash9494/react-modern-audio-player
1•musgravite•40m ago•0 comments

Haunt, the 70s text adventure game, is now playable on a website

https://haunt.madebywindmill.com
12•jscalo•40m ago•0 comments

A Simple Lofi Player

https://github.com/talwat/lowfi
2•lwhsiao•41m ago•0 comments

Why Do Computers Stop and What Can Be Done About It? (1985) [pdf]

https://pages.cs.wisc.edu/~remzi/Classes/739/Fall2018/Papers/gray85-easy.pdf
1•jruohonen•44m ago•0 comments

Tell HN: Claude-code prompt-cache workaround/fix

1•g4cg54g54•45m ago•0 comments

SFPD investigates apparent shooting near OpenAI CEO Sam Altman's home

https://www.sfchronicle.com/bayarea/article/sam-altman-openai-gunfire-22202648.php
2•throwaway2027•49m ago•2 comments

Uses for Nested Promises

https://blog.jcoglan.com/2026/03/23/uses-for-nested-promises/
1•bkudria•54m ago•0 comments

HN: Distill-CBL, a single-file COBOL-to-WASM compiler in Rust

https://github.com/StealthEyeLLC/distill-cbl
1•stealtheyellc•59m ago•0 comments

AI Image Editor

https://jpgtomp4.com
1•yalvhe2009•1h ago•1 comments

BirdNET-Go – 24/7 realtime bird song analysis

https://github.com/tphakala/birdnet-go
1•darknavi•1h ago•1 comments

Show HN: Turn any YouTube video into something you can use

https://www.pandarecord.com/extension
1•misonic•1h ago•0 comments

Drawing Database – Blueprints for 3D modeling

https://drawingdatabase.com/
1•hyperific•1h ago•0 comments

Ecolibrium Directory

https://github.com/simonlpaige/ecolibrium
1•larrytheworm•1h ago•1 comments

PocketLLM – Run local LLMs from a USB stick (https://pocketllm-site.vercel.app/)

https://github.com/vraj00222/pocketllm
1•vrajpatel00•1h ago•0 comments

Apple's accidental moat: How the "AI Loser" may end up winning

https://adlrocha.substack.com/p/adlrocha-how-the-ai-loser-may-end
39•walterbell•1h ago•21 comments

2014: Black Holes and Supercomputing

https://www.goldengooseaward.org/01awardees/black-holes
1•mooreds•1h ago•0 comments

Tell HN: Reddit now demands to know why you won't use their app

8•josephcsible•1h ago•7 comments