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

DuctTape Collective

https://ducttapecollective.com/
1•jruohonen•39s ago•0 comments

Lepodisiran Reduces Oxidized Phospholipids

https://www.acc.org/latest-in-cardiology/articles/2026/08/29/08/48/mon-jacc-lipids-esc-2026
1•brandonb•39s ago•0 comments

Twenty-One Miles – How far from a road you can get in the lower 48

https://ryansajdak.com/remote/
1•jtsnow•1m ago•0 comments

Show HN: Preview Postgres writes from AI agents with xmin checks (pg-dry-run)

https://github.com/polycore/pg-dry-run
1•anarkafkas•2m ago•0 comments

Order from disorder: do we need a new law of physics?

https://www.nature.com/articles/d41586-026-02685-0
1•Brajeshwar•2m ago•0 comments

Oscar Winner Brings Monsters to Life with His Simulation Software

https://spectrum.ieee.org/oscar-winner-jernej-barbic
1•jruohonen•2m ago•0 comments

Apple Watch Ultra 4 will differentiate itself from prior models

https://9to5mac.com/2026/08/28/heres-how-apple-watch-ultra-4-will-differentiate-itself-from-prior...
1•brandonb•3m ago•0 comments

'The forgotten empire': When Russia colonised California

https://www.bbc.com/travel/article/20260828-when-russia-colonised-california
1•tzury•3m ago•0 comments

Edit and present slides in Markdown with AI

https://kordikp.github.io/slaidy/
1•kordikp•3m ago•0 comments

What Are Platform Businesses?

https://platformchronicles.substack.com/p/what-are-platform-businesses
2•rafaelc•6m ago•0 comments

ChatGPT and Reddit now face EU's toughest online safety rules

https://arstechnica.com/tech-policy/2026/08/chatgtp-and-reddit-now-face-eus-toughest-online-safet...
3•ViktorRay•8m ago•0 comments

He Was a Top Lawn Care Influencer on YouTube. Then Everything Went Haywire

https://www.nytimes.com/2026/08/30/magazine/greg-chism-youtube-bad-baby.html
2•mooreds•9m ago•0 comments

Australia risks missing out on AI economic boom due to 'slow' business uptake

https://www.abc.net.au/news/2026-08-31/ai-could-boost-australias-economy-treasury-flag-slow-uptak...
2•ern•9m ago•0 comments

Twelve questions to ask before you choose your fleet's memory platform

https://medium.com/@majid.fekri/the-agent-memory-checklist-6b3da2df17e2
2•supportm•10m ago•0 comments

Launch HN: Hebbian Robotics (YC S26) – Build scalable robotics data pipelines

https://github.com/Hebbian-Robotics/hflow
3•kstonekuan•11m ago•0 comments

Risk averse Australians not 'having a go' in a culture of compliance (2019)

https://www.smh.com.au/business/the-economy/risk-averse-australians-not-having-a-go-in-a-culture-...
2•ern•11m ago•0 comments

Agentic Trust Controls

https://trustcontrols.ai/
4•mooreds•12m ago•0 comments

Kahn vs. Anthropic, PBC

https://www.vacadaffanlaw.com/post/kahn-v-anthropic-pbc
4•Bluestein•13m ago•1 comments

Show HN: 2x-4x cheaper GLM 5.3 for coding and research

https://www.coralbricks.ai
2•Hiteshjain118•14m ago•0 comments

'Talk to Mom': Burning Man attendees use this phone to call home

https://www.sfgate.com/sf-culture/article/burning-man-pay-phone-19736797.php
3•Bluestein•15m ago•0 comments

Snake embryos often coil in one direction. Now, we may know why

https://www.science.org/content/article/snake-embryos-often-coil-one-direction-now-we-may-know-why
2•Brajeshwar•15m ago•0 comments

AI ruined some of my most precious accessibility tools

https://straye.dgirl.gay/blog/2026/ai-ruined-accessibility/
3•speckx•16m ago•0 comments

Migrating a production cluster off ingress-nginx to Traefik v3

https://hostim.dev/blog/migrating-off-ingress-nginx/
2•pv1337•18m ago•0 comments

Show HN: What Happens When You Give Your AI Agents a Voice and an Attitude

https://fellowgeek.github.io/mcp-speak/
3•pcbmaker20•18m ago•1 comments

Apache Iggy, a message streaming platform in Rust, graduates to an Apache TLP

https://iggy.apache.org/blogs/2026/08/24/apache-iggy-top-level-project-tlp-graduation/
10•spetz•19m ago•3 comments

Doubling of Kobo's U.S. sales in both 2025 and 2026, 70% US female customer base

https://www.reddit.com/r/kobo/comments/1w20azv/the_doubling_of_kobos_us_sales_in_both_2025_and/
3•seam_carver•20m ago•0 comments

Free Online Tools and Apps

https://actuallyfreeonlinetools.com
3•bobby2shorts•20m ago•0 comments

ArchUnit for Python

https://github.com/LukasNiessen/ArchUnitPython
2•amai•20m ago•1 comments

ChatGPT to face tougher regulation in the EU

https://www.theverge.com/ai-artificial-intelligence/986682/openai-chatgpt-eu-dsa
3•dataking•21m ago•1 comments

Playa Phone

https://playaphone.com/
18•cutoff•21m ago•2 comments