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

Benchmarking Jev, Laya, and five open models under three stresses

https://github.com/gazelle93/decision-models-under-pressure
1•lovegreenlife•1m ago•0 comments

ASML says it sold 'absolutely nothing' in Europe in 2026

https://www.tomshardware.com/tech-industry/semiconductors/asml-says-its-sells-absolutely-nothing-...
1•MC995•1m ago•0 comments

Does Georgism Work? Five Years Later

https://www.astralcodexten.com/p/does-georgism-work-five-years-later
1•silveraxe93•2m ago•0 comments

30 Years of Backwards Compatibility in a Development Tool Since 1993

https://visualneo.com/visualneo-win/from-neobook-to-visualneo-win-30-years-of-keeping-a-developme...
1•birdculture•2m ago•0 comments

Tell agents the why, not just the how

https://www.seangoedecke.com/tell-agents-the-why/
1•mooreds•3m ago•0 comments

What happens when you analyze your favorite college football team like the CIA?

https://www.cultivatelabs.com/posts/what-happens-when-you-analyze-college-football-like-the-cia
1•adam•3m ago•0 comments

Cracks in Oracle's AI Data-Center Build-Out Appear in New Mexico Project

https://www.wsj.com/finance/investing/cracks-in-oracles-ai-data-center-build-out-appear-in-massiv...
1•hodgesrm•4m ago•0 comments

CommonGrid: The open source registry of the US power grid

https://www.texturehq.com/blog/commongrid
1•orangechairs•4m ago•0 comments

The state of SIMD in Rust in 2026

https://shnatsel.github.io/state-of-simd-rust-2026/
1•verdagon•4m ago•0 comments

XDude

https://xdude.com
1•rob•5m ago•0 comments

My Take on Jev

https://sunbeams.ai/blog/jev-new-class-of-models/
1•mooreds•6m ago•0 comments

Evaluating the Tax Character of Options-Based Income [pdf]

https://sterlingcapital.com/cdn/Sterling-OptionsIntegrity-V3-4.pdf
1•mooreds•6m ago•0 comments

A Model Context Protocol (MCP) server for NATS messaging system integration

https://github.com/sinadarbouy/mcp-nats
1•Bluestein•7m ago•0 comments

The New Copilot with Home, Code and Autopilot

https://blogs.microsoft.com/blog/2026/09/25/introducing-the-new-copilot-with-home-code-and-autopi...
1•hdz•8m ago•0 comments

Show HN: Sifthound – self-hosted, Tavily-compatible search API for AI agents

https://github.com/khsarvar/sifthound
1•khsarvar•8m ago•0 comments

You need to pass all unhandled messages to DefWindowProc, part 2

https://devblogs.microsoft.com/oldnewthing/20260924-00/?p=112728/
2•ibobev•8m ago•0 comments

When working with Win32 FILETIME, don't forget that you have std:chrono now

https://devblogs.microsoft.com/oldnewthing/20260923-00/?p=112726/
1•ibobev•9m ago•0 comments

Feast feature and vector serving at ScyllaDB speed

https://feast.dev/blog/scylladb-feast-online-store/
1•tzach•9m ago•1 comments

What's the highest legal FILETIME? Is it safe to use?

https://devblogs.microsoft.com/oldnewthing/20260921-00/?p=112711/
1•ibobev•9m ago•0 comments

The Spacecraft Hacker's Handbook

https://nostarch.com/spacecraft-hackers-handbook
1•0x54MUR41•9m ago•0 comments

Monotremes Oviparous, Ovum Meroblastic

https://www.futilitycloset.com/2026/09/20/frugal/
1•surprisetalk•10m ago•0 comments

Georges St-Pierre (GSP) vs. increasingly dangerous Dinosaurs [video]

https://www.youtube.com/watch?v=xgzWjWlTIOA
1•theGeatZhopa•11m ago•1 comments

Apple Is Testing a Screenless Fitness Band

https://garminrumors.com/apple-testing-screenless-fitness-band-whoop-garmin-cirqa/
1•geox•11m ago•0 comments

It turns out Canada's population isn't shrinking after all

https://www.theglobeandmail.com/business/article-it-turns-out-canadas-population-isnt-shrinking-a...
1•efavdb•11m ago•0 comments

QNX Demo Disk

http://toastytech.com/guis/qnxdemo.html
1•pelagicAustral•12m ago•0 comments

Show HN: Hacker Atlas - A map of what Hacker News talks about

https://hackeratlas.com/
1•andrearitossa•12m ago•0 comments

Show HN: Concrete Calculator – Estimate Cubic Yards, Bags and Cost

https://concretemixcalc.com
1•struy•13m ago•0 comments

The Atoms Are Deployed

https://itsmeduncan.com/2026/09/22/the-atoms-are-already-deployed/
1•itsmeduncan•15m ago•0 comments

Advanced soft-bodies for games with the Rapier physics engine

https://dimforge.com:443/blog/2026/09/25/advanced-soft-bodies-for-games-in-the-rapier-physics-eng...
1•sebcrozet•17m ago•0 comments

AI, Consciousness and Emergent Behaviors

https://blog.borrego.dev/entries/ai-consciousness-emergent-behaviors.html
1•agubelu•17m ago•0 comments