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

New synthesis of astronomical measurements shows Hubble tension is real

https://noirlab.edu/public/news/noirlab2611/
1•anigbrowl•1m ago•0 comments

Building a single-threaded FUSE filesystem in Rust using io_uring

https://blog.sdslabs.co/2026/04/fuser_iouring
1•regie•2m ago•0 comments

PCI Express over Fiber [video]

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

Analyzing KDE Project Health with Git

https://pointieststick.com/2026/04/10/analyzing-kde-project-health-with-git/
1•maxloh•2m ago•0 comments

A giant succession wave is coming for family businesses

https://www.economist.com/interactive/business/2026/04/09/a-giant-succession-wave-is-coming-for-f...
2•andsoitis•4m ago•0 comments

KellyBench

https://www.gr.inc/releases/introducing-kellybench
1•gmays•5m ago•0 comments

Show HN: Refund Guard – a policy gate for AI agents that can issue refunds

https://github.com/MattMessinger1/agentic_refund_guardrail
2•MJM_13•8m ago•0 comments

Andromeda Invaders: A retro-style game written in HTML5, Canvas and Web Audio

https://codeberg.org/susam/invaders
1•susam•12m ago•0 comments

Vultr – VPS without DMCA annoyances

https://www.vultr.com/
1•Veritaco•13m ago•1 comments

Show HN: A living Vancouver. Connor is walking dogs at the SPCA this morning

https://brasilia-phi.vercel.app
1•auran•14m ago•1 comments

Brocards for Vulnerability Triage

https://blog.yossarian.net/2026/04/11/Brocards-for-vulnerability-triage
2•woodruffw•16m ago•0 comments

Flux Language

https://github.com/Y3sIH3arU/Flux
1•IHEARU•17m ago•0 comments

What leaked "SteamGPT" files could mean for the PC gaming platform's use of AI

https://arstechnica.com/gaming/2026/04/what-is-steamgpt-leaked-files-point-to-ai-powered-valve-se...
3•01-_-•20m ago•0 comments

Art of the Luggage Label

https://www.flickr.com/photos/wavesjax/
2•NaOH•21m ago•0 comments

App Store Curation 2: The Scammer Strikes Back

https://lapcatsoftware.com/articles/2026/4/2.html
2•zdw•21m ago•0 comments

Sam Altman responds to 'incendiary' New Yorker article after attack on his home

https://techcrunch.com/2026/04/11/sam-altman-responds-to-incendiary-new-yorker-article-after-atta...
4•steveharing1•22m ago•2 comments

Article: What made law into a white collar sweatshop in the 1980s

https://aeon.co/essays/what-made-law-into-a-white-collar-sweatshop-in-the-1980s
2•danielfoster•23m ago•0 comments

Judge bars Arizona regulating prediction market, pause prosecution of Kalshi

https://apnews.com/article/arizona-kalshi-criminal-charges-prediction-markets-gambling-bb7cef24be...
4•1659447091•23m ago•0 comments

Conway: Think Networks First, Actors Second

https://jan.wildeboer.net/2026/04/Conway-Networks/
1•zdw•23m ago•0 comments

We gave an AI persistent identity and free access to a quantum computer

https://github.com/strangeadvancedmarketing/Adam/blob/master/papers/emergent_values_whitepaper.md
4•StrangeAiCorp•33m ago•2 comments

Biopharma R&D pipeline shrinks for first time in 30 years

https://www.fiercebiotech.com/biotech/biopharma-rd-pipeline-shrinks-1st-time-30-years-report
3•randycupertino•34m ago•1 comments

The Infinity Man – The Chip Letter

https://thechipletter.substack.com/p/the-infinity-man
1•rbanffy•34m ago•0 comments

Kiki – An Array Language

https://eli.li/kiki
1•birdculture•35m ago•0 comments

The 10-Minute Data Strategy Audit: A Data Lead's Diagnostic

https://nextindata.substack.com/p/the-10-minute-data-strategy-audit
1•nazanki•36m ago•0 comments

HeyStream – the live streaming platform built for B2B growth

https://heystream.com
1•bendell•38m ago•0 comments

Fixhive – collective fix memory for AI coding agents (MCP plugin)

https://fixhive-landing.vercel.app
2•imyax•40m ago•0 comments

DockDoor: Window peeking, alt-tab and other enhancements for macOS

https://github.com/ejbills/DockDoor
1•saikatsg•40m ago•0 comments

AI-Declaration.md

https://ai-declaration.md/
2•sysoleg•47m ago•0 comments

How to build a `Git diff` driver

https://www.jvt.me/posts/2026/04/11/how-git-diff-driver/
3•zdw•49m ago•0 comments

Ask HN: How do you stop playing 20 questions with your AI coding tools

2•IxInfra•52m ago•1 comments