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

Colorado declares town [Hartman] abandoned amid water and leadership crisis

https://www.theguardian.com/us-news/2026/aug/01/hartman-colorado-town-abandoned
1•toomuchtodo•1m ago•0 comments

Show HN: Launch – A Mac Script Launcher

https://staunchapps.com/launch/
1•andrewjk•2m ago•0 comments

Solving the Multi-Plane Telemetry Challenge with Argo CD and OSS MyDecisive

https://www.mydecisive.ai/blog/multi-plane-telemetry-argo-cd
1•jratkevic•4m ago•0 comments

LLMs Can't Jump

https://openreview.net/pdf?id=klU4737opt
1•gmays•5m ago•0 comments

Why did we wait so long for the bicycle? (2019)

https://blog.rootsofprogress.org/why-did-we-wait-so-long-for-the-bicycle
1•frozenseven•5m ago•0 comments

Robinhood Private Company Fund to Back Y Combinator Startups

https://finance.yahoo.com/small-business/articles/robinhood-private-company-fund-back-145137332.html
1•PKop•7m ago•0 comments

This Week in AI Native Companies #2: The context layer gets funded

https://www.insideainative.com/p/this-week-in-ai-native-companies-555
2•mmayernick•11m ago•0 comments

When the apartment listing is too good to be true

https://blog.denv.it/posts/when-the-apartment-listing-is-too-good-to-be-true/
3•denysvitali•13m ago•0 comments

Palantir soars 12% on blowout quarter, with US commercial revenue soaring ~150%

https://www.cnbc.com/2026/08/03/palantir-pltr-earnings-q2-2026.html
2•gslin•13m ago•0 comments

Chiral diffraction from aperiodic monotile structure

https://www.nature.com/articles/s41467-026-75023-7
1•sciences44•13m ago•0 comments

Agent needs a computer, not a container – introducing Cloudflare/computer

https://blog.cloudflare.com/cloudflare-computer/
1•mattzcarey•17m ago•0 comments

AI website builders: 10 prompt-to-app tools compared by pricing and code export

https://github.com/umairalisadaqat/awesome-ai-website-builders
1•umairalisadaqat•18m ago•0 comments

Show HN: mob.so – vibecode with friends in Discord

https://mob.so
1•david_shi•21m ago•0 comments

The Shape of Things to Come, Part 2: Model Welfare for Agentic Engineers

https://yegge.ai/essays/model-welfare/
1•networked•23m ago•0 comments

There Will Come Soft Rains [pdf]

https://users.wpi.edu/~zrbutzke/Docs/BradburyStories(1).pdf
4•pmg101•25m ago•1 comments

A Dad's Solution to His Son's Difficulty with Watches

https://www.nytimes.com/2026/07/21/fashion/watches-dyslexia-darren-sher.html
1•bookofjoe•26m ago•1 comments

ASML's hold over the future of chipmaking is weakening

https://www.ft.com/content/af959faa-115d-4073-b9a2-68d11018d05b
1•sigma5•34m ago•1 comments

Review: Goodnight, Goodnight, Construction Site, by Sherri Duskey Rinker

https://www.thepsmiths.com/p/review-goodnight-goodnight-construction
1•jger15•42m ago•0 comments

Conflict-Freedom as a Progress Condition

https://arxiv.org/abs/2505.03627
1•otrack•43m ago•0 comments

Meat allergy is on the rise – what scientists want to know

https://www.nature.com/articles/d41586-026-02362-2
2•geneticdrifts•44m ago•0 comments

Why does everyone suddenly hate data centers?

https://kenlacorte.substack.com/p/why-does-everyone-suddenly-hate-data
2•duck•46m ago•2 comments

AI First Ethical Code

https://lastcopy.ai/code/70
1•itsthecourier•52m ago•1 comments

Gmail support for sending from third-party email addresses ends January 2027

https://support.google.com/mail/answer/17101213?hl=en
5•RagingCactus•54m ago•1 comments

Buildline: One timeline for cargo, ninja, Webpack, tsc, Bazel

https://github.com/nabsei/buildline
1•nabsei•55m ago•0 comments

Anger over Data Centers Is Fueling a New Political Movement

https://www.politico.com/news/magazine/2026/08/02/the-new-luddites-01017824
1•mapping365•55m ago•0 comments

How OpenAI built a realtime system for responsive voice AI in six months

https://openai.com/index/continuous-voice-interaction-with-gpt-live/
1•juberti•56m ago•0 comments

Compiler-Grounded Hierarchical Diagnosis for LLM Triton Kernel Optimization

https://arxiv.org/abs/2607.23089
1•matt_d•56m ago•0 comments

I learned to stop worrying and love the bomb (at least a little)

https://beeb6502.com/blog/how-i-learned-to-stop-worrying-and-at-least-like-the-bomb-a-bit/
1•idw•56m ago•0 comments

21-year-old Quebecer creates new social media platform to stop doom scrolling

https://www.cbc.ca/news/canada/montreal/new-social-media-app-to-defeat-doom-scrolling-9.7289312
1•hettygreen•57m ago•0 comments

NIIN: NVSHMEM Implemented In NCCL

https://github.com/NVIDIA/nccl/tree/staging/contrib/niin
1•matt_d•1h ago•0 comments