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: ImageCFN – Analog, Resolution-Independent Image Representation

https://web-demo-ten-navy.vercel.app
1•prof_garlic•32s ago•0 comments

Trump admin halts [$250M of] Medicaid payments to Minnesota over fraud claims

https://www.cnn.com/2026/02/25/politics/trump-vance-minnesota-medicaid
1•Tadpole9181•59s ago•0 comments

DeepSeek withholds latest AI model from Nvidia, AMD

https://www.reuters.com/world/china/deepseek-withholds-latest-ai-model-us-chipmakers-including-nv...
1•cmrdporcupine•1m ago•0 comments

Show HN: OpenSwarm – Multi‑Agent Claude CLI Orchestrator for Linear/GitHub

https://github.com/Intrect-io/OpenSwarm
1•unohee•8m ago•0 comments

Show HN: EV424 – Reproducible Integrity Receipts (Don't Trust, Verify)

https://github.com/ev424verify/ev424-hub
1•lws9262•8m ago•0 comments

Reverse-engineer an MP3 player's firmware using LLMs

https://im.not.ci/echo-mini-rse/
1•uneven9434•9m ago•0 comments

Show HN: Usplus.ai – OpenClaw for Enterprise. Autonomous Agents to get work done

https://usplus.ai:443/
1•usplusAI•10m ago•0 comments

The Lives of Secrets

https://arenamag.com/articles/the-lives-of-secrets
1•jger15•15m ago•0 comments

Pentagon takes first step toward blacklisting Anthropic

https://www.axios.com/2026/02/25/anthropic-pentagon-blacklist-claude
1•jimmydoe•18m ago•0 comments

CSS Proposal:near(<length>) pseudo-class for pointer proximity

https://github.com/w3c/csswg-drafts/issues/13271
1•nnx•23m ago•0 comments

I built an AI fitness agent

https://twitter.com/fitly_ai/status/2026832485804384576
2•bradpineau•24m ago•0 comments

The Glass Transition Problem: An Unsolved Mystery in Physics

https://www.ade.pt/the-glass-transition-problem/
1•A_D_E_P_T•24m ago•0 comments

Ian AI Fitness Agent

1•bradpineau•24m ago•0 comments

Could users acting en masse take a major website down?

1•micio-micio•25m ago•2 comments

I built an open-source AI Gateway that sits between your apps and LLM providers

https://github.com/DatanoiseTV/aigateway
1•sylwester•28m ago•3 comments

It's time to pull the plug on plug-in hybrids

https://techcrunch.com/2026/02/24/its-time-to-pull-the-plug-on-plug-in-hybrids/
1•Stratoscope•31m ago•0 comments

Braided River

https://en.wikipedia.org/wiki/Braided_river
1•thunderbong•39m ago•0 comments

Show HN: PullMaster – Recommends code reviewers from your repo history

1•justinko•40m ago•0 comments

Welcome to the Age of the Slop Fork

https://mbleigh.dev/posts/slop-forks/
3•mbleigh•46m ago•0 comments

Language Hacking in a Live Programming Environment (2016)

https://ohmjs.org/pubs/live2016/
2•andsoitis•48m ago•0 comments

2D memristors could help solve AI's energy problem

https://phys.org/news/2026-02-2d-memristors-ai-energy-problem.html
1•wglb•49m ago•1 comments

Super Battle Golf guide is here

https://superbattlegolf.net/
1•candseven•49m ago•0 comments

Turtle.audio – music sequencer inspired by turtle graphics programming

http://turtle.audio
1•andsoitis•49m ago•0 comments

Salesforce Sees Stable Growth; CEO Dismisses Talk of AI-Fueled 'SaaS-Pocalypse'

https://www.marketwatch.com/story/salesforce-sees-stable-growth-ceo-dismisses-talk-of-ai-fueled-s...
1•petethomas•49m ago•0 comments

Simpletalk

https://github.com/dkrasner/Simpletalk
1•andsoitis•50m ago•0 comments

The Man Who Stole Infinity

https://www.quantamagazine.org/the-man-who-stole-infinity-20260225/
1•sonabinu•52m ago•0 comments

No config? No problem. Just `wrangler deploy`

https://developers.cloudflare.com/changelog/post/2026-02-25-wrangler-autoconfig-ga/
2•cebert•55m ago•1 comments

Zimbabwe bans all raw mineral exports

https://www.semafor.com/article/02/25/2026/zimbabwe-bans-all-raw-mineral-exports
1•ilamont•55m ago•0 comments

Show HN: Weather app with temp (23°) in favicon

https://adamschwartz.co/weather/
2•adamschwartz•57m ago•0 comments

Conspiracy Theories and Online Dating: It's a (Mis)Match

https://journals.sagepub.com/doi/10.1177/01461672251399448
1•PaulHoule•57m ago•0 comments