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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•6mo ago
Agreed

Recent 7-Zip Vulnerability Exploited in Attacks

https://www.securityweek.com/recent-7-zip-vulnerability-exploited-in-attacks/
1•Bender•46s ago•0 comments

Nested Learning: A new ML paradigm for continual learning

https://research.google/blog/introducing-nested-learning-a-new-ml-paradigm-for-continual-learning/
1•wslh•1m ago•0 comments

Critical Oracle Identity Manager RCE Flaw Revealed, PoC Published

https://www.scworld.com/news/critical-oracle-identity-manager-rce-flaw-revealed-poc-published
1•Bender•1m ago•0 comments

How DeepMind Is Reinventing the Robot

https://spectrum.ieee.org/how-deepmind-is-reinventing-the-robot
1•Velocifyer•1m ago•0 comments

Are Modern Droughts Unprecedented?

https://essopenarchive.org/doi/full/10.22541/essoar.176384963.31728350/v1
2•bikenaga•2m ago•0 comments

Buildsheet.one – Create Beautiful Cheatsheets

https://buildsheet.one
2•usegrand•2m ago•0 comments

Opus 4.5

https://twitter.com/claudeai/status/1993030546243699119
2•incoming1211•2m ago•0 comments

NASA confirms that Starliner's next mission will be cargo only

https://arstechnica.com/space/2025/11/nasa-confirms-that-starliners-next-mission-will-be-cargo-only/
1•Bender•2m ago•0 comments

Opus 4.5

https://platform.claude.com/docs/en/about-claude/models/whats-new-claude-4-5
5•p0seidon•5m ago•1 comments

Claude Opus 4.5

https://www.anthropic.com/news/claude-opus-4-5
15•adocomplete•5m ago•0 comments

Pebble Watch Software Is Now 100% Open Source

https://ericmigi.com/blog/pebble-watch-software-is-now-100percent-open-source
3•Larrikin•6m ago•0 comments

Google's new 'Aluminium OS' project brings Android to PC

https://www.androidauthority.com/aluminium-os-android-for-pcs-3619092/
4•jmsflknr•8m ago•0 comments

Google experts tell the US DOJ selling its ad tech business would be impossible

https://www.androidcentral.com/apps-software/google-experts-tell-the-us-doj-selling-its-ad-tech-b...
3•01-_-•8m ago•0 comments

Show HN: New Systems Programming Language with Builtin Parallelism and No GC

https://axelang.org/
2•death_eternal•9m ago•0 comments

Steam Next Fest's Breakout Only Requires a Fraction of Your Screen and Attention

https://kotaku.com/steam-next-fests-most-unlikely-breakout-only-requires-a-fraction-of-your-scree...
1•PaulHoule•9m ago•0 comments

GrapheneOS migrates server infrastructure from France

https://www.privacyguides.org/news/2025/11/22/grapheneos-migrates-server-infrastructure-from-fran...
6•01-_-•10m ago•2 comments

UX Patterns for Artificial Intelligence Design

https://www.shapeof.ai
1•aratahikaru5•10m ago•0 comments

MoreMinds: Every Idea Becomes a Startup

https://moreminds.ai
1•jroseborough•10m ago•2 comments

Is Your Android TV Streaming Box Part of a Botnet?

https://krebsonsecurity.com/2025/11/is-your-android-tv-streaming-box-part-of-a-botnet/
5•todsacerdoti•11m ago•0 comments

How AI Bubble Can Burst

https://heyvk.substack.com/p/how-ai-bubble-can-actually-burst
2•thatoneguytoo•12m ago•0 comments

Self-hosting your static assets or any piece of media

https://mighil.com/on-self-hosting-your-static-assets-or-any-piece-of-media
1•speckx•13m ago•0 comments

Should You Be Worried About a Tiny Black Hole Hitting Your Body?

https://gizmodo.com/should-you-be-worried-about-a-tiny-black-hole-hitting-your-body-2000690695
1•ulrischa•13m ago•0 comments

How to Secure the Boot Chain

https://blog.velocifyer.com/Posts/6,2025+10+23,%20How%20to%20secure%20the%20entire%20boot%20chain...
1•Velocifyer•13m ago•0 comments

An Intelligence Platform to Systematically Exploit Polymarket Inefficiencies

https://polytools.market
1•idogrady•13m ago•1 comments

People who self report as lonely also report as political [video]

https://youtube.com/shorts/2E7khK8MBeQ?si=uoJGzzhSEY1ySQ6W
1•lifeisstillgood•13m ago•1 comments

Understanding the limitations of pubsub systems [pdf]

https://sigops.org/s/conferences/hotos/2025/papers/hotos25-426.pdf
1•mbj111•14m ago•1 comments

Norway's lesson for Europe on wealth taxes: let some millionaires go

https://www.reuters.com/business/norways-wealth-tax-trades-millionaires-equality-2025-11-24/
4•wslh•15m ago•0 comments

Analog Hoverboard Controller

https://github.com/skrubis/analog-hoverboard
1•skrubis•15m ago•0 comments

Source code linking in C2Rust: merging C headers into Rust modules

https://immunant.com/blog/2019/12/header_merging/
1•fanf2•16m ago•0 comments

NATO taps Google for air-gapped sovereign cloud

https://www.theregister.com/2025/11/24/nato_google_cloud/
1•naves•17m ago•1 comments