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: A utility microservice for human trust

https://futex.rodmena.co.uk/
1•rodmena•1m ago•0 comments

The 3dfx Voodoo Turns 30 – interview with cofounder Ross Smith

https://www.club386.com/3dfx-voodoo-history-ross-smith-interview/
1•nickt•1m ago•0 comments

Mozilla met with Microsoft to discuss their harmful design practices

https://www.reddit.com/r/firefox/comments/1wzzk6l/mozilla_met_with_microsoft_to_discuss_their/
2•botanical•7m ago•1 comments

A 100x faster* alternative to homebrew

https://github.com/zerobrewhq/zerobrew
1•cachebag•13m ago•0 comments

Was the Human Gut Healthier in Ancient Times?

https://www.nytimes.com/2026/10/07/science/microbiome-evolution-hadza-tsimane.html
1•gumby•17m ago•1 comments

Paper Mono Typeface

https://paper.design/mono
2•miguel-muniz•22m ago•1 comments

Application compatibility layers are there for the customer (2010)

https://devblogs.microsoft.com/oldnewthing/20100311-00/?p=14643/
1•crispinh•25m ago•0 comments

A Categorical Analysis of LLMs and the Symbol Grounding Problem (2025)

https://arxiv.org/abs/2512.09117
2•rockwindmemento•26m ago•0 comments

Can we prove LLMs are not conscious?

https://machines.tivra.com/human
1•DesaiAshu•27m ago•1 comments

Make717, Lancaster PA's First Makerspace

https://www.make717.org/
1•linuxkernal•28m ago•0 comments

Musk, Jensen Huang, Lisa Su Awarded National Medal of Science

https://www.foxnews.com/politics/first-fox-elon-musk-heads-back-white-house-trump-marks-prestigio...
2•osnium123•40m ago•1 comments

Practical use cases for OpenAI's Decisions API

https://vercel.com/i/openai-decisions-api-use-cases
1•flashbrew•40m ago•0 comments

Humanity's Last Problem

https://benhylak.substack.com/p/humanitys-last-problem
2•namanbhulawat•41m ago•1 comments

Show HN: A satirical yet useful employee survey app for tolerable workplaces

https://tolerableworkplace.com/
2•joewhale•44m ago•0 comments

Letterman – a roguelike Scrabble x balatro game

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

Dosbox-x OS-free version because of California age verification laws

https://github.com/joncampbell123/dosbox-x/issues/6337
1•bananaboy•51m ago•1 comments

Show HN: Rhyven – A marketplace for agents

https://rhyvenai.com
1•calebrhyven•51m ago•0 comments

The AI Pascal's Wager

https://ploum.net/2026-10-01-pascal_wager.html
2•teichmann•58m ago•0 comments

What Every Airline Can Learn About Proactively Shaping Revenue

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=7152080
1•mooreds•1h ago•0 comments

April: APL as a DSL in Common Lisp

https://github.com/phantomics/april
2•so-cal-schemer•1h ago•1 comments

How the Billions from the Opioid Settlement Are Being Spent

https://www.newyorker.com/news/the-lede/how-the-billions-from-the-opioid-settlement-are-being-spent
2•littlexsparkee•1h ago•1 comments

Don't let a misunderstanding distract you from your goals

https://herbertlui.net/dont-let-a-misunderstanding-distract-you-from-your-goals/
1•herbertl•1h ago•0 comments

Regularized RSI

https://regularized-rsi.com/
1•gregorymichael•1h ago•0 comments

SERV – The SErial RISC-V CPU

https://github.com/olofk/serv
1•kristianpaul•1h ago•0 comments

Tensorlake NPM package and repo compromised

https://github.com/tensorlakeai/tensorlake/issues/1014
3•varunsharma07•1h ago•0 comments

A DuckDB Database with No Data in It

https://duckdb.org/2026/10/07/view-only-mode
1•eigenBasis•1h ago•0 comments

Retrofitting language models to operate over bytes

https://www.nature.com/articles/s41586-026-11111-4
2•theanonymousone•1h ago•0 comments

Deveggs – a self evolving developer eggsperience

1•kunggaochicken•1h ago•0 comments

The mysterious pneumonia in Russia deserves attention, not panic

https://www.statnews.com/2026/10/06/russia-plague-reports-pneuomonia-siberia-expert-calm/
4•EA-3167•1h ago•1 comments

Where Are the Builders?

https://near.blog/where-are-the-builders/
3•yarapavan•1h ago•1 comments