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

Orbital golf 2k27: guide your ship through space

https://orbitalgolf.lol/
1•idiomltd•1m ago•0 comments

We reverse-engineered Telegram channel IDs, now they tell us each channel's age

https://tgscope.io/rnd/telegram-channel-id-clock
1•coubri•1m ago•0 comments

Ada Lovelace Answered the Big Questions About A.I

https://www.nytimes.com/2026/10/05/opinion/ada-lovelace-ai.html
1•uxhacker•5m ago•0 comments

WTF Is Going on with Marino Wijay [audio]

https://www.arresteddevops.com/wtf-is-going-on/
1•mooreds•6m ago•0 comments

High Diesel Prices Bankrupted 16 Trucking Companies in Just 30 Days

https://www.thedrive.com/news/high-diesel-prices-bankrupted-16-trucking-companies-in-just-30-days
2•speckx•6m ago•0 comments

Don't Throw Away Your Old Laptop – macOS Might Surprise You

https://www.youtube.com/watch?v=AQVd39nt_CY
1•cable2600•12m ago•0 comments

Googlebook

https://store.google.com/category/laptops?hl=en-US
2•runamuck•16m ago•1 comments

I got tired of asking "what do you mean?" on every bug report

https://twitter.com/tejashaveridev/status/2107251170725003713
1•TejasHaveri•21m ago•1 comments

Daegun v1.2.0 – Big Update

https://github.com/zztaeha/daegun/releases/tag/v1.2.0
1•silly-tae•22m ago•0 comments

The AI Buildout Has Turned into a Doom Loop

https://bird.makeup/users/gnoble79/statuses/2107068301004210338
1•doener•22m ago•0 comments

Wikipedia operator says OpenAI's 'rogue' bots may be linked to a May outage

https://www.theverge.com/news/1004929/wikipedia-openai-rogue-bots-wikimedia-foundation-outage
2•sbulaev•24m ago•0 comments

Fraudulent research is an accelerating problem

http://deevybee.blogspot.com/2026/08/acceleration-of-arms-race-between.html
1•t0mpr1c3•25m ago•0 comments

XCOR launches to trace outages in minutes. It still pages engineers

https://thenewstack.io/cortex-xcor-ai-observability/
2•geoffbp•28m ago•0 comments

AI Tutoring with Khanmigo in a Two-Year School Experiment

https://edworkingpapers.com/ai26-1551
8•bryan0•31m ago•2 comments

T – Reproducible Pipelines for Polyglot Data Science

https://tstats-project.org/
1•carnevalem•33m ago•0 comments

Show HN: Headline Arena – public forecasting records for AI agents

https://headlinearena.com
1•kopei•36m ago•0 comments

Show HN: Cluttersignal, a second opinion on any email or link you get

https://clutterstrike.com/
1•sourdoughy•36m ago•0 comments

A story about Magic (Jargon File)

https://users.cs.utah.edu/~elb/folklore/magic.html
2•voidnullvalue•37m ago•1 comments

Strategic Update, October 1, 2026: Center for Human Technology

https://www.humanetech.com/strategic_update_100126
1•rdhyee•47m ago•0 comments

Design Systems for AI Agents (Luke Wroblewski)

https://www.lukew.com/ff/2164/design-systems-for-ai-agents
1•bpierre•52m ago•1 comments

Show HN: Cold B2B email should be free (FlyHedwig)

https://flyhedwig.com
1•gabceboli•53m ago•4 comments

Samon: Designing a Zen Garden Raking Puzzle

https://gwern.net/doc/design/2026-10-03-gwern-samon.html
6•networked•56m ago•1 comments

Serena OS: Modern operating system design meets Amiga computers

https://github.com/dplanitzer/Serena
2•doener•56m ago•1 comments

Brain does not process information and it is not a computer Essays

https://aeon.co/essays/your-brain-does-not-process-information-and-it-is-not-a-computer
2•Anon84•57m ago•0 comments

Show HN: Open Twin, a modelica-based simulator for real-world physical systems

https://open-twin.netlify.app/w/d5e756e1-4b43-415b-a10c-bb83fb98fe55
1•tgirotto•57m ago•0 comments

Formally deriving programs from specifications (Bird-Meertens) using Lean 4

https://satnam6502.github.io/bird-meertens/
1•matt_d•1h ago•0 comments

"Rising cost of memory," Microsoft explains why Windows 11 will use less RAM

https://www.windowslatest.com/2026/10/04/rising-cost-of-memory-microsoft-explains-why-windows-11-...
5•TMWNN•1h ago•2 comments

The Output-Space Hypothesis:Enumerative Equivalence Checking for Tensor Programs

https://arxiv.org/abs/2609.19611
1•matt_d•1h ago•0 comments

Ask HN: Are there AI models for generating sounds based on a text and reference?

1•onemiketwelve•1h ago•0 comments

LLM SEO tools in 2026: what each one tracks

https://picked.so/blog/llm-seo-tools
1•shdalex•1h ago•0 comments