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

OpenAI says its AI disproved the Exponential Time Hypothesis

https://theainewsreport.com/2026-10-27-openai-exponential-time-hypothesis-false-runtime-lean-expl...
1•titusblair•1m ago•0 comments

Show HN: Cryo – A language whose programs live forever

https://play.endothermic.ai/
1•zwad3•1m ago•0 comments

Disroot Is Down Bad

https://disroot.org/
1•aframemodular•1m ago•1 comments

Show HN: SlopIt – A blog your coding agent runs

https://slopit.io/
1•asenna•2m ago•0 comments

The Harms of Modern Lighting and the Fight Bring Back Incandescent Bulbs

https://www.midwesterndoctor.com/p/the-hidden-harms-of-modern-lighting
1•bilsbie•2m ago•0 comments

GPT-6.1 Terra's price cut, recomputed for a cache-heavy agent session

https://theainewsreport.com/2026-10-27-gpt-6-1-terra-pricing-agent-cost-explained.html
1•titusblair•2m ago•0 comments

Feynman's wobbling plate and Threshold Concepts behind modern AI

https://zairai.substack.com/p/feynmans-wobbling-plate-and-8-core
1•luisvalerio•3m ago•1 comments

Anduril BlueChip

https://www.anduril.com/bluechip
2•ronfriedhaber•3m ago•0 comments

A select should tell you something

https://alfy.blog/2026/10/27/a-select-should-tell-you-something.html
1•garyhtou•4m ago•0 comments

AI Slop, Vibe-Coded Clones and Indie Plugins

https://www.audiodamage.com/blogs/news/slopapotamus-ai-and-the-indie-plugin-business
1•PaulDavisThe1st•4m ago•0 comments

Show HN: ChemX – Architectural AST linter for LLM context bloat, AI slop

https://chemicalx.xophz.com
1•DoItForTheXP•7m ago•0 comments

The Fertility of an Idea: tracing the discovery lineage of optogenetics

https://www.amplifypartners.com/blog-posts/the-fertility-of-an-idea
1•itunpredictable•7m ago•0 comments

Show HN: Shobr – Job seach CLI via browser automation

https://github.com/sebastiancarlos/shobr
1•httbs•8m ago•0 comments

Show HN: Pagelapse – watch a web page's decade

https://pagelapse.geekplux.com/
1•geekplux•9m ago•1 comments

Prbot – an agent that fixes PR bugs and proves the fix in a Docker sandbox

https://github.com/ayanag5076-commits/prbot
1•Ayanag7•9m ago•0 comments

Show HN: Gifup – GIF tools that run in the browser (ffmpeg.wasm)

https://gifup.com/
1•alexdev2•10m ago•0 comments

Show HN: Sectr – Serverless backend platform for easy deployment of AI agents

https://sectr.dev
2•donald_pinckney•10m ago•0 comments

A topological model for provability logic

https://www.johndcook.com/blog/2026/10/06/godel-lob/
4•surprisetalk•10m ago•0 comments

Data Recovery CEO Indicted for Allegedly Scamming Ransomware Victims

https://www.propublica.org/article/zohar-pinhasi-monstercloud-ransomware-indictment
8•hn_acker•10m ago•3 comments

Show HN: Snippet – An Always-On AI Agent

https://github.com/wacht-platform/snippet-service
1•snipextt•11m ago•0 comments

Researchers Unearth Fossil Evidence of First Marine Amphibian

https://www.ucdavis.edu/curiosity/news/researchers-unearth-fossil-evidence-first-fully-marine-amp...
3•gmays•15m ago•0 comments

Kechup – a simple CLI task tracker for AI agents

https://github.com/erogol/kechup
2•erogol•19m ago•0 comments

Gemini 4 Argon: The Model and Safety Cards

https://thezvi.wordpress.com/2026/10/26/gemini-4-argon-the-model-and-safety-cards/
2•gmays•19m ago•0 comments

Mechy

https://www.mechy.ai/
2•FabianArevalo•20m ago•0 comments

Why Pencils Are Yellow

https://mossandfog.com/why-are-pencils-yellow/
2•bookofjoe•21m ago•0 comments

Anthropic illegally trained Claude with Stanford professors' books

https://stanforddaily.com/2026/10/27/professors-books-pirated-to-train-claude/
7•car•21m ago•1 comments

Was She Ever Found?

https://kivuforyou.vercel.app/
1•akinaki•24m ago•0 comments

Show HN: City Drones Game

https://citydrones.app/
1•beerglass•25m ago•0 comments

Show HN: Marelleo, an open-source story box I built for my kids using ESP32

https://zebra.rodeo/en/blog/marelleo/
1•foOg•25m ago•0 comments

Hy-Nomas, Tencent's new open-source world model you can steer with text

https://huggingface.co/tencent/Hy-Nomas
3•sgiannopoulos•26m ago•0 comments