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•1y 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•1y 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•1y 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•1y 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•1y ago
"def" is too generic.

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•1y ago
Agreed

Ask HN: Is Facebook registration procedure broken?

1•stefanos82•10s ago•0 comments

I built a sentiment analyzer for Hacker News (as an MCP server)

https://mcpize.com/mcp/sentiment-analyzer
1•Lord_Dontavious•1m ago•0 comments

VibeOS – Hallucinated Operating System [video]

https://www.youtube.com/watch?v=z3pV6FHvcgM
2•doener•2m ago•0 comments

Academics set out vision for planetary survival

https://www.theguardian.com/environment/2026/jun/04/world-inequality-lab-equality-academics-plane...
2•worik•5m ago•0 comments

The future is controlled by companies who control the physical bottlenecks of AI

https://silicon-frontier.com/research/silicon-control
1•momentmaker•5m ago•0 comments

Why are there so many canines in fine art?

https://www.theatlantic.com/magazine/2026/07/the-dogs-gaze-thomas-w-laqueur/687312/
1•prismatic•6m ago•0 comments

Got a job, dropped this for 3 months – MaskOps, Polars PII masking in Rust

https://github.com/fcarvajalbrown/MaskOps
1•fcarvajalbrown•7m ago•0 comments

1D Image Tokenizers and Autoregressive Models for Dynamic Resolution Generations

https://arxiv.org/abs/2604.24885
1•PaulHoule•9m ago•0 comments

Expert Selections in MoE Transformer Models Reveal Almost as Much as Text

https://arxiv.org/abs/2602.04105
2•busserweiser•10m ago•0 comments

Small modular nuclear reactor reaches criticality in first test

https://arstechnica.com/science/2026/06/first-us-test-of-modular-reactor-reaches-criticality/
1•NedCode•10m ago•0 comments

NEC PC Engine LT Recap and LCD Bias Fix (Necromancy)

https://hitmanmcc.com/entry/pc-engine-lt-necromancy
1•zdw•12m ago•0 comments

The spelling error made 200B times a day (2025)

https://nbailey.ca/post/spelling-error/
2•NaOH•13m ago•0 comments

The US Only Has One Political Party [video]

https://www.youtube.com/watch?v=GUVf6DkDkgA
1•joe_mamba•14m ago•0 comments

Show HN: Claude Code on Slack/Discord/Telegram for flat $20/mo – no API bills

https://lobsteady.com
1•jvalansi•15m ago•0 comments

How much do amd64 microarchitecture levels help in Go?

https://lemire.me/blog/2026/06/06/how-much-do-amd64-microarchitecture-levels-help-in-go/
1•zdw•16m ago•0 comments

Why add an agent skill to a CLI that has a context command?

https://www.andreagrandi.it/posts/why-add-agent-skill-cli-context-command/
2•andreagrandi•21m ago•0 comments

Robotics Has a Stiffness Problem

https://hasalmon.medium.com/the-stiffness-problem-part-1-ed44c68e56b6
4•E-•21m ago•0 comments

Where tf is the Excalidraw markup table?

https://larkmatter.substack.com/p/where-the-fck-is-the-excalidraw-markup
2•jlarks32•23m ago•0 comments

Will AI Replace Software Developers?

https://olegdubovoi.com/publications/will-ai-replace-software-developers/
4•empiree•24m ago•0 comments

Dancing Mad with Sandboxes

https://xeiaso.net/blog/2026/dancing-mad-sandboxing/
1•cohix•30m ago•0 comments

Reverse Engineering the Apple QuickTake 200 in 2026

https://medvedev.im/articles/2026-06-07/quicktake-200
1•imedvedev•34m ago•0 comments

Flock license plate reader wrongly linked a San Diego man to a violent crime

https://timesofsandiego.com/crime/2026/06/07/a-flock-license-plate-reader-linked-a-san-diego-man-...
24•loteck•34m ago•4 comments

Show HN: Luminous – fast image viewer in Rust, SAM 3 and CLIP support

https://github.com/jaroslavszkandera/luminous
3•jarda_64•36m ago•0 comments

MemGraphRAG: Memory-Based Multi-Agent System for Graph RAG

https://arxiv.org/abs/2606.00610
1•Anon84•40m ago•0 comments

Raspberry Pi Home Server: Back Up Your Files Locally for Under $100 DescriçãO

https://spiritcode.blog/vue-2-to-vue-3-migration-stop-rewriting-migrate-smart/
1•spiretcodeblog•43m ago•0 comments

Dead Button Syndrome

https://em-tg.github.io/dedbutt/
1•em-tg•43m ago•1 comments

Boomers are hoarding most of America's wealth and power

https://finance.yahoo.com/economy/articles/golden-years-not-golden-boomers-113000201.html
7•randycupertino•51m ago•7 comments

What Are Tokens in LLMs?

https://bearisland.dev/posts/tokens-and-tokenization/
9•s1monb•51m ago•5 comments

Jorge Luis Borges Lecture April 9th, 1976 [video]

https://www.youtube.com/watch?v=lMn4_iTqoJI
1•marysminefnuf•52m ago•0 comments

Criblate – Help your favorite creators speak every language

https://criblate.com/
1•ravenical•53m ago•0 comments