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

Squares in Squares

https://kingbird.myphotos.cc/packing/squares_in_squares.html
1•carlos-menezes•1m ago•0 comments

Stop Wasting Tokens on Android Automation

https://handsets.dev/blog/stop-wasting-tokens-on-android-automation/
1•gaojiuli•1m ago•0 comments

Kysely 0.29

https://github.com/kysely-org/kysely/releases/tag/v0.29.0
1•bundie•2m ago•0 comments

Bursting the AI Bubble: Fed Could Take Away the "Who Could Have Known?" Defense

https://deanbaker22.substack.com/p/bursting-the-ai-bubble-the-fed-could
1•bediger4000•3m ago•1 comments

Show HN: Pro Health Ledger – An open-source, net-neutral reputation system

1•muglikar•3m ago•0 comments

Microsoft's 6502 BASIC is now Open Source (2025)

https://opensource.microsoft.com/blog/2025/09/03/microsoft-open-source-historic-6502-basic/
1•GTP•4m ago•0 comments

I Made the Same Game in Unity and Godot, Which Engine Is Better [video]

https://www.youtube.com/watch?v=WB7v-ezqcJM
1•HelloUsername•8m ago•0 comments

25 years, 793,199 fashion records: non-White models 4.5× more likely plus-size

https://www.pnas.org/doi/10.1073/pnas.2602380123
7•falconer2vi•9m ago•3 comments

Lupine: A GPU-over-IP Bridge

https://github.com/lupinemachines/lupine
1•kevmo314•16m ago•0 comments

Oxia ― Metadata Store and Coordination System

https://oxia-db.github.io/
1•mooreds•17m ago•0 comments

Getting the (staff) title where you are

https://staffeng.com/guides/getting-the-title-where-you-are/
1•mooreds•17m ago•0 comments

DeepSeek reasonix, DeepSeek native coding agent with high caching and low cost

https://esengine.github.io/DeepSeek-Reasonix/
3•Alifatisk•19m ago•0 comments

Mouthwords

https://everythingchanges.us/blog/mouthwords/
1•mooreds•20m ago•0 comments

OpenAI co-founder Andrej Karpathy joins Anthropic

https://www.axios.com/2026/05/19/anthropic-openai-karpathy-andrej-claude
2•synapsehub_ai•21m ago•1 comments

Russell's Paradox [video]

https://www.youtube.com/watch?v=ymGt7I4Yn3k
2•stormdennis•23m ago•0 comments

'He refused to quit:' 27-year walk around the world

https://www.rmoutlook.com/mountain-guide/he-refused-to-quit-fundraiser-for-man-on-27-year-walk-ar...
2•Kaibeezy•23m ago•0 comments

Constraint Decay: The Fragility of LLM Agents in Back End Code Generation

https://arxiv.org/abs/2605.06445
3•wek•25m ago•0 comments

Show HN: A picker that maps local LLMs to hardware, hardware to LLMs

https://llmrequirements.com/
2•truetotosse•29m ago•1 comments

Alyx – Crypto Portfolio Dashboard on New Tab

https://chromewebstore.google.com/detail/alyx-—-crypto-portfolio-d/nmchlndcajncggcpeokebegjhlje...
2•Teyz•34m ago•0 comments

Your Clippy Config Should Be Stricter

https://emschwartz.me/your-clippy-config-should-be-stricter/
2•blenderob•38m ago•0 comments

The guide to RL environments: building and scaling them in the LLM era

https://huggingface.co/spaces/AdithyaSK/rl-environments-guide
2•kunalsin9h•40m ago•0 comments

PromptVC

https://www.promptvc.io/blog/introducing-promptvc
2•justicea83•40m ago•0 comments

Charging power bank left in checked baggage diverts easyjet flight

https://simpleflying.com/easyjet-flight-diverted-power-bank-charging-luggage/
3•giuliomagnifico•40m ago•3 comments

AI Proves Mathematicians Wrong

https://www.heise.de/en/news/AI-proves-mathematicians-wrong-11303022.html
2•NicoHartmann•40m ago•1 comments

Are Tech Meetups Dead?

3•mlinhares•42m ago•0 comments

I missed NETworkManager on Windows so I built a Linux equivalent

https://github.com/thongor77/nmlinux
2•magetriste•44m ago•0 comments

I built a free AI travel planner for budget Europe trips

2•supreethadev•46m ago•2 comments

Accessibility in JavaFX

https://dev.java/learn/javafx/a11y/
1•Tomte•47m ago•0 comments

Sips, macOS native scriptable image processing system

https://ss64.com/mac/sips.html
2•Alifatisk•48m ago•0 comments

Our AI just got better

https://blog.ecosia.org/improving-our-ai/
6•thunderbong•49m ago•2 comments