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

World Quantum Day (April 14)

https://worldquantumday.org/
1•rrr_oh_man•1m ago•0 comments

NetBSD Installation with Disk Encryption

https://www.dwarmstrong.org/netbsd-encrypt-install/
1•jaypatelani•2m ago•0 comments

OpenAI investors question $852B valuation as strategy shifts

https://www.ft.com/content/04ac7917-940b-4606-be5f-9eb895a7d982
1•bazzmt•6m ago•0 comments

We Built a Haskell Package Manager in Rust

https://raskell.io/articles/why-we-built-a-haskell-package-manager-in-rust/
1•raskelll•6m ago•0 comments

Fractal Paris

https://panoramic.city/fractalparis/zoom/
1•helloplanets•7m ago•0 comments

You're a team lead. Now what?

https://cientifico.net/youre-a-team-lead-now-what/
1•cientifico•7m ago•0 comments

Sega Saturn Architecture

https://www.copetti.org/writings/consoles/sega-saturn/
1•andre9317•8m ago•0 comments

Operation Winter Storm: 90 Days to Baltic Capitulation

https://balticdefenseinitiative.com/scenarios/winter-storm/
1•debesyla•9m ago•0 comments

Build an Outfit Try-On Telegram Bot with Black Forest Labs

https://techstackups.com/guides/build-telegram-try-on-bot-black-forest-labs/
1•sixhobbits•10m ago•0 comments

Copy of the email I sent to my undergraduate professors on Nov 30, 2025

1•5color•15m ago•0 comments

PlayStation Architecture

https://www.copetti.org/writings/consoles/playstation/#bibref:9
1•andre9317•15m ago•0 comments

Qwen 3.5 Small – on-device multimodal models – Alibaba / Qwen

https://ai-tldr.dev/releases/alibaba-qwen-3-5-small/
3•ArielSh•16m ago•0 comments

Only Law Can Prevent Extinction

https://www.greaterwrong.com/posts/5CfBDiQNg9upfipWk/only-law-can-prevent-extinction
1•miniBill•16m ago•0 comments

Enforcing new limits and retiring Opus 4.6 Fast from Copilot Pro+

https://github.blog/changelog/2026-04-10-enforcing-new-limits-and-retiring-opus-4-6-fast-from-cop...
1•GaryBluto•19m ago•1 comments

Brazil's top labor inspector fired for adding China's BYD to 'dirty list'

https://www.reuters.com/sustainability/society-equity/brazils-top-labor-inspector-fired-adding-ch...
1•andrenth•19m ago•0 comments

Model API Performance

1•hpcaitech•20m ago•0 comments

How can I keep from singing?

https://blog.danieljanus.pl/singing/
1•nathell•23m ago•0 comments

Copilot: Sorry, you have been rate-limited. Please wait 181 hours 8 minutes

https://github.com/orgs/community/discussions/180092
1•micw•24m ago•0 comments

Insultable Dickens

https://medium.com/luminasticity/insultable-dickens-5534e00af7fb
1•bryanrasmussen•26m ago•0 comments

The Security Debt Behind Nvidia's GH200

https://digitaliziran.si/2026/04/12/the-security-debt-behind-nvidias-gh200-what-the-marketing-mat...
1•gregman1•28m ago•0 comments

I made a document translator that preserves original layout

https://www.doctranslating.com/
2•sanusihassan•29m ago•1 comments

The warning Big Alcohol wants to keep off your bottles of beer (2025)

https://investigativedesk.com/this-is-the-warning-big-alcohol-wants-to-keep-off-your-bottles-of-b...
3•robtherobber•29m ago•0 comments

OpenAI's oddly socialist hypocritical new economic agenda

https://www.vox.com/politics/485461/openai-economic-policy-superpac-sam-altman
3•thm•29m ago•0 comments

Class #1 – Economics of the AI Supercycle Stanford

https://www.youtube.com/watch?v=-ubIUNA-zRA
2•sauravmaheshkar•31m ago•0 comments

Predator Spyware's iOS Kernel Exploitation Engine: Pac Bypass, Neon R/W and More

https://www.jamf.com/blog/predator-spyware-ios-kernel-exploitation-engine/
1•campuscodi•32m ago•0 comments

A collection of small, low stakes and low effort tools

https://tools.rmv.fyi/
2•coinfused•32m ago•0 comments

Worming from Home: work a remote finance job, as a worm

https://store.steampowered.com/app/3547270/Worming_from_Home/
2•MrBuddyCasino•34m ago•0 comments

137-Year-Old Piece of Eiffel Tower Original Staircase to Be Auctioned in Paris

https://www.nytimes.com/2026/04/09/world/europe/eiffel-tower-auction.html
1•NewCzech•41m ago•0 comments

Human Reputation: A New Rating System

https://github.com/Noc2/CURYO
3•Noc24•42m ago•3 comments

Show HN: Afterimage is now open-source for infra-grade dataset generation

https://github.com/altaidevorg/afterimage/
1•monatis•43m ago•0 comments