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

Tinymongo

https://tinymongo.org/
1•schapman1974•2m ago•1 comments

GitHub Status – Disruption with Copilot Code Review

https://www.githubstatus.com/incidents/zw1hbx2yyhvr
1•kyisaiah47•2m ago•0 comments

Where Will RISC-V Be in 20 Years? Poll Results

https://thechipletter.substack.com/p/where-will-risc-v-be-in-20-years
1•rbanffy•2m ago•0 comments

Show HN: Layerz – Native App Designer

https://www.layerz.app/
1•jaeyoung_choi•4m ago•0 comments

Bitcoin mining data center condemned after leaking 3M gallons of water

https://www.tomshardware.com/tech-industry/data-centers/bitcoin-mining-data-center-condemned-afte...
2•rbanffy•4m ago•0 comments

How algorithms are making our environments bland

https://theconversation.com/how-algorithms-are-making-our-environments-bland-289917
1•geox•4m ago•0 comments

An off the self BYOA platform

1•theguysudo•5m ago•0 comments

The Man That Invented the Popup

https://galratner.substack.com/p/the-man-that-invented-the-popup
1•blartpaul•6m ago•0 comments

Washington Post says Piker used AI generated audio but admits it has no proof

https://twitter.com/washingtonpost/status/2096304873557877132
2•slowin•7m ago•0 comments

All of Claude's "Never Do This" in Fable 5.1 System Prompt

https://artifactbin.dev/@vivek/MLWEU6-claude-s-nevers
2•nuwandavek•7m ago•0 comments

Connecting Kubernetes dependencies to application telemetry

1•chipfixer•7m ago•0 comments

Big Brother is going to college: The federal plan to track students for life

https://www.washingtonexaminer.com/op-eds/4710733/college-transparency-act-student-privacy-risks/
3•iamnothere•9m ago•1 comments

Apex City – Build a city that works

https://apexcity.reallexi.io
1•m22386•11m ago•0 comments

FDA Recalls IV Fluids over Possible Fiberglass, Stainless Steel Contaminants

https://www.healthline.com/health-news/fda-recalls-iv-saline-fluids-fiberglass-stainless-steel-co...
4•speckx•11m ago•0 comments

The Association for Computational Heresy

https://sigbovik.org/
2•jerlendds•14m ago•1 comments

Apple and Atari Connections – By Paul Lefebvre – Goto 10

https://www.goto10retro.com/p/apple-and-atari-connections
2•rbanffy•18m ago•0 comments

Ask HN: (Why) Was the LLM breakthrough useful for images, audio, etc.?

1•rogerrogerr•18m ago•0 comments

Jelly Baby

https://jelly.scottsun.io
1•memalign•20m ago•0 comments

Guess the Song in 0.1 Seconds

https://playdaily.org/songless
5•Hemmaamlin•20m ago•1 comments

Sunday programmer emergency: production is down. (quiz)

https://textlog.cc/post/3267?hn
2•stagas•20m ago•0 comments

OpenAI: We monitor internal coding agents for misalignment

https://openai.com/index/how-we-monitor-internal-coding-agents-misalignment/
2•lukaspetersson•23m ago•0 comments

Big brother watch report reveals free speech is in "downward spiral" in the UK

https://bigbrotherwatch.org.uk/press-releases/campaigners-urge-burnham-to-review-uks-anti-free-sp...
3•DeepLogin•24m ago•1 comments

Feature complete, as long as you add more features

https://site.sebasmonia.com/posts/2026-09-06-feature-complete--as-long-as-you-add-more-features.html
1•meetpateltech•24m ago•0 comments

Show HN: Robot-duck soccer in the browser, powered by MuJoCo and learned walking

https://fpvsim.com/sim-duck
1•mosfets•25m ago•0 comments

.gitignore Generator by Codra

https://codra.run/free-tools/gitignore-generator
2•devarshishimpi•27m ago•0 comments

Homelab deployments: a tutorial made of prompts

https://tomjohnell.com/homelab-deployments-a-tutorial-made-of-prompts/
2•tjohnell•28m ago•0 comments

Ask HN: How to prepare for coding/system design interviews on a mobile phone

1•k_dev•30m ago•0 comments

AI Is Making Us Less Human

https://www.theatlantic.com/ideas/2026/09/open-ai-consciousness-morality/688535/
2•paulpauper•31m ago•1 comments

Alzheimer's trial to test drug on people without symptoms to test prevention

https://www.theguardian.com/society/2026/sep/05/alzheimers-trial-drug-dementia
4•borski•32m ago•1 comments

Ask HN: What are your predictions for the rest of 2026?

3•roschdal•34m ago•2 comments