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

Automatic Vectorization

https://en.wikipedia.org/wiki/Automatic_vectorization
1•tosh•52s ago•0 comments

DuckDB Meets Data Lakes [video]

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

The Shelf Life of Intelligence

https://jigarkdoshi.bearblog.dev/the-shelf-life-of-intelligence/
1•j_juggernaut•5m ago•1 comments

Show HN: macpak (Homebrew Wrapper for macOS)

https://github.com/kavindujayarathne/macpak
2•atkavindu•9m ago•1 comments

Protesters cleared of damaging US plane at Shannon (2006)

https://www.irishtimes.com/news/protesters-cleared-of-damaging-us-plane-at-shannon-1.791686
1•yread•12m ago•0 comments

A bet on whether ML-KEM-768 or X25519 will break first

https://github.com/FiloSottile/ecc-vs-lattices-long-bet
1•birdculture•16m ago•0 comments

Backblaze's Original Storage Pod Inducted into Computer History Museum

https://www.backblaze.com/blog/backblaze-part-of-computer-history/
3•Lwrless•22m ago•0 comments

Pope Leo XIV denounces the 'delusion of omnipotence' he says fuels the Iran war

https://www.politico.com/news/2026/04/11/pope-leo-xiv-denounces-the-delusion-of-omnipotence-he-sa...
3•achierius•26m ago•0 comments

Show HN: macOS ncdu alternative with Finder reveal and live incremental scanning

https://github.com/uAIex/rdu
2•harr01•32m ago•0 comments

CUDA Programming for Nvidia H100s

https://www.freecodecamp.org/news/cuda-programming-for-nvidia-h100s/
1•eigenBasis•37m ago•0 comments

MacBook Neo vs. MacBook Air: Which One Should You Buy?

https://www.wired.com/story/macbook-neo-vs-macbook-air/
1•joozio•38m ago•0 comments

Show HN: Uptime monitoring is table stakes

https://exit1.dev/
2•m_prads•38m ago•0 comments

Apache 2.4, ETag values, and (HTTP) response compression

https://utcc.utoronto.ca/~cks/space/blog/web/Apache24EtagAndSuffixes
2•DamonHD•41m ago•0 comments

Cold Diffusion from Scratch

https://github.com/aldipiroli/cold_diffusion_from_scratch
1•tgnk2341•42m ago•0 comments

Warranty Void If Broken? How to Keep Your Rights After Self-Repair

https://holdmybill.com/blog/warranty-void-if-broken-seal-your-rights-self-repair
2•niksmac•42m ago•0 comments

Ask HN: Do you trust AI agents with API keys / private keys?

3•devendra116•43m ago•1 comments

All Your Memory in a Grid

https://my-grid-week.netlify.app/
2•sherlockj•44m ago•0 comments

Frozen 14B model on $800 Mac Mini improves itself autonomously, no cloud

https://zenodo.org/records/19530926
2•farahcjaber•45m ago•0 comments

The AI Layoff Trap

https://arxiv.org/abs/2603.20617
2•the-mitr•46m ago•0 comments

Why the Grand Paris Express Is Europes Biggest Infrastructure Project [video]

https://www.youtube.com/watch?v=c_iuctRkmp0
2•ciconia•51m ago•0 comments

I tested 10k VPNs – 67% leak your data

https://medium.com/@examineip/i-built-a-free-vpn-leak-test-tool-heres-what-10-000-tests-revealed-...
2•examineip•57m ago•0 comments

Frugal AI for Education

https://www.col.org/frugal/
2•the-mitr•1h ago•0 comments

FIXAPL

https://fixapl.netlify.app/
1•tosh•1h ago•0 comments

Put Down Your Phone and Embrace Bookish Snobbery

https://thatvastvariety.substack.com/p/my-notes-on-amusing-ourselves-to
2•barry-cotter•1h ago•0 comments

Native Raspberry Pi Version of the Oberon System 3

https://github.com/rochus-keller/OberonSystem3Native/releases/tag/2026-04-10
2•xkriva11•1h ago•0 comments

Show HN: Snorb.lol

https://snorb.lol
1•numtel•1h ago•1 comments

A brief history of C/C++ programming languages

https://lemire.me/blog/2026/04/09/a-brief-history-of-c-c-programming-languages/
1•signa11•1h ago•0 comments

Code Mode: Let Your AI Write Programs, Not Just Call Tools

https://tanstack.com/blog/tanstack-ai-code-mode
2•nilsbunger•1h ago•0 comments

Science Communication and the Hype Machine

https://cognitivewonderland.substack.com/p/science-communication-and-the-hype
1•paulpauper•1h ago•0 comments

CDC director delays report showing Covid vaccine benefits

https://www.theguardian.com/us-news/2026/apr/10/cdc-chief-covid-vaccine
8•iamflimflam1•1h ago•0 comments