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

App Basics for Firefox OS (2013)

https://web.archive.org/web/20160316133358/https://mozilla.github.io/app-basics-videos/
1•gurjeet•1m ago•0 comments

Quahuru: An original dice strategy board game

https://quahuru.com
1•trecht•3m ago•1 comments

A Financial Timeline of Jensen's Ousting

https://nvidia.cool.computer/
1•warthog•7m ago•0 comments

Pax Silica

https://www.nationalreview.com/the-morning-jolt/greta-thunberg-s-next-big-thing
2•fortran77•15m ago•1 comments

Before His Ouster, Jensen Huang Belittled the Executive Replacing Him

https://www.wsj.com/tech/jensen-huang-colette-kress-nvidia-ceo-eb289097
5•alsetmusic•16m ago•0 comments

Microsoft 365 Crawls Back to Life After a 24-Hour Outage

https://www.wired.com/story/microsoft-365-crawls-back-to-life-after-a-24-hour-outage/
6•ksec•18m ago•0 comments

Nvidia Allegedly Engineered Scarcity by Funding AI Startups to Buy Its GPUs

https://www.techpowerup.com/354814/nvidia-allegedly-engineered-scarcity-by-funding-ai-startups-to...
7•speckx•21m ago•0 comments

Beating the Frontier on NetHack

https://antithesis.com/blog/2026/nethack/
2•nwjsmith•23m ago•0 comments

Genie Agents now analyze more data sources to transform your work

https://www.databricks.com/blog/enterprise-context-action-genie-agents-now-analyze-more-data-sour...
3•gmays•26m ago•0 comments

Show HN: Open-Source Version of Cyclon: Phone where AI is the interface?

https://opencyclone.vercel.app/
2•Exorust•28m ago•0 comments

GLP-1 Drugs May Work Differently in Women

https://www.medpagetoday.com/endocrinology/obesity/120124
7•paulpauper•42m ago•0 comments

Sam Bankman-Fried would have made nearly $40B in Anthropic IPO

https://www.ft.com/content/0ef40ac9-6d01-428f-98c8-a52bf5b9a787
4•lvl256•44m ago•3 comments

Airtasker Third-Party Security Incident

https://support.airtasker.com/hc/en-au/articles/64280722804505-November-2026-Third-Party-Security...
2•mmahemoff•44m ago•1 comments

US loses measles-free status after continued spread of the disease

https://www.reuters.com/world/us-loses-measles-free-status-after-continued-spread-disease-wsj-rep...
4•1659447091•45m ago•2 comments

Ggml v1.0.0

https://github.com/ggml-org/ggml/releases/tag/v1.0.0
5•cobychapple•46m ago•0 comments

Nvidia director sold nearly $1B in stock weeks before the Jensen Huang scandal

https://finance.yahoo.com/markets/stocks/articles/nvidia-director-sold-nearly-1b-160000846.html
28•LopRabbit•53m ago•8 comments

Security Agencies Worldwide Found to Use Ad-Based Surveillance System

https://citizenlab.ca/security-agencies-worldwide-found-to-use-ad-based-surveillance-system/
15•billybuckwheat•59m ago•0 comments

Save the Parasites

https://knowablemagazine.org/content/article/living-world/2026/save-the-parasites
3•gmays•1h ago•0 comments

Llama.cpp hits v1.0 with a native app for macOS

https://huggingface.co/blog/ggml-org/llama-cpp-v1
4•shubham0204•1h ago•2 comments

Elephants Found to Be Increasingly Isolated Leading to Fractured Social Networks

https://today.ucsd.edu/story/elephants-found-to-be-increasingly-isolated-leading-to-fractured-soc...
26•gmays•1h ago•2 comments

Of Course Americans Blamed the Ground Stop on AI

https://www.theatlantic.com/ideas/2026/11/faa-grounding-flights-cancelled/689444/
4•paulpauper•1h ago•1 comments

Get Ready for More Chaos

https://www.theatlantic.com/ideas/2026/11/flights-grounded-why/689446/
3•paulpauper•1h ago•0 comments

Little Red Riding Hood's Quest

https://ai-quest.lusion.co/
3•lovegrenoble•1h ago•0 comments

Core Principles

https://lopespm.com/notes/2026/11/14/core-principles.html
3•lopespm•1h ago•0 comments

V&a Storehouse

https://lopespm.com/notes/2026/11/14/v_a_storehouse.html
2•lopespm•1h ago•0 comments

A proof of the Aaronson‑Ambainis conjecture

https://psi.inc/research/aaronson-ambainis/
2•vismit2000•1h ago•0 comments

GigChain Keys – a free, open-source MainStage alternative

https://github.com/xDarkzx/GigChain-Keys
3•DanHodgetts•1h ago•0 comments

FAA lifts ground stop at U.S. airports

https://www.washingtonpost.com/transportation/2026/11/13/faa-grounds-flights-all-us-airports-citi...
7•lisper•1h ago•1 comments

The Iron Pentacle

https://faerywolf.com/iron-pentacle/
2•PaulHoule•1h ago•0 comments

SSH Keys in the Secure Enclave, Without an Agent

https://lograker.app/blog/secure-enclave-ssh-keys-without-an-agent
2•moonlighter•1h ago•1 comments