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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•10mo ago
Agreed

Hosted MCP server "everything" for testing

https://servereverything.dev/
1•pj3677•2m ago•0 comments

Train Neural Network Using DirectCompute D11

https://pypi.org/project/directcompute-nn/
1•raviadiprakoso•2m ago•1 comments

Reviving the Maintenance of MkDocs

https://github.com/orgs/mkdocs-community/discussions/1
1•netule•3m ago•0 comments

Energy-based Model (EBM) for enterprise AI security Ship it or keep tuning?

1•ALMOIZ_MOHMED•3m ago•0 comments

Personal Software and the Collapse of the Talent Pipeline

https://blog.slamdunk.software/extremely-personal-software-and-the-collapse-of-the-talent-pipeline/
1•Destiner•3m ago•0 comments

The Missing Layer in AI Agent Architecture

https://wundergraph.com/blog/why-mcp-is-ceiling-enterprise-ai-agent-architecture
1•asoorm•3m ago•1 comments

The Post-Copyright Era of Software

https://www.nibzard.com/post-copyright-era-software
1•nkko•4m ago•0 comments

AgentHub

https://github.com/karpathy/agenthub
1•john_cogs•5m ago•0 comments

Microsoft wants you to 'hire' its AI agents

https://www.computerworld.com/article/4141904/microsoft-wants-you-to-hire-its-ai-agents.html
1•CrankyBear•5m ago•0 comments

Concern over US travel visas prompts Ig Nobels to move its awards to Europe

https://apnews.com/article/ig-nobels-award-prize-comical-science-achievement-where-7413f288bb43b5...
2•geephroh•5m ago•0 comments

Autonomous Engineering Pipeline

https://github.com/changkun/wallfacer
1•changkun•7m ago•0 comments

Zuckerberg has "finished" with Alexandr Wang, worth US$14B

https://www.idnfinancials.com/news/61918/zuckerberg-has-finished-with-alexandr-wang-worth-us14-bi...
2•matthieu_bl•8m ago•0 comments

Frailty can be eased with an infusion of stem cells from young people

https://www.newscientist.com/article/2517139-frailty-can-be-eased-with-an-infusion-of-stem-cells-...
1•bookofjoe•9m ago•1 comments

Show HN: React Trace – Development-time visual inspector for React components

https://react-trace.js.org/
1•buzinas•9m ago•0 comments

Add AI to Any App

https://www.simeongriggs.dev/add-ai-to-any-app
1•bddicken•10m ago•0 comments

Open-source intelligence dashboard tracking the Iran conflict in real time

https://github.com/Juliusolsson05/pharos-ai
1•merusame•11m ago•0 comments

Anthropic sues Pentagon over rare "supply chain risk" label

https://www.axios.com/2026/03/09/anthropic-sues-pentagon-supply-chain-risk-label
1•sauronsrv•12m ago•1 comments

Dirplayer: A web-compatible Shockwave Player emulator written in Rust

https://github.com/igorlira/dirplayer-rs
1•homarp•12m ago•1 comments

Show HN: Agents with Verifiable Human Claims

https://docs.zipwire.io/zipwire-attest/getting-a-proofpack-jwt-with-nationality
1•lukepuplett•12m ago•0 comments

The Boring Technology Manifesto

https://yagnipedia.com/wiki/the-boring-technology-manifesto
2•riclib•17m ago•1 comments

Redacting Sensitive Data from Java Flight Recorder Files

https://mostlynerdless.de/blog/2026/02/13/redacting-sensitive-data-from-java-flight-recorder-files/
1•mooreds•23m ago•0 comments

Show HN: Four Claude Code hooks that enforce voice and tone on AI-written copy

https://windyroad.com.au/blog/enforcing-voice-and-tone-with-claude-code-hooks
1•tompahoward•23m ago•0 comments

CIA faces backlash after document with potential cancer cure hidden 60 years

https://www.dailymail.co.uk/sciencetech/article-15629211/cia-cancer-cure-document-declassified.html
2•bookmtn•23m ago•2 comments

Why diff fails for CSV comparison

https://reconlify.com/blog/why-diff-fails-for-csv
1•testuteab•27m ago•0 comments

Drug-controlled CAR T cells through the regulation of cell–cell interactions

https://www.nature.com/articles/s41589-026-02152-x
1•PaulHoule•28m ago•0 comments

Are We Sentient AI?

1•abmmgb•29m ago•7 comments

Building a Strict RFC 8259 JSON Parser: Acceptance Issues and Their Impact On

https://lattice-substrate.github.io/blog/2026/02/26/strict-rfc8259-json-parser/
1•birdculture•29m ago•0 comments

Show HN: Fakebase – a lightweight PostgreSQL browser for development databases

https://fakebase.studio
4•albinglad•29m ago•4 comments

Ask HN: Which book are you reading these days?

4•chistev•30m ago•2 comments

We strongly oppose the Unified Attestation initiative

https://twitter.com/GrapheneOS/status/2031041385554386960
2•hnburnsy•30m ago•0 comments