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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•1y ago
Agreed

Turn your Google accounts into a free, load-balanced LLM API gateway

https://github.com/arifozgun/OpenGem
1•ariozgun•42s ago•0 comments

AWS parades orgs that took up its offer for Euro Sovereign Cloud

https://www.theregister.com/paas-and-iaas/2026/05/21/aws-parades-orgs-that-took-up-its-offer-for-...
1•tcp_handshaker•1m ago•0 comments

What It Takes to Preserve Floppy Disks

https://spectrum.ieee.org/floppy-disk-data-preservation-archives
1•Brajeshwar•1m ago•0 comments

An Asia→Europe Pattern Appeared During Repeated Google Cloud Benchmarks

https://webbynode.com/articles/asia-europe-pattern-dataset
1•gsgreen•1m ago•0 comments

University of California STEM professors call for reinstating SAT in math

https://ucstudentsuccess.org/
2•ytpete•2m ago•1 comments

Prediction Markets Reward Insider Trading. They Should

https://jimmyalfonsolicon.substack.com/p/prediction-markets-reward-insider
1•jger15•3m ago•0 comments

Remove /company/team and set up a redirect

https://gitlab.com/gitlab-com/www-gitlab-com/-/merge_requests/143520
1•sfc32•3m ago•1 comments

The Priority Problem

https://substack.com/@nomiddaydecisions/p-194331125
1•jon_naylor•3m ago•0 comments

Noctalia v5

https://noctalia.dev/blog/announcing-noctalia-v5
1•durron•4m ago•0 comments

Show HN: Biopetals – Run biology tuned Llama, BitTorrent-style

https://github.com/OSbiotools/BioPetals/tree/main
1•shpran•5m ago•0 comments

Rails has overtaken Next.js in a dataset of 3,658 profitable startups

https://twitter.com/marclou/status/2059616890063085632
1•earcar•5m ago•0 comments

GitHub Actions outage told devs 'your account is suspended'

https://www.theregister.com/devops/2026/05/27/github-actions-outage-told-devs-your-account-is-sus...
3•Bender•6m ago•0 comments

NASA to pull an IKEA by dropping tons of plastic, metal, and glass on the Moon

https://www.theregister.com/science/2026/05/27/nasa-plans-moon-base-buildout-with-rovers-drones-c...
1•Bender•6m ago•0 comments

Microsoft wants safer C# without turning it into Rust

https://www.theregister.com/devops/2026/05/26/microsoft-wants-safer-c-without-turning-it-into-rus...
2•Bender•7m ago•0 comments

A self-hosted gateway to turn almost any REST API into MCP tools for agents

https://github.com/Vrivaans/invok-oss
1•vrivaans•8m ago•0 comments

Codex has dethroned Claude as the king of AI programming

https://www.msn.com/en-us/news/technology/codex-has-dethroned-claude-as-the-king-of-ai-programmin...
3•galaxyLogic•8m ago•0 comments

Palantir's Grip on Europe Could Be Deadly, Here Is Why

https://mrkt30.com/palantirs-grip-on-europe-why-defense-relies-on-us-ai/
3•technewssss•8m ago•0 comments

Lanes now lets you run plan, implement, and review as sibling agent sessions

https://lanes.sh/blog/whats-new-v041
1•s-xyz•8m ago•0 comments

Derek Sivers' Minimal .vimrc Is Only 4 Lines Long

https://tilde.club/~passthejoe/zola/blog/derek-sivers-minimal-vimrc/
3•jamesgill•11m ago•0 comments

Front-end, regrounded: Why Wraplet might be what you're missing

https://wraplet.dev/blog/why-wraplet/
2•enador•12m ago•0 comments

Matching Hashes: Reproducing the Guix-Built Bitcoin Core Release Binary with Nix

https://b10c.me/projects/027-bitcoind-gunix-match/
2•b10c•13m ago•0 comments

A brief note about slot access cost in Common Lisp

https://turtleware.eu/posts/A-brief-note-about-slot-access-cost-in-Common-Lisp.html
3•jackdaniel•13m ago•0 comments

Building self-improving tax agents with Codex

https://openai.com/index/building-self-improving-tax-agents-with-codex/
2•dnw•13m ago•0 comments

NASA selects Jeff Bezos's Blue Origin for first of three uncrewed lunar missions

https://www.theguardian.com/science/2026/may/26/nasa-jeff-bezos-blue-origin
3•tcp_handshaker•15m ago•0 comments

It's so over for finance bros, I made an AI agent that does a 100K analyst job

https://edgaranalyst.com/
6•eeko_systems•16m ago•0 comments

New blood test is added an an option for colorectal cancer screenings [video]

https://www.youtube.com/watch?v=ZBmJs4gzGnA
2•mgh2•16m ago•0 comments

Show HN: Bounty-Doctor – Diagnose a GitHub bounty before wasting hours on it

https://github.com/cnguyen14/bounty-doctor
2•cnguyen1494•16m ago•0 comments

Keep calm and use (Rust) monorepos

https://kerkour.com/rust-monorepos
2•speckx•16m ago•0 comments

How to Do Things with Words J.L. Austin [pdf]

https://dn710003.ca.archive.org/0/items/austin-how-to-do-things-with-words/Austin,%20how%20to%20d...
2•mkovach•17m ago•1 comments

Anticode-audit – open-source Solidity security analyzer with multi-model AI (

https://github.com/josemiguel3125-sketch/anticode-audit-action
1•josemiguel3125•18m ago•0 comments