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

Bad Grades

https://localthunk.com/blog/bad-grades
1•avocadosword•34s ago•0 comments

Gamepad Controls Elden Ring Streamer IRL Using a Wild Balance Hack

https://kotaku.com/perri-karyal-galvanic-vestibular-stimulation-elden-ring-2000668749
1•PaulHoule•1m ago•0 comments

Show HN: Nexus – A social platform where your GitHub profile is your identity

https://nexus-fqt4.onrender.com
1•tita-n•1m ago•0 comments

Show HN: Llama 3.1 70B on a single RTX 3090 via NVMe-to-GPU bypassing the CPU

https://github.com/xaskasdf/ntransformer
2•xaskasdf•3m ago•0 comments

Anki-CLI

https://github.com/ubermenchh/anki-cli
1•ubermenchh•3m ago•0 comments

We estimate that Claude Opus 4.6 has a 50%-time-horizon of around 14.5 hours

https://twitter.com/METR_Evals/status/2024923422867030027
1•doener•5m ago•0 comments

Online Pebble Development

https://cloudpebble.repebble.com/
2•teekert•9m ago•0 comments

Laser writing in glass for dense, fast and efficient archival data storage

https://www.nature.com/articles/s41586-025-10042-w
1•macleginn•10m ago•0 comments

I got annoyed by Claude Code's history, so I built a search CLI

https://github.com/madzarm/ccsearch
2•madzarm•11m ago•2 comments

India Open Network for Digital Commerce

https://www.ondc.org/
1•kaladin-jasnah•12m ago•0 comments

Grove: Detect worktree conflicts at write time to scale parallel agents

https://github.com/NathanDrake2406/grove
1•nathan9999•15m ago•1 comments

Why optimizing AUC may be insufficient for clinical deterioration systems

1•ameenfayed•15m ago•0 comments

Fury over Discord's age checks explodes after shady Persona test in UK

https://arstechnica.com/tech-policy/2026/02/discord-and-persona-end-partnership-after-shady-uk-ag...
4•duxup•16m ago•0 comments

Visualize Your Turborepo Workspace

https://turbograph.dev/
1•kuzeykose•18m ago•0 comments

Shai-Hulud-Style NPM Worm Hijacks CI Workflows and Poisons AI Toolchains

https://socket.dev/blog/sandworm-mode-npm-worm-ai-toolchain-poisoning
2•jicea•19m ago•0 comments

Show HN: Formally Verified a Millennium Prize Problem in Coq Yang-Mills Mass Gap

https://github.com/Shariq81/yang-mills-mass-gap
1•shariq81•19m ago•0 comments

Trump says he'll raise tariffs to 15 percent after Supreme Court ruling

https://apnews.com/article/trump-tariff-truth-social-872c8f04112a8991d8aa6ae5005767b6
4•_rend•22m ago•3 comments

Apple's Ferret AI model is a step towards Siri seeing and controlling apps

https://appleinsider.com/articles/26/02/21/apples-latest-ferret-ai-model-is-a-step-towards-siri-s...
2•geox•22m ago•0 comments

ClipSafe

https://clipsafe.app/blog/rss.xml
1•mcunderground•22m ago•1 comments

Show HN: Here.now – Web Hosting for Agents

https://here.now/
1•k0mplex•23m ago•1 comments

When a Platform Stops Saying "Automation" and Starts Saying "LLM"

1•ppolicyco•24m ago•0 comments

Wrapping Code Comments

https://matklad.github.io/2026/02/21/wrapping-code-comments.html
1•surprisetalk•24m ago•0 comments

I'm 15 and built a platform for developers to showcase WIP projects

2•amin2011•25m ago•0 comments

Show HN: Cc-md – Zero-cost Obsidian sync across iPhone, Mac, and GitHub

https://github.com/yuukiLike/cc-md
1•YuukiJyoudai•25m ago•0 comments

Stanford study points to vaccine that protects against multiple infections

https://www.nbcbayarea.com/news/local/stanford-study-vaccine-multiple-infections/4039740/
1•apparent•25m ago•0 comments

Show HN: Amux – A tmux-based multiplexer for running parallel Claude Code agents

https://amux.io
1•Beefin•26m ago•0 comments

SQLite-Vector: highly efficient vector extension for SQLite

https://github.com/sqliteai/sqlite-vector
1•marcobambini•26m ago•0 comments

Show HN: Museum of Handwritten Code (If, While, Binary Search, Merge Sort)

https://museum.codes
3•sgraphics8•30m ago•1 comments

Forever – Claude Memory System

https://forever.squidcode.com
1•pro_methe5•30m ago•2 comments

Show HN: StackWho – Find companies by tech stack with decision maker contacts

https://stackwho.com/
1•veritas9•30m ago•0 comments