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

Building a 64-Bit OS from Scratch with Claude Code

https://isene.org/2025/11/SimplicityOS.html
1•birdculture•2m ago•0 comments

Cross-Compiling Common Lisp to WASM

https://turtleware.eu/posts/Common-Lisp-and-WebAssembly.html
1•jackdaniel•3m ago•0 comments

Breakdown of Lichess' annual expenses [video]

https://www.youtube.com/watch?v=oEbW1Lv1vus
1•fionnohGoDeo•3m ago•1 comments

Tech Titans Amass Multimillion-Dollar War Chests to Fight AI Regulation

https://www.wsj.com/tech/ai/tech-titans-amass-multimillion-dollar-war-chests-to-fight-ai-regulati...
4•thm•4m ago•0 comments

US Patent Office issues new guidelines for AI-assisted inventions

https://www.reuters.com/legal/government/us-patent-office-issues-new-guidelines-ai-assisted-inven...
1•isaacfrond•5m ago•0 comments

The Generational Burden

https://rodgercuddington.substack.com/p/the-generational-burden
1•freespirt•5m ago•1 comments

Download Snow Linux: The distro with a truly modern design.

https://file.pizza/download/bsyftq6n
1•telui•9m ago•0 comments

Officials Clashed in Investigation of Deadly Air India Crash

https://www.wsj.com/business/airlines/air-india-investigation-conflict-crash-36aed1ee
1•JumpCrisscross•12m ago•0 comments

Great Math Software: List of fun visual math programs

http://xahlee.info/math_software/mathPrograms.html
2•the-mitr•13m ago•0 comments

Better Mood – Journaling with sentiment analysis to track trends

https://better-mood.com/
1•Nukloop•18m ago•0 comments

Cyber-Sleuth Cliff Stoll: How a Mad Genius Exposed Moscow's Hacker Spies

https://spyscape.com/article/how-an-astronomer-unraveled-the-worlds-first-cyber-attack
1•thunderbong•20m ago•0 comments

CME Data-Center Issue Hits Options, Futures Trading

https://www.wsj.com/finance/cme-options-futures-trading-halted-amid-data-center-issue-16e96ed1
1•mhh__•23m ago•0 comments

How Cashfree Payments Built AI-Led Video KYC

https://tech.cashfree.com/how-cashfree-payments-engineered-indias-most-reliable-ai-powered-video-...
1•shritama_saha•25m ago•1 comments

What's the most surprisingly useful thing you've discovered ChatGPT can do?

https://old.reddit.com/r/ChatGPT/comments/1p8linl/whats_the_most_surprisingly_useful_thing_youve/
1•mellosouls•28m ago•0 comments

Fund Teams Can Build a Compliance Tracker Inside Taghash

https://taghash.io/blog/how-fund-teams-can-build-a-compliance-tracker-inside-taghash/
1•koolhead17•29m ago•0 comments

Anduril's autonomous weapons stumble in tests and combat

https://techcrunch.com/2025/11/27/andurils-autonomous-weapons-stumble-in-tests-and-combat-wsj-rep...
2•pomarie•31m ago•0 comments

Multi-package Haskell project with file dispersion done in Cue

https://xlii.space/cue/multi-package-haskell-with-cue/
1•xlii•31m ago•0 comments

My SaaS jumped from $6,523 to $12,648 monthly, here is how

1•nevodavid10•32m ago•0 comments

Too hot to sleep? Take a warm shower

https://www.rnz.co.nz/life/wellbeing/too-hot-to-sleep-take-a-warm-shower
2•colinprince•37m ago•0 comments

The Symbiotic Path

https://github.com/CHHobday/Symbiotic-path
1•CHHobday•37m ago•0 comments

Don't Buy Your Kid a Crappy Bike for Christmas

https://velo.outsideonline.com/urban/urban-gear/5-reasons-buy-quality-kids-bike/
1•docdeek•38m ago•0 comments

Show HN: TinyCompressor – Free, Privacy-First Image/Video/PDF Compression Tool

https://tinycompressor.com
1•arvin2025•39m ago•1 comments

Example.com has been updated after 11 years

https://web.archive.org/web/20251001001217/https://example.com/
3•kevinsimper•41m ago•0 comments

Provide Sweep: Solving the DHT Bottleneck for Self-Hosting IPFS at Scale

https://ipshipyard.com/blog/2025-dht-provide-sweep/
1•2color•43m ago•0 comments

Princeton's Breakthrough Qubit Could Make Quantum Computing Practical

https://scitechdaily.com/princetons-breakthrough-qubit-could-finally-make-quantum-computing-pract...
1•gochuks•44m ago•0 comments

Airplane contrails may not be the climate villain once feared

https://www.science.org/content/article/airplane-contrails-may-not-be-climate-villain-once-feared
2•mpweiher•49m ago•0 comments

Are You Interviewing a Candidate–Or Their AI?

https://hbr.org/2025/11/are-you-interviewing-a-candidate-or-their-ai
1•gpi•49m ago•1 comments

Q.ANT Raises Series A, Debuts Second-Gen TFLN Photonic Chip

https://www.eetimes.com/q-ant-raises-series-a-debuts-second-gen-tfln-photonic-chip/
1•JoachimS•54m ago•0 comments

LLM Inference with Ray: Expert parallelism and prefill/decode disaggregation

https://www.anyscale.com/blog/ray-serve-llm-anyscale-apis-wide-ep-disaggregated-serving-vllm
1•mycelia•57m ago•0 comments

Why put a webserver in a database, when you can put a database in a webserver?

https://github.com/tobilg/caddy-duckdb-module
1•tobilg•58m ago•0 comments