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: MNIST64 – 99.5% accuracy MNIST BNN on a stock Commodore 64

https://github.com/jarnoh/mnist64
1•jmagic•41s ago•0 comments

"AI Models Now Introduce Safety Risks in the Physical World"

https://www.micro1.ai/research/ai-models-now-introduce-safety-risks-in-the-physical-world
1•MilnerRoute•1m ago•0 comments

Julian Assange: I'm Back

https://twitter.com/JulianAssange/status/2100571158777045331
1•hackandthink•1m ago•0 comments

The Norse Wanderer Pirate Apple ][ 1986 BBS Is Online

https://norsewanderer.com/
1•mheilemann•2m ago•0 comments

Speaking with the Mind – Neuralink [video]

https://www.youtube.com/watch?v=_j806JHhCRo
1•Audiophilip•2m ago•0 comments

AI is just another programming tool

https://norsewanderer.com/blog/blog1.html
1•mheilemann•4m ago•0 comments

Lemmings: Russian Persona Provisioning and Management for Active Measures

https://dti.domaintools.com/research/lemmings-russian-persona-provisioning
2•dmarto•7m ago•0 comments

A year of Omarchy Linux as my daily driver

https://www.ssp.sh/blog/omarchy-linux-quattro/
1•zazuke•8m ago•0 comments

The Void Job

https://yusufaytas.com/the-void-job
7•yusufaytas•8m ago•0 comments

Show HN: CUA-S1 – A System One Model for Computer Use

https://github.com/trycua/cua
1•frabonacci•14m ago•0 comments

How many times will my son see my parents?

https://countyourtimes.com/our-son
1•alexjray•14m ago•1 comments

Lawsuit Accuses Anthropic, OpenAI, SpaceXAI, Google of AI Pacing 'Collusion'

https://thehill.com/policy/technology/6099571-lawsuit-accuses-anthropic-openai-spacexai-google-of...
3•theanonymousone•15m ago•0 comments

Long Range WiFi [video]

https://www.youtube.com/watch?v=ZQ62gajj54Y
1•gus_massa•24m ago•0 comments

Four AI lab breaches were caused by a single underlying issue, Irregular says

https://thenextweb.com/news/irregular-four-labs-one-issue-disclosure-timeline-gemini
2•wickedwiesel•24m ago•0 comments

AndroAndroid Bench 2.0: Pushing the frontier with challenging long-horizon tasks

https://android-developers.googleblog.com/2026/09/android-bench-2-long-horizon-tasks.html
1•simonpure•25m ago•0 comments

Same Intel X7 358H with Qwen3.5-9B: Xiaomi Book Pro 14 vs. MSI Prestige 14

https://grigio.org/panther-lake-qwen3-5-9b-on-the-same-core-ultra-x7-358h-xiaomi-book-pro-14-cach...
1•grigio•28m ago•0 comments

Can You Beat Jev?

https://antics.gg/p/side-out-94df7d
1•eric_khun•28m ago•0 comments

Show HN: VisionLaya: Jev with Vision capabilities

https://huggingface.co/thaitea/laya-vision-smolvlm-256m
1•someguy101010•30m ago•0 comments

AI Model Leaderboards

https://vercel.com/ai-gateway/leaderboards/models
1•__rito__•32m ago•0 comments

Object Storage and WAL: Lakebase Postgres for the Agentic Era

https://www.databricks.com/blog/object-storage-wal-lakebase-postgres-agentic-era
1•theanonymousone•34m ago•0 comments

Jobs Without LeetCode

https://noleet.lol/jobs
2•monological•35m ago•0 comments

The Hugging Face Hack Wasn't What It Was Cracked Up to Be

https://www.wsj.com/opinion/the-hugging-face-hack-wasnt-what-it-was-cracked-up-to-be-e00cf3fa
2•theanonymousone•35m ago•1 comments

ChatGPT-6 Astra cracks 108-year-old unsolved WWI German code for the first time

https://www.tomshardware.com/tech-industry/artificial-intelligence/chatgpt-6-astra-cracks-108-yea...
1•NordStreamYacht•35m ago•0 comments

Retro emojis: We had 'em in the 80s and 90s

https://dfarq.homeip.net/emoticons-in-the-80s-and-90s-we-had-em/
1•zdw•37m ago•0 comments

Show HN: CrabBoss, radio automation software

https://crabboss.vercel.app
2•sonyarianto•37m ago•0 comments

Researchers Observe First Real-Time Quantum Jump in Sound

https://thequantuminsider.com/2026/09/18/researchers-observe-first-real-time-quantum-jump-in-sound/
1•staindk•38m ago•0 comments

Destinations Map – Climate details for flyable 3,833 destinations

https://destinationsmap.com/
1•Flightmussy•38m ago•0 comments

Nine-Year-Old Spends $118K on YouTube Ads Using Father's Corporate Credit Card [video]

https://www.youtube.com/watch?v=SL8_lX4E6ME
1•scottmcdot•39m ago•0 comments

Openhighways – See UK traffic CCTV feeds

https://openhighway.fly.dev/
2•jamesdillondev•39m ago•0 comments

Show HN: Math Mania

1•meow101•41m ago•0 comments