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

Show HN: Axiom: The Functional Systems Langauge

https://axiomlang.software/
1•chrispaig3•3m ago•0 comments

GhostAction attack using GitHub and GitLab lookalike domains

https://opensourcemalware.com/blog/ghostaction-attack-escalates
1•6mile•5m ago•0 comments

Brockovich AI Datacenter Reporting: AI Data Centers Across the United States

https://www.brockovichdatacenter.com/
1•tigerlily•7m ago•0 comments

Helix Users Watch Maintainer Hover over Merge Button for Third Consecutive Month

https://www.reddit.com/r/HelixEditor/comments/1x1zrmg/helix_users_watch_maintainer_hover_over_merge/
1•DASD•7m ago•0 comments

How Strong Is the Strong Force?

https://cerncourier.com/how-strong-is-the-strong-interaction/
1•EA-3167•8m ago•0 comments

Anthropic's AI gave Philadelphia police a fake tip about an unsolved homicide

https://www.theverge.com/ai-artificial-intelligence/1009090/anthropic-fake-homicide-information-p...
3•sbulaev•14m ago•0 comments

Has the Autonomous Trucking Revolution Arrived?

https://phenomenalworld.org/analysis/has-the-autonomous-trucking-revolution-arrived/
1•demonsthenes•24m ago•0 comments

11 of 23 Core Open Source Projects Run on 1 or 2 People

https://linuxstans.com/11-of-23-core-open-source-projects-run-on-1-or-2-people/
3•dxs•25m ago•1 comments

Clinical trial of a prion disease drug candidate begins enrolling participants

https://www.broadinstitute.org/news/clinical-trial-prion-disease-drug-candidate-begins-enrolling-...
1•luu•28m ago•0 comments

Absolute System Priority (Short Tech Satire)

1•PlasmaTop•34m ago•0 comments

Email-Like Inbox for Agentic Engineering

https://twitter.com/plannotator/status/2108589088139886769
1•ramoz•39m ago•0 comments

Scaling the Burden of Proof to the Cost a Claim Imposes

https://zenodo.org/records/23271710
1•skwasimin•39m ago•1 comments

Show HN: Clanking – Turn your coding agents' activity into a subtle soundscape

https://github.com/chrchr/clanking
1•chrchr•41m ago•0 comments

Anthropic and OpenAI wargaming public and political revolt after AI catastrophe

https://decrypt.co/380621/openai-anthropic-quietly-rehearsing-ai-catastrophe
3•thoughtpeddler•44m ago•0 comments

Faster Python startup with lazy imports

https://lemire.me/blog/2026/10/09/faster-python-startup-with-lazy-imports/
1•chmaynard•48m ago•0 comments

The logarithms of rational numbers have irrationality exponent 2 [pdf]

https://jdb19937.github.io/log-irrationality-measure/logmeasure.pdf
1•jdb1729•49m ago•1 comments

HostMath – Airbnb profit calculator with break-even occupancy and payback

https://hosttmath.ctonew.app/?src=hn
2•Hostmath•53m ago•0 comments

Compiling Rust to readable C with Eurydice

https://lwn.net/Articles/1055211/
1•peter_d_sherman•53m ago•0 comments

YouTube Video Shorts for PC

https://chromewebstore.google.com/detail/youtube-video-shorts-para/egnckcecfjkfefjbpdkhgjgggdhpgina
1•DevFunny•53m ago•0 comments

AI system submits false homicide tip to Philadelphia police

https://www.washingtonpost.com/technology/2026/10/09/ai-system-submits-false-homicide-tip-philade...
3•reaperducer•57m ago•1 comments

Argument from Ignorance

https://en.wikipedia.org/wiki/Argument_from_ignorance
2•suopspaces•58m ago•0 comments

Salesforce: AIForce Is Officially SIForce

https://twitter.com/Benioff/status/2108658674118111442
3•2OEH8eoCRo0•58m ago•2 comments

DNA Typewriter records cell lineage history of mouse: zygote–late organogenesis

https://www.science.org/doi/10.1126/science.ael0508
1•bookofjoe•59m ago•0 comments

The gene-regulatory evolution of the human skeleton

https://www.nature.com/articles/s41586-026-11053-x
1•wslh•1h ago•0 comments

Show HN: Programming Language Wars: a 2d game about language 0xbeef

http://github.avestura.dev/pl-wars/
1•avestura•1h ago•0 comments

A game where you rotate buildings to change gravity

https://store.steampowered.com/app/4590270/Fallgrade/
1•vladkudas•1h ago•0 comments

Jev Playground

https://jevplayground.com
1•RyanShook•1h ago•0 comments

Maybe the Rapture Is Here

https://www.noahpinion.blog/p/maybe-the-rapture-is-already-here
1•nozzlegear•1h ago•0 comments

Building an RL environment and dataset for legal

https://github.com/decover-tech/frontier-legal
1•ravitandon1990•1h ago•0 comments

Rewriting Prime Agent in Rust

https://www.primeintellect.ai/blog/prime-agent-rust
3•piotrgrabowski•1h ago•0 comments