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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•9mo ago
Agreed

Show HN: Cursor Agent Factory – 5-layer architecture for AI agent systems

https://github.com/gitwalter/cursor-agent-factory
1•wp4pw•1m ago•0 comments

Things Unix can do atomically

https://rcrowley.org/2010/01/06/things-unix-can-do-atomically.html
2•onurkanbkrc•3m ago•0 comments

Show HN: T87s – LLM-optimized cache invalidation with ACID consistency

https://t87s.dev
1•mikesol•5m ago•0 comments

Open-Source Software in the Age of AI

https://essays.johnloeber.com/p/31-open-source-software-in-the-age
2•serviette•5m ago•0 comments

Systems Thinking

http://theprogrammersparadox.blogspot.com/2026/02/systems-thinking.html
3•r4um•9m ago•0 comments

Unbrowse – 100x faster web automation for AI agents

https://github.com/lekt9/unbrowse-openclaw
1•lekt8•12m ago•0 comments

Agentic Proof-Oriented Programming

https://risemsr.github.io/blog/2026-02-04-nik-agentic-pop/
1•nextos•12m ago•0 comments

The Autobiography of JGB

https://www.newyorker.com/magazine/2009/05/11/the-autobiography-of-j-g-b
1•jdkee•12m ago•0 comments

Memory for AI agents in 6 lines of code

https://github.com/topoteretes/cognee
1•wawhal•13m ago•0 comments

Show HN: Free Unlimited Claude Code usage with Nvidia NIM models

https://github.com/Alishahryar1/claude-code-free
1•AliShahryar•16m ago•0 comments

Playshakespeare.com: The Ultimate Free Shakespeare Resource

https://www.playshakespeare.com/
1•thunderbong•16m ago•0 comments

Olimex HoT aims to be lightweight, easier-to-use alternative to Home Assistant

https://www.cnx-software.com/2026/02/06/olimex-hot-aims-to-be-lightweight-easier-to-use-alternati...
1•jandeboevrie•17m ago•0 comments

Building Highly Efficient Inference System for Recommenders Using PyTorch

https://pytorch.org/blog/building-highly-efficient-inference-system-for-recommenders-using-pytorch/
1•mfiguiere•18m ago•0 comments

Dependency-free C compiler in Rust, written by Opus 4.6

https://github.com/anthropics/claudes-c-compiler
1•vinhnx•19m ago•0 comments

Takaichi's Long Trip from Heavy-Metal Drummer to Japan's Political Heavyweight

https://www.wsj.com/world/asia/japan-election-takaichi-trump-cd505dd6
1•petethomas•20m ago•0 comments

Ask HN: 7 days down, zero human support from Netlify/Bolt.new (paid account)

1•encremagique•21m ago•0 comments

Guacamole in Rust? Here Tis

https://github.com/sol1/rustguac/releases/tag/v0.1.0
1•davekempe•24m ago•1 comments

CT scans unwrap secrets of ancient Egyptian life

https://news.keckmedicine.org/ct-scans-unwrap-secrets-of-ancient-egyptian-life/
2•bryanrasmussen•28m ago•0 comments

Loss Distribution Collapse: A Structural Theory of Dataset Degradation

https://zenodo.org/records/18498820
1•GOE_OVSYANKA•28m ago•1 comments

Craft – image models can think like LLMs

https://huggingface.co/blog/flymy-ai/craft-1
1•denti•29m ago•1 comments

Accounts get taken over without "hacks", step by step

https://systemweakness.com/how-my-phone-was-taken-over-a0994023e57b
1•antonmb•31m ago•0 comments

VC-Backed Startups Are Low Status

https://mhdempsey.substack.com/p/vc-backed-startups-are-low-status
3•kstonekuan•33m ago•0 comments

Oval Cut Natural Moss Agate Engagement Ring

https://www.amazon.com/dp/B0CBVP2CQ3
1•dfinejewelry•39m ago•1 comments

Find Fonts by Vibe

https://sweetfont.com/
1•fibo•40m ago•0 comments

Monster Hunter: An Evolutionary Story

https://jgeekstudies.org/2026/02/05/monster-hunter-an-evolutionary-story/
1•zdw•43m ago•0 comments

It's All a Blur

https://lcamtuf.substack.com/p/its-all-a-blur
1•zdw•43m ago•0 comments

LawConnect

https://lawconnect.com/en-au
2•oliviajameslaw•46m ago•1 comments

Get me out of data hell

https://ludic.mataroa.blog/blog/get-me-out-of-data-hell/
3•sadeshmukh•47m ago•0 comments

Cardboard Crack: What Card Games Teach Us About Addiction

https://journalixm.com/2023/06/28/cardboard-crack-what-card-games-teach-us-about-addiction/
2•SchwKatze•47m ago•0 comments

Anonisor – Brings Trust to anonymous contributions

1•octate•50m ago•4 comments