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: Device kernels for gfx900 (Vega) in the radiance inference engine

https://github.com/Sophia-Thickums/radiance-gfx9
1•Sophia_Marie•45s ago•1 comments

Show HN: Minymaton – SQLite event based no polling token waste MCP message bus

https://github.com/immutlex-dev/minymaton
1•immutlex•51s ago•0 comments

Rene Haas to remain CEO of chipmaker Arm through 2033

https://www.reuters.com/business/arm-holdings-haas-extends-contract-lead-chip-firm-through-2033-2...
1•giuliomagnifico•1m ago•0 comments

Show HN: RailCall – Local Mac agent execution with zero API markup

https://railcall.ai/
1•patl4588•1m ago•0 comments

Nvidia: The Faustian Bargain

https://automatopia.substack.com/p/nvidia-the-faustian-bargain
1•nhp_fermi•1m ago•0 comments

Show HN: Pattern Dump, HTML-first style guides after Pattern Lab was archived

https://pattern-dump.design/
1•Birkoff•3m ago•0 comments

Don't Play Anthropic's Game

https://www.nytimes.com/2026/11/19/opinion/anthropic-ipo-ai-regulation.html
2•FinnLobsien•3m ago•0 comments

Whether Jensen Huang deserves his job back is Nvidia's business, not Trump's

https://thehill.com/opinion/national-security/6237471-jensen-huang-reinstated-after-trump-call/
1•ibn_khaldun•3m ago•0 comments

Show HN: MCPfolio – see which AI prompts recommend your MCP server

https://www.mcpfolio.com
1•DikshitMahanot•3m ago•0 comments

Watch out for hallucinated online guides [OSTechNix]

1•itsmoon•3m ago•0 comments

A fan game about Common Crawl

https://game.commoncrawl.org/
1•mellosouls•4m ago•0 comments

Never Mind About Jensen Huang's Downfall

https://nymag.com/intelligencer/article/never-mind-about-jensen-huangs-downfall.html
1•ibn_khaldun•6m ago•0 comments

A brief history of syslog timestamps

https://isc.sans.edu/diary/33530
2•titusblair•8m ago•0 comments

Old-school Linux desktops find fresh routes to Wayland

https://www.theregister.com/os-platforms/2026/11/23/old-school-linux-desktops-find-fresh-routes-t...
1•titusblair•8m ago•0 comments

Anthropic's Google Docs killer is almost here

https://chaosguru.substack.com/p/anthropics-google-docs-killer-is
1•rawgabbit•8m ago•0 comments

Superintelligence Is Arriving

https://twitter.com/alexandr_wang/status/2124636606959345776
2•United857•11m ago•1 comments

Tell HN: LinkedIn to block email and job title export starting in Dec

2•apparent•12m ago•0 comments

NYC Transit Fare Schemes: An illustrated history since 1873

https://nycfares.zeltser.com/
1•lennyzeltser•13m ago•0 comments

What makes science objective is not truth, and morality has it too

https://objectivecorrection.substack.com/p/objective-normativity
2•BNevik•14m ago•0 comments

Show HN: Claimseed, realistic but made-up medical bills for testing software

https://github.com/claimseed/claimseed
1•littlej•14m ago•1 comments

Chinese models do not overthink, Gemini 4 Neon does

https://micjm.com/blog/do-chinese-models-overthink-compared-to-american-ones/
2•seizethecheese•15m ago•0 comments

Supercharging Transformer Residual Connections

https://research.google/blog/supercharging-transformer-residual-connections/
1•Klaster_1•16m ago•0 comments

Jensen is back. And the market is way up. But things will never be the same

https://garymarcus.substack.com/p/breaking-jensen-is-back-and-the-market
1•only_in_america•18m ago•0 comments

Ask HN: Did Amazon Get Hacked?

3•lacoolj•18m ago•1 comments

The Most Important Charts in AI Are Wrong

https://www.rameznaam.com/p/the-most-important-charts-in-ai-are
1•gmays•19m ago•0 comments

Sarvam Dictate: fast, accurate dictation – Sarvam AI

https://www.sarvam.ai/blogs/sarvam-dictate
1•qainsights•19m ago•0 comments

Live Coordination of "Leonida" – PC Recompilation of the Xbox Version of GTA 6

https://github.com/ItsNotRexed/Leonida/issues/7694
1•embedding-shape•20m ago•1 comments

How to vibe code our SaaS

https://www.parabol.co/vibe-code-our-saas/
2•mattkrick•20m ago•1 comments

Show HN: Litoteca – A rock classifier using computer vision

https://github.com/jheisonMB/litoteca
1•JheisonMB•21m ago•0 comments

LLMs are developing filthy mouths

https://www.economist.com/science-and-technology/2026/11/18/llms-are-developing-filthy-mouths
1•theanonymousone•21m ago•0 comments