frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Which function definition keyword do you prefer, def or fn?

1•winwang•6mo 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•6mo 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•6mo 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•6mo 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•6mo ago
"def" is too generic.

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•6mo ago
Agreed

What's the point of learning functional programming?

https://blog.daniel-beskin.com/2025-11-13-point-of-learning-fp
1•imjacobclark•1m ago•0 comments

I Cloned a YC startup in 3 hours

https://kanjieight.vercel.app/
1•Mikecraft•3m ago•1 comments

Qiskit – software stack for quantum computing

https://www.ibm.com/quantum/qiskit
1•thinkingemote•4m ago•0 comments

Cloud Neocloud Lambda's vision of the future: 'One GPU, one person'

https://www.fierce-network.com/cloud/neocloud-lambdas-vision-future-one-gpu-one-person
1•oavioklein•9m ago•0 comments

Idempotency Keys

https://www.morling.dev/blog/on-idempotency-keys/
1•ingve•9m ago•0 comments

Why AI Safety Won't Make America Lose the Race with China

https://www.astralcodexten.com/p/why-ai-safety-wont-make-america-lose
2•pseudolus•12m ago•0 comments

Image Diffusion Models Exhibit Emergent Temporal Propagation in Videos

https://arxiv.org/abs/2511.19936
1•50kIters•13m ago•0 comments

The Thanksgiving Special

https://medium.com/luminasticity/the-thanksgiving-special-cc1f9b6fc9d5
1•bryanrasmussen•13m ago•0 comments

How to Run Profitable Pricing Experiments?

https://cleancommit.io/blog/pricing-experiments/
1•mrkaluzny•14m ago•0 comments

FAA probes Amazon after delivery drone snaps internet cable in Texas

https://www.reuters.com/business/retail-consumer/faa-probes-amazon-after-delivery-drone-snaps-int...
2•pseudolus•22m ago•0 comments

Can You Build a Product with Hard Single-Stack Developers?

https://oneknightinproduct.substack.com/p/can-you-really-build-a-product-with
1•imjacobclark•23m ago•0 comments

ML LLVM Project: Compiler Infrastructure for ML-Driven Optimizations

https://github.com/IITH-Compilers/ml-llvm-project
2•ingve•25m ago•0 comments

Lightweight Linux-compatible kernel written in Rust

https://github.com/maestro-os/maestro
1•coolcoder613•26m ago•0 comments

AISDR Human-First Alternative

https://dealmayker.com/alternative/aisdr
1•aleksam•26m ago•0 comments

SoftBank's 40% Slide from Peak Shows Worry over Giant OpenAI Bet

https://www.bloomberg.com/news/articles/2025-11-26/softbank-s-40-slide-from-peak-reflects-jitters...
3•zerosizedweasle•28m ago•0 comments

Plinko PIR Tutorial

https://vitalik.eth.limo/general/2025/11/25/plinko.html
1•sygma•28m ago•0 comments

AutoITE – An Algorithm for Estimating ITE

https://github.com/HotProtato/AutoITE
1•HotProtato•29m ago•1 comments

Show HN: YTShortsDL: A Bulk Downloader Built for Shorts Content Repurposing

https://ytshortsdl.net/
1•Franklinjobs617•31m ago•1 comments

A Tsunami of Cogs

https://betterthanrandom.substack.com/p/a-tsunami-of-cogs
1•gmays•38m ago•0 comments

Linux Kernel Establishes Official AI Coding Guidelines

https://lunduke.substack.com/p/linux-kernel-establishes-official
5•amcclure•38m ago•1 comments

Neural Annealing: Directing Psychedelic Trips Towards Healing

https://psychotechnology.substack.com/p/neural-annealing-directing-psychedelic
1•eatitraw•39m ago•0 comments

Show HN: Constitutional AI Agent OS (governance enforced at kernel level)

https://github.com/kimeisele/steward-protocol
2•harekrishna108•39m ago•1 comments

You're a Bad Parent but You Don't Need to Be

https://nurtureos.ai/
2•hamandcheese•39m ago•1 comments

Cloudflare Rewrote Their Core in Rust, Then Half of the Internet Went Down

https://lunduke.substack.com/p/cloudflare-rewrote-their-core-in
2•amcclure•40m ago•1 comments

Color.io Is Going Offline

4•hilti•42m ago•1 comments

Antigravity: More marketing hype than real IDE progress

https://visualstudiomagazine.com/articles/2025/11/21/googles-antigravity-ide-sparks-forking-debat...
1•birdculture•45m ago•0 comments

Private Debt Defaults Set to Climb as Middle-Market Firms Wobble

https://www.bloomberg.com/news/articles/2025-11-25/private-debt-defaults-set-to-climb-as-middle-m...
1•zerosizedweasle•47m ago•0 comments

Show HN: RapGenerator – Turn lyrics/ideas into full rap tracks (no music skills)

https://rapgenerator.online/
1•chenliang001•48m ago•0 comments

Microplastics pose a human health risk in more ways than one

https://news.exeter.ac.uk/research/microplastics-pose-a-human-health-risk-in-more-ways-than-one/
1•JeanKage•50m ago•0 comments

Libinput 1.30 Released with Support for Writing Plug-Ins in Lua

https://www.phoronix.com/news/libinput-1.30-Released
1•todsacerdoti•50m ago•0 comments