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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•8mo ago
Agreed

Lowering the specificity of multiple rules at once

https://www.matuzo.at/blog/2026/lowering-specificity-of-multiple-rules
1•speckx•2m ago•0 comments

Min Profil På Differ.blog

1•Aksel-Louis•2m ago•1 comments

Show HN: 13-Virtues – A tracker for Benjamin Franklin's 13-week character system

https://www.13-virtues.com
2•HeleneBuilds•2m ago•0 comments

Xfwl4 – The Roadmap for a Xfce Wayland Compositor

https://alexxcons.github.io/blogpost_15.html
1•pantalaimon•3m ago•0 comments

The Simplest Math Problem No One Can Solve – Collatz Conjecture

https://www.youtube.com/watch?v=094y1Z2wpJg
2•nyc111•5m ago•0 comments

Promptfoo Deployed Enterprise AI Security in One Week (2025)

https://fusionauth.io/blog/promptfoo-case-study
1•mooreds•7m ago•0 comments

What It Takes to Build One of the Biggest Banks – Odd Lots [video]

https://www.youtube.com/watch?v=exqeWjBKwx0
1•mooreds•8m ago•0 comments

Getting Started with AI Coding Tools

https://www.devleader.ca/2026/01/18/getting-started-with-ai-coding-tools-a-developers-practical-g...
1•mooreds•8m ago•0 comments

Smartphone based on the Raspberry Pi CM 5

https://github.com/V3lectronics/SPIRIT
1•WithinReason•9m ago•0 comments

Ubiquiti: The U.S. Tech Enabling Russia's Drone War

https://hntrbrk.com/ubiquiti/
2•chillax•9m ago•1 comments

Show HN: Doom rendered in OpenSCAD geometry, now playable in browser

https://doom.mikeayles.com
1•mikeayles•10m ago•0 comments

Do you play infinite games?

https://drgore.substack.com/p/do-you-play-infinite-games
1•dhruvgore•11m ago•0 comments

Show HN: Sims 1 Legacy MCP

https://github.com/pevers/sims-mcp
1•ph4evers•12m ago•0 comments

Show HN: Catch-HN top stories from any date range

https://catch-hn.com/
1•tajchert•14m ago•1 comments

Show HN: An affiliate program that pays up to 20% for insurance referrals

https://eai.uz/en/partner
1•NIkMOkhn•14m ago•0 comments

Ask HN: What's the Point Anymore?

2•fnoef•14m ago•6 comments

Show HN: One Human + One Agent = One Browser From Scratch

https://emsh.cat/one-human-one-agent-one-browser/
1•embedding-shape•15m ago•0 comments

Show HN: Analyzing Semantic Redundancy in LLM Retrieval (Google Gist Protocol)

1•aggeeinn•15m ago•0 comments

Show HN: Manpage.dev – Turn your GitHub profile README into a Unix man page

https://manpage.dev
1•bryanmikaelian•16m ago•0 comments

Giving Claude Code a feedback loop into pdb, GDB and TUIs with tmux

https://jmlago.github.io/skills/debug-tuis-with-tmux.html
1•rasca•17m ago•0 comments

Designing Error Types in Rust Applications

https://home.expurple.me/posts/designing-error-types-in-rust-applications/
1•Expurple•17m ago•0 comments

Transforming a Clojure Database into a Polyglot Library with GraalVM and FFI

https://avelino.run/chrondb-polyglot-ffi-clojure-graalvm-native-image/
1•avelino•19m ago•1 comments

Show HN: GitByBit — Git course integrated into VSCode and Cursor

https://gitbybit.com
1•neochief•19m ago•0 comments

Sir-tech's Last Words (1998)

https://www.ign.com/articles/1998/10/16/sir-techs-last-words
1•bananaboy•20m ago•0 comments

Intel's Panther Lake Chip is its biggest win in years

https://www.wired.com/story/intel-panther-lake-core-ultra-series-3-review/
2•teleforce•22m ago•0 comments

Lean4 Formalization of "A Simplified Round-by-Round Soundness Proof of Fri"

https://blog.zksecurity.xyz/posts/simple-rbr-fri/
1•baby•26m ago•0 comments

What Is Agent Experience (Ax) and Why Should You Care?

https://techstackups.com/guides/what-is-agent-experience-and-why-should-you-care/
1•sixhobbits•30m ago•0 comments

I analyzed 44K companies to see who uses Claude or Perplexity

https://bloomberry.com/blog/we-analyzed-44k-companies-to-see-who-uses-claude-or-perplexity/
1•AznHisoka•30m ago•0 comments

Show HN: Tfstate-audit – search/diff Terraform state history (S3/GCS/Azure/HCP)

https://github.com/BetaFold3/tfstate-audit
1•rngacc•31m ago•1 comments

Ask HN: Have you seen Claude Code answering its own questions today?

1•sixhobbits•31m ago•0 comments