frontpage.
newsnewestaskshowjobs

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

Naïve physics

https://en.wikipedia.org/wiki/Na%C3%AFve_physics
2•skibz•3m ago•0 comments

A Universal Hölder Bound with runtime verification

https://zenodo.org/records/22978185
1•GeometryKernel•4m ago•0 comments

The AI Genie Phenomenon and Three Types of AI Chatbot Addiction

https://arxiv.org/abs/2601.13348
1•maksimur•8m ago•0 comments

OpenAI: Astra Model Is Nerfed

https://www.reddit.com/r/codex/comments/1wqjxyy/i_thought_the_model_nerf_posts_were_bullshit/
3•nitinreddy88•12m ago•1 comments

Australia investigating how F-35 fighter jet parts went missing in Hong Kong

https://www.theguardian.com/world/2026/sep/22/australia-investigating-how-f-35-fighter-jet-parts-...
2•baranul•14m ago•0 comments

Show HN: AI coding agents that prove their work

https://daneb.github.io/keel/
1•danebalia•15m ago•0 comments

Fear and Loathing in the Bunker

https://www.nytimes.com/1974/01/01/archives/fear-and-loathing-in-the-bunker-no-questions-asked-th...
1•limbicsystem•15m ago•0 comments

A bounty system for surfacing new crypto scam patterns before they spread

https://dontkyc.me/userlogin
1•thorarganaut•15m ago•0 comments

Five Indianapolis officers charged following reporting on Flock misuse

https://www.msn.com/en-us/news/other/five-indianapolis-officers-charged-following-the-post-s-repo...
1•pseudolus•17m ago•0 comments

Prefill Concurrency in SGLang: Consistent TTFT Under Multi-Tenant Load

https://sference.com/blog/prefill-head-of-line-blocking
1•apejcic•17m ago•0 comments

Show HN: Note Duel – LLM Arena for composing music

https://www.noteduel.com/
1•crimsoneer•18m ago•0 comments

How Virus-Like 'Jumping Genes' Became Our Partners in Evolution

https://www.quantamagazine.org/how-virus-like-jumping-genes-became-our-partners-in-evolution-2026...
1•magoghm•21m ago•0 comments

The Day Bobby Fischer Blew It

https://www.thestacksreader.com/the-day-bobby-blew-it/
1•bryanrasmussen•22m ago•0 comments

Regional Revitalization in the Tokyo Suburbs:Population and Regional Differences

https://note.com/akiko2ka/n/n19c7d62cbca6
1•Akiko_Tsuka•22m ago•1 comments

Scientists Detect Radio Signals from an Exoplanet for the First Time in History

https://www.wired.com/story/scientists-detect-radio-signals-from-exoplanet-for-first-time-in-hist...
1•jonbaer•24m ago•1 comments

Homa: The End of TCP for AI Clusters [video]

https://www.youtube.com/watch?v=eZ8WWZzoaR0
1•signa11•24m ago•0 comments

The Hugging Face incident and impacts of misaligned models on third parties

https://openai.com/hugging-face-incident-and-misalignment/
1•fourfire•27m ago•0 comments

NASA Details Earthquake Effects on the Earth

https://www.jpl.nasa.gov/news/nasa-details-earthquake-effects-on-the-earth/
1•thunderbong•29m ago•0 comments

Spherical Cow

https://en.wikipedia.org/wiki/Spherical_cow
1•kaycebasques•30m ago•0 comments

Ultima Online Retrospective – The Last Hurrah [video]

https://www.youtube.com/watch?v=35SKawn2SDI
2•danso•34m ago•0 comments

MiMo-v2.6-RL-OSS dataset

https://huggingface.co/datasets/XiaomiMiMo/MiMo-V2.6-RL-oss
2•miyuru•36m ago•0 comments

New in Chrome 154: iframes that automatically resize themselves to their content

https://www.bram.us/2026/09/23/responsive-iframes/
2•eustoria•36m ago•0 comments

Improving site performance by shipping more CSS

https://github.blog/engineering/architecture-optimization/improving-site-performance-by-shipping-...
1•torutofu•37m ago•0 comments

It all fits: wgpu, Metal, Vulkan, WebGL, WASM, WebGPU, Luau [video]

https://www.youtube.com/watch?v=CgcS2OxcV6k
1•cs1996•38m ago•1 comments

Show Keystrokes – Keystroke and Shortcut Visualizer Custom Element

https://show-keystrokes.netlify.app/
1•eustoria•39m ago•0 comments

How Work Network Works: A Multi-Activity Mobile Rewards Platform

https://work-networks.com/how-work-network-works.html
1•onlineiqbal•39m ago•0 comments

Codetta: High-Capacity, Keyless, and Undetectable Multi-Agent Collusion

https://arxiv.org/abs/2609.28900
1•sbulaev•40m ago•0 comments

Minecraft random seed world record (with a particle accelerator) [video]

https://www.youtube.com/watch?v=Kd5-1IXqiDQ
2•Zusor•40m ago•0 comments

Understanding the Impact of LLM Watermarking on AI Agent Behavior

https://www.lasso.security/blog/the-provenance-tax-understanding-the-impact-of-llm-watermarking-o...
23•nisosguy•41m ago•1 comments

Meta Expands Private Processing Confidential Computing to AI Glasses

https://www.unite.ai/meta-expands-private-processing-confidential-computing-to-ai-glasses/
1•eustoria•41m ago•0 comments