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

FeatureScript MCP Server: The Fastest Path to AI-Driven Design

https://www.onshape.com/en/blog/featurescript-mcp-server-enables-text-code-cad
1•hapax_legomena•5m ago•0 comments

Lord of the Rings fan fighting for a refund gets it from Google, sort of

https://www.polygon.com/lotr-lord-of-the-rings-digital-refund-google-denied/
2•HelloUsername•6m ago•0 comments

Say Less (agents are keeping score)

https://theterminalbet.com/p/say-less
1•drupeek•7m ago•0 comments

Claude users are mad that Anthropic's new watermarks will catch them using it

https://techcrunch.com/2026/08/12/some-claude-users-are-mad-that-anthropics-new-watermarks-will-c...
6•ashurandi•12m ago•1 comments

Agento: The missing dashboard for Claude Code

https://github.com/shaharia-lab/agento
1•shahariaa•12m ago•0 comments

The greatest story of promotion incentive hacking at FAANG

https://twitter.com/deedydas/status/2085953995525476597
2•tosh•16m ago•0 comments

A content integrity framework based on ML encoding

https://lyfe.ninja/news/introducing-blkseal-a-practical-trust-layer-for-digital-content/
1•lyfeninja•17m ago•0 comments

Google's AI Doctor Experiment Separates Conversation from Clinical Reasoning

https://ai-updates.net/google-video-doctor-separates-conversation-clinical-reasoning/
1•ashurandi•17m ago•0 comments

Rapid warming may tip AMOC at 2°C, slower warming may avert collapse

https://phys.org/news/2026-08-rapid-atlantic-circulation-2c-slower.html
2•maxboone•18m ago•0 comments

My MacBook can't divide by 20: an Apple Metal compiler bug

https://twitter.com/demircancelebi/status/2087844651847888898
1•demircancelebi•21m ago•0 comments

What we're learning about AI memory (and why most of it doesn't work yet)

https://www.reddit.com/r/staynimble/s/XKEYgCpwln
1•theaniketmaurya•22m ago•0 comments

Sherlock – AI Face Search

https://play.google.com/store/apps/details?id=com.popyakter.sherlock&hl=en
1•pranto12345•23m ago•1 comments

The Odyssey running on a Psion 5mx – as Nolan intended

https://www.reddit.com/r/OldHandhelds/s/AmzMAZTzg7
1•dterm•23m ago•0 comments

Mojo in Mid-2026: From Python-Inspired Experiment to Production Systems Language

https://www.reddit.com/r/AgentContext_dev/comments/1vn5xef/mojo_in_mid2026_from_pythoninspired_ex...
1•javaeeeee•28m ago•0 comments

Operational Guidelines for DNS Transport in Mixed IPv4/IPv6 Environments

https://datatracker.ietf.org/doc/rfc10001/
1•m_montazeri•31m ago•0 comments

FoodGuessr

https://www.foodguessr.com
1•choult•33m ago•1 comments

Potatoes 'boil' in the ground as record heatwave sweeps across swathes of Asia

https://www.theguardian.com/world/2026/aug/13/asia-heatwave-south-korea-potatoes-boil-ground-reco...
3•akbarnama•36m ago•0 comments

Cyberattack on Taiwan Exposes the Execution-Finality Gap

https://zenodo.org/records/21915825
1•sangamdas1982•37m ago•0 comments

NightmareEclipse Publishes New Windows Defender Zero Day

https://cyberplace.social/@GossiTheDog/117082623896479140
2•_tk_•40m ago•0 comments

Romania to shut down nuclear plant due to low Danube level

https://www.lemonde.fr/en/international/article/2026/08/13/romania-to-shut-down-nuclear-plant-due...
2•geox•43m ago•0 comments

Lawsuit fights Ellison-Trump corruption's harm to news outlets

https://freedom.press/issues/lawsuit-fights-ellison-trump-corruptions-harm-to-news-outlets/
3•abdelhousni•45m ago•0 comments

AI 2027 Tracker: Tracking predictions from the AI 2027 scenario against reality

https://ai2027-tracker.com/
2•merksittich•49m ago•0 comments

Gnome Shell Design Dreams

https://blogs.gnome.org/shell-dev/2026/08/11/gnome-shell-design-dreams/
1•birdculture•49m ago•0 comments

Terminate-and-Stay-Resident Program

https://en.wikipedia.org/wiki/Terminate-and-stay-resident_program
2•Bluestein•53m ago•0 comments

Rate of climate change affects stability of the AMOC

https://www.eurekalert.org/news-releases/1139863
2•TechTechTech•55m ago•0 comments

List of Unsolved Problems in Mathematics

https://en.wikipedia.org/wiki/List_of_unsolved_problems_in_mathematics
2•frozenseven•57m ago•0 comments

Affordable AI+human insight helped us close 40yr sporadic group Galois problem

https://www.shaowuzhang.com/files/how-we-found-m23.pdf
3•oliculipolicula•59m ago•0 comments

Show HN: Wala Vibes – scene-based radio for nostalgic Indian music

https://walavibes.wtf
1•yunweiguo•1h ago•0 comments

If I own Claude's outputs why can't I train my own model on them?

https://support.claude.com/en/articles/12326764-can-i-use-my-outputs-to-train-an-ai-model
57•DarenWatson•1h ago•51 comments

After a lot of thought, we've decided to retire SvelteJobs

https://sveltejobs.com/
2•thunderbong•1h ago•0 comments