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

US Military preparing for potentially weeks-long Iran operations

https://www.reuters.com/world/middle-east/us-military-preparing-potentially-weeks-long-iran-opera...
1•mhb•3m ago•0 comments

Ask HN: What are challenges for enterprise level Knowledge Graph adoption in AI

1•adityashukla_•3m ago•0 comments

Borrowed Tuple Indexing for HashMap

https://traxys.me/tuple_borrow.html
1•todsacerdoti•9m ago•0 comments

Descent, Ported to the Web

https://mrdoob.github.io/three-descent/
1•memalign•10m ago•0 comments

HHS DOGE team open sources the largest Medicaid dataset in department history

https://twitter.com/DOGE_HHS/status/2022370909211021376
1•EcommerceFlow•11m ago•0 comments

Show HN: Recover bricked Claude Code sessions with "thinking blocks" error

https://github.com/miteshashar/claude-code-thinking-blocks-fix
1•miteshashar•11m ago•0 comments

Show HN: I build a service that gives you free subdomains with Dynamic DNS

https://infinitedomains.space/
1•Stone_Red•14m ago•0 comments

Ask HN: How do you build internal agents at work?

1•thekafkaf•16m ago•0 comments

The Green Dot Trap

https://www.oldschoolburke.com/014-the-green-dot-trap/
1•zdosb•16m ago•0 comments

This is What It's Like to Spend Your Life in Prison (2023) [video]

https://www.youtube.com/watch?v=chpgT_VTEjE
1•NaOH•19m ago•0 comments

Measuring Time Horizon Using Claude Code and Codex

https://metr.org/notes/2026-02-13-measuring-time-horizon-using-claude-code-and-codex/
1•mustaphah•19m ago•0 comments

Personal websites with a /now page

https://nownownow.com/
2•susam•20m ago•0 comments

AI instructs you to wear your uniform: "Prompt, Deploy, Pray."

https://www.moltbook.com/post/c6d5553f-1d9e-4b0c-9e52-c4f35a36b5b8
1•chasil•23m ago•1 comments

Wall Street Raider – The Most Comprehensive Financial Simulation Ever Made

https://www.wallstreetraider.com/
2•gurjeet•24m ago•0 comments

You are no longer the smartest type of thing on Earth

https://www.noahpinion.blog/p/you-are-no-longer-the-smartest-type
2•paulpauper•24m ago•0 comments

Show HN: MacMule – eMule packaged as a native macOS app via Wine

https://github.com/mderouet/macMule
1•warpz•25m ago•0 comments

Mechanical Watch: An Interactive Deep Dive

https://ciechanow.ski/mechanical-watch/
1•nefsim•27m ago•1 comments

Washington pushes back against EU's bid for tech autonomy

https://www.politico.eu/article/eu-bid-for-tech-autonomy-washington-us-pushes-back/
2•aa_is_op•28m ago•1 comments

The Debacle That Led to the Closure of El Paso's Airspace

https://www.nytimes.com/2026/02/14/us/politics/el-paso-airspace-closure-faa-pentagon.html
2•duxup•28m ago•2 comments

Leaning Into the Coding Interview: Lean 4 vs. Dafny cage-match

https://ntaylor.ca/posts/proving-the-coding-interview-lean/
1•todsacerdoti•32m ago•0 comments

Show HN: Azazel – Lightweight eBPF-based malware analysis sandbox using Docker

https://github.com/beelzebub-labs/azazel
2•mariocandela•36m ago•0 comments

We urgently need a federal law forbidding AI from impersonating humans

https://garymarcus.substack.com/p/we-urgently-need-a-federal-law-forbidding
4•headalgorithm•37m ago•2 comments

Show HN: File Brain – Local file search with OCR and semantic search

https://github.com/Hamza5/file-brain
1•Hamza5•40m ago•0 comments

Show HN: CLI Rust tool gitorg helps manage GitHub orgs

https://crates.io/crates/gitorg
1•DavidCanHelp•47m ago•0 comments

Gitdatamodel Documentation

https://git-scm.com/docs/gitdatamodel
1•todsacerdoti•47m ago•0 comments

Men lose their Y chromosome as they age – how it may matter

https://theconversation.com/men-lose-their-y-chromosome-as-they-age-scientists-thought-it-didnt-m...
9•bikenaga•49m ago•4 comments

Biases in the Blind Spot: Detecting What LLMs Fail to Mention

https://arxiv.org/abs/2602.10117
1•mpweiher•51m ago•0 comments

Free SERP Content Analyzer

https://kitful.ai/write-tools/serp-content-analyzer
1•eashish93•51m ago•1 comments

Why I'm Not Worried About My AI Dependency

https://boagworld.com/emails/ai-dependency/
2•cdrnsf•54m ago•0 comments

AI Agent Lands PRs in Major OSS Projects, Targets Maintainers via Cold Outreach

https://socket.dev/blog/ai-agent-lands-prs-in-major-oss-projects-targets-maintainers-via-cold-out...
2•cdrnsf•55m ago•0 comments