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

Why a Robotics Startup's Failure Proves the Robot Starts with the Actuator

https://www.firgelli.com/blogs/news/k-scale-labs-failure-proves-robot-starts-with-actuator
1•RobbieDickson•8m ago•0 comments

Relicensing with AI-Assisted Rewrite

https://tuananh.net/2026/03/05/relicensing-with-ai-assisted-rewrite/
1•tuananh•15m ago•0 comments

NHS official pushed to add patient data to Palantir while advising company

https://www.ft.com/content/6c548670-0f3e-45f1-ba08-8bb6dd152af5
2•Jimmc414•18m ago•0 comments

Large-Scale Agentic RL for CUDA Kernel Generation

https://cuda-agent.github.io/
1•gmays•22m ago•0 comments

Ask HN: Seeing More Techcrunch on Frontpage?

1•par•23m ago•0 comments

Website showing LLM solutions to Knuth's Problems?

1•daly•23m ago•0 comments

Unified In-Process Agent Interface for Claude Code, Codex, Kimi

https://github.com/odysa/one-agent-sdk
2•agentforce•23m ago•0 comments

DOJ proposes policy aimed at limiting state bar ethics probes into its attorneys

https://abcnews.com/US/doj-proposes-policy-aimed-limiting-state-bar-ethics/story?id=130755238
4•petethomas•24m ago•1 comments

Global Consciousness Live Data

https://gcp2.net/#home_page_live_data
1•avonmach•25m ago•0 comments

RoundsKeeper – Score tracking for board/card games (Swift/SwiftUI, iCloud sync)

https://apps.apple.com/us/app/roundskeeper/id6754217431
1•justbustr•26m ago•1 comments

Show HN: The hardware isn't changing, why not get AI to build custom drivers?

https://github.com/eli7vh/signal-chain
1•elijahlucian•29m ago•0 comments

Show HN: Scape – One-click worktrees and orchestrators for Claude Code

https://www.scape.work/
3•bgnm2000•30m ago•0 comments

The Global Coherence Initiative [video]

https://www.youtube.com/watch?v=QFqsY-DT6rg
1•avonmach•30m ago•0 comments

Show HN: Fast Chladni figure simulation in Python with NumPy vectorization

https://github.com/ratwolfzero/Chladni_Figures
2•ratwolf•37m ago•1 comments

Show HN: Session-safe uploads and artifacts for remote MCP servers

https://aakashh242.github.io/remote-mcp-adapter/
1•aakashh242•41m ago•0 comments

You Just Reveived

https://dylan.gr/1772520728
3•djnaraps•45m ago•0 comments

Nike Is Moving Jobs to Low-Wage Regions of Indonesia

https://www.propublica.org/article/nike-jobs-indonesia-living-wages
4•petethomas•48m ago•0 comments

First Open-Source PR

https://duanehilton.com/notes/your-first-open-source-pr
1•rem_one•50m ago•0 comments

Signalbase – Real-time business intelligence API for agents (x402, USDC on Base)

https://github.com/brandontan/signalbase
1•brtan881972•55m ago•0 comments

Show HN: OctoFlow–GPU-native lang, vibe-coded with human at every decision gate

https://github.com/octoflow-lang/octoflow
1•mr_octopus•55m ago•3 comments

Low data gravity for fast retrieval on K8s (2021)

https://ra-mos.medium.com/get-up-an-running-with-local-ssds-on-kubernetes-gke-p1-the-code-c6cf5ac...
2•ramoz•56m ago•0 comments

Dear Meta Smart Glasses Wearers: You're Being Watched, Too

https://gizmodo.com/dear-meta-smart-glasses-wearers-youre-being-watched-too-2000728928
4•pabs3•57m ago•1 comments

Bayesian teaching enables probabilistic reasoning in large language models

https://www.nature.com/articles/s41467-025-67998-6
2•paraschopra•58m ago•0 comments

GitHub Copilot Goldeneye model preview

https://docs.github.com/en/copilot/reference/ai-models/model-hosting
1•amusingimpala75•1h ago•1 comments

*

1•kaungsetlin•1h ago•0 comments

LexisNexis confirms data breach as hackers leak stolen files

https://www.bleepingcomputer.com/news/security/lexisnexis-confirms-data-breach-as-hackers-leak-st...
4•arkadiyt•1h ago•0 comments

Morgan Stanley Lays Off 2,500 Employees Across All Divisions

https://www.wsj.com/finance/banking/morgan-stanley-lays-off-2-500-employees-across-all-divisions-...
5•LostMyLogin•1h ago•1 comments

Learn Fundamentals, Not Frameworks

https://newsletter.techworld-with-milan.com/p/learn-fundamentals-not-frameworks
2•stosssik•1h ago•0 comments

Brainworm – Hiding in Your Context Window

https://www.originhq.com/blog/brainworm
1•dsr12•1h ago•0 comments

How does AI change Software Engineering?

https://dlants.me/ai-se.html
1•todsacerdoti•1h ago•0 comments