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

September 2026: The world today, as seen by one Polish guy

https://tomwojcik.com/posts/2026-09-21/september-2026-the-world-today/
1•marjancek•12s ago•0 comments

Symblicity: Stack-Based Esoteric Programming Language

https://ethan31415.github.io/Symblicity/
1•HeapDweller•22s ago•1 comments

List of Citogenesis Incidents

https://en.wikipedia.org/wiki/Wikipedia:List_of_citogenesis_incidents
1•stymaar•54s ago•0 comments

DeepSeek, Huawei partner on chip programming tools to reduce reliance on Nvidia

https://www.reuters.com/world/asia-pacific/deepseek-partners-with-huawei-develop-chip-programming...
2•GloVin•1m ago•0 comments

Tick, tock, tick, tock Bing (2009)

https://www.vetta.org/2009/12/tick-tock-tick-tock-bing/
1•6bitquant•1m ago•0 comments

Keystone

https://open-vsx.org/extension/Bartholomew/bartholomew-keystone
1•itsub_sa•1m ago•0 comments

Indie app developer accuses Vietnamese builder of copying his app

https://x.com/i/trending/2105190459069084156
1•soltanov•2m ago•0 comments

Ask HN: Any other ChatGPT Pro Subscribers get emailed 62,500 Tokens?

1•wincy•2m ago•0 comments

Show HN: I made my first $150 within 24 hour of launch

1•macsentinel•5m ago•2 comments

Show HN: A small side project for even colour scales

https://colours.viesual.net/
1•vie00001•10m ago•0 comments

Chat is the wrong shape for curiosity, so I made it branch

https://www.echohive.ai/drift
1•echohive42•10m ago•0 comments

AI models keep posting screenshots showing sensitive data from tech companies

https://www.theregister.com/ai-and-ml/2026/09/29/ai-models-keep-posting-screenshots-showing-sensi...
1•Betelbuddy•10m ago•0 comments

Coming Soon: Our 2026 List of Climate Tech Companies to Watch

https://www.technologyreview.com/2026/09/29/1145183/2026-climate-tech-companies-to-watch-preview/
1•joozio•11m ago•0 comments

ChatGPT's new plan costs $500 a month

https://www.businessinsider.com/chatgpt-new-plan-pro-500-cost-compute-allowance-2026-9
2•giosch•11m ago•0 comments

GLM 5.3 flash on AMD GPUs 670 tok/s

https://twitter.com/runinfrai/status/2105186912634057086
2•OsamaJaber•15m ago•0 comments

Long-term nuclear waste warning messages

https://en.wikipedia.org/wiki/Long-term_nuclear_waste_warning_messages
1•johnnyApplePRNG•16m ago•0 comments

Leela Chess Zero – Self-Learning Neural Network

https://lczero.org/
1•modinfo•17m ago•0 comments

Operational HPC lessons learnt training the Tessera geospatial foundation models [pdf]

https://www.cl.cam.ac.uk/~avsm2/tessera-hpc-report-20260922.pdf
1•matt_d•22m ago•0 comments

Caisi Cyber Evaluations

https://github.com/usnistgov/caisi-cyber-evals
1•soltanov•23m ago•0 comments

All Watched over by Machines of Loving Grace

https://www.readingdesign.org/all-watched-over-by-machines
2•sayamss•27m ago•2 comments

New Frontiers

https://www.proximal.ai/blog/new-frontiers/
1•doppp•27m ago•0 comments

Six Flags Magic Mountain retires X2 roller coaster amid brain injury lawsuits

https://apnews.com/article/six-flags-x2-roller-coaster-lawsuits-injuries-225c195a3549fee3637eed99...
1•lode•27m ago•0 comments

Postgres with QUIC

https://blogs.lupyd.com/blog/postgres-with-quic/
3•tenesripranav•28m ago•0 comments

CAISI's Assessment of Z.ai's GLM-5.3 Cyber Capabilities

https://www.nist.gov/news-events/news/2026/09/caisis-assessment-zais-glm-53-cyber-capabilities
1•soltanov•28m ago•0 comments

BrainTech

1•yashmobarsa•29m ago•0 comments

State of the (Tagged) Union Address by Andrew Kelley [video]

https://www.youtube.com/watch?v=zwi5b5xSsKA
2•signa11•31m ago•0 comments

What do you want from AI?

https://www.anthropic.com/research/your-thoughts-on-ai
1•dgfl•35m ago•1 comments

Show HN: Anxiety Checklist – 3 years of itterate with no success yet

https://anxietychecklist.com/
1•seobuddy•37m ago•0 comments

Lightweight Resilient Recursive Parsing

https://andraskovacs.github.io/posts/2026/09/resilient-parsing/
2•matt_d•39m ago•0 comments

Panthalassa's Floating, Wave-Powered Data Centre Technology

https://sustainabilitymag.com/news/panthalassa-the-floating-wave-powered-data-centre-unicorn
1•galaxyLogic•47m ago•0 comments