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

Gixy: Nginx Configuration Static Analyzer

https://github.com/dvershinin/gixy
2•petecooper•5m ago•0 comments

Staged Publishing for NPM Packages

https://docs.npmjs.com/staged-publishing/
2•pimterry•5m ago•0 comments

MPs call out Rockstar Games over alleged union-busting

https://www.computerweekly.com/news/366643401/MPs-call-out-Rockstar-Games-over-alleged-Union-busting
1•beardyw•6m ago•0 comments

Edu-committee wants social media ban to save mental health

https://www.theregister.com/personal-tech/2026/05/21/edu-committee-wants-social-media-ban-to-save...
1•ColinWright•7m ago•0 comments

Paragon Knives – No-frills EDC knives focused on pure utility

https://www.paragon-knives.com/
1•bgzlsxaz•8m ago•0 comments

Why domain valuation metrics fail in voice-first and agentic environments

https://domainalot.substack.com/p/how-to-correctly-value-a-domain-and
1•sonofmarzipan•8m ago•0 comments

I built a HoneyBook alternative after they raised prices 89%

https://quotesign.vercel.app
1•kevoIA•11m ago•0 comments

Auditing Apple's DifferentialPrivacy.framework: Bugs, Misconfig, Practical Risks

https://arxiv.org/abs/2605.21378
1•sbulaev•16m ago•0 comments

Been running Claude Code on Bun Rust port for a few days, can't tell difference

https://twitter.com/jarredsumner/status/2057280896231936258
2•tosh•16m ago•0 comments

Yet another Rust re-write: FalkorDB

https://github.com/FalkorDB/falkordb-rs-next-gen
1•fithisux•18m ago•1 comments

Google officially announces that ads will be included in AI Mode search results

https://blog.google/products/ads-commerce/google-marketing-live-search-ads/
3•sofumel•19m ago•0 comments

Micro GPT written in Excel formulas

https://github.com/pyxll/excel-gpt
1•pyxll•21m ago•0 comments

How's Linear so fast? A technical breakdown

https://performance.dev/how-is-linear-so-fast-a-technical-breakdown
1•SouravInsights•23m ago•0 comments

TextIndex

https://mattgemmell.scot/textindex/
1•Tomte•24m ago•0 comments

The Surprising Divide over What Counts as True

https://reason.com/2026/05/15/the-surprising-divide-over-what-counts-as-true/
1•stared•25m ago•0 comments

Nvidia unveils its spreading language model, "Nemotron-Labs-Diffusion"

https://huggingface.co/nvidia/Nemotron-Labs-Diffusion-14B
2•sofumel•25m ago•0 comments

Why I think Go is a Terrible Language

https://notashelf.dev/posts/go-sucks
2•Lunar5227•26m ago•2 comments

AMD's New Ryzen AI Max Pro 400 with 192GB LPDDR5X Memory

https://www.servethehome.com/amd-reveals-ryzen-ai-max-pro-400-series-192gb-ram-for-ai-systems/
1•calcifer•29m ago•0 comments

I Taught an AI to Be Our On-Call Engineer

https://medium.com/pipedrive-engineering/scooby-how-i-taught-an-ai-to-be-our-on-call-engineer-163...
1•devuo•30m ago•0 comments

VCs invested $300B in agentic infrastructure in Q1 2026

https://www.hitechies.com/venture-capital-q1-2026-300-billion-agentic-infrastructure-founders/
1•dhakalster•31m ago•0 comments

Value creation, bullshit jobs and the future of work

https://seths.blog/2026/05/value-creation-bullshit-jobs-and-the-future-of-work/
1•swolpers•33m ago•0 comments

The Cache Aware Scheduling Looks Like It Will Land for Linux 7.2

https://www.phoronix.com/news/Linux-7.2-Likely-CAS
2•rbanffy•34m ago•2 comments

Show HN: Visual timezone converter for remote teams

https://fluttertime.com/
1•dbecks•35m ago•0 comments

Mummy Brown

https://en.wikipedia.org/wiki/Mummy_brown
2•thunderbong•35m ago•0 comments

No Slop Grenade

https://noslopgrenade.com/
2•napolux•38m ago•0 comments

Show HN: I am making a cat-based gamified productivity app

https://store.steampowered.com/app/4704810/Junebug/
1•egretfx•39m ago•0 comments

X-Plane 12 Citation-X Checklist

https://www.wedesoft.de/simulation/2026/05/10/x-plane-citation-x-checklist/
1•wedesoft•40m ago•1 comments

The Beatles – On Their Old Sound

https://medium.com/the-hitmagist/the-beatles-on-their-old-sound-af380e576227
1•bryanrasmussen•40m ago•0 comments

Engineering Manager Interview Preparation

https://yusufaytas.com/engineering-manager-interview-preparation
13•hunter_coder•41m ago•0 comments

Gauss List Sieve for Lattices

https://leetarxiv.substack.com/p/gauss-lll-sieve
2•theanonymousone•42m ago•1 comments