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

(An ((Better) Lisp) Interpreter (In Python))

http://norvig.com/lispy2.html
1•vismit2000•54s ago•0 comments

Australia to buy three second-hand United States submarines under AUKUS shake-up

https://www.abc.net.au/news/2026-05-31/australia-to-buy-second-hand-united-states-submarines-auku...
1•Teever•3m ago•0 comments

AI Agent that at inference time updates it's harness and model weights

https://github.com/hexo-ai/sia
2•martianvoid•3m ago•0 comments

The complexity of songs – Knuth (1984)

https://dl.acm.org/doi/pdf/10.1145/358027.358042
1•__patchbit__•3m ago•0 comments

Jonathan Daly's fav books about individuals who changed the way we see the world

https://bookdna.com/best-books/individuals-who-followed-their-muse-and-changed-th
1•bwb•8m ago•1 comments

Show HN: Free cloud-based tool for managing AI agents across multiple hosts

https://nodecartel.com/
2•itrinity•9m ago•0 comments

Telnet Song – Guy L Steele, Jr

http://wonderingminstrels.blogspot.com/2004/01/telnet-song-guy-l-steele-jr.html
1•__patchbit__•10m ago•0 comments

Mark Warren's favorite novels about a child's immersion into wilderness

https://bookdna.com/best-books/childs-immersion-into-wilderness
1•bwb•10m ago•1 comments

Sellers circumvent Lenovo's retro handheld ban with cheap wholesale storefronts

https://www.tomshardware.com/video-games/handheld-gaming/the-usd60-retro-gaming-handheld-that-esc...
2•giuliomagnifico•12m ago•0 comments

Unlimited free AI tools and more, live demo. watch now [video]

https://www.youtube.com/shorts/8HB-VgN3uTE
1•rrrpro123•14m ago•0 comments

A Queer Taste for Macaroni (2017)

https://publicdomainreview.org/essay/a-queer-taste-for-macaroni/
1•Michelangelo11•14m ago•0 comments

Why AI isn't showing up on your bottom line

https://www.exponentialview.co/p/why-ai-isnt-showing-up-on-your-bottom-line
1•brettlangdon•14m ago•0 comments

Unity AI Suite

https://unity.com/features/ai
1•teleforce•15m ago•0 comments

Best Prepaid Phone Plans (2026): Tello, Boost, Google Fi, More

https://www.wired.com/gallery/best-prepaid-phone-plans/
1•joozio•16m ago•0 comments

Seat Allocation and Seat Bias Under the Jefferson–D'Hondt Method (2018)

https://arxiv.org/abs/1805.08291
1•wolfi1•22m ago•0 comments

Unmasking Romance Scams with Osint – Mishaal Khan [video]

https://www.youtube.com/watch?v=5dXXrUqpwec
2•Fudgel•23m ago•0 comments

Claude Agent SDK: Build Your Own AI Terminal in 10 Minutes

https://www.mager.co/blog/2026-03-14-claude-agent-sdk-tui/
2•ankitg12•24m ago•0 comments

Accountability Throughput

2•shudv•26m ago•0 comments

Show HN: A Reverse Captcha for Clankers

https://clanker-captcha.jeromem.workers.dev/
2•rydgel•28m ago•0 comments

How to Destroy a Literary Reputation in One Move

https://www.honest-broker.com/p/how-to-destroy-a-literary-reputation
2•Michelangelo11•28m ago•0 comments

Diffusion over Networks

https://camerongordon0.substack.com/p/diffusion-over-networks
2•iciac•29m ago•0 comments

My wife tried to log 1k phone-free hours but quit. So I vibe-coded an app

https://play.google.com/store/apps/details?id=com.greendot.phonebreaks&hl=en_US
2•GreenDotstudios•35m ago•0 comments

Show HN: Cordium: FOSS sandbox platform that eliminates credential injection

https://github.com/octelium/cordium
2•geoctl•36m ago•0 comments

The first support engineer agent for dev tools companies

https://reproly.com
2•Sidi-jeddou•40m ago•1 comments

The Hallmarks of Aging (2013)

https://pmc.ncbi.nlm.nih.gov/articles/PMC3836174/
2•downbad_•41m ago•0 comments

Show HN: Overslash – an auth gateway for AI Agents

https://www.overslash.com/
2•arturogoosnargh•42m ago•1 comments

Russia Revives WWI Dazzle Camouflage to Evade Ukrainian AI Drones–Does It Work?

https://united24media.com/war-in-ukraine/russia-revives-wwi-dazzle-camouflage-to-evade-ukrainian-...
1•Symbiote•43m ago•1 comments

How to Think About AI in Your Product

https://abgoyal.com/posts/how-to-think-about-ai-in-your-product/
1•ghoul2•49m ago•0 comments

Squillions – two books about money-laundering

https://www.lrb.co.uk/the-paper/v48/n09/john-lanchester/squillions
1•rwmj•50m ago•0 comments

2D Internet? So 1995. Building a '90s VRML-verse with SGI [video]

https://www.youtube.com/watch?v=9X_NKRbuPf4
3•6581•50m ago•0 comments