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

WatchGuardian: Enabling User-Defined Just-in-Time Intervention on Smartwatch

https://dl.acm.org/doi/10.1145/3788689
1•brandonb•5m ago•0 comments

California Becomes Latest State to Weigh Balcony Solar Legislation

https://www.bloomberg.com/news/newsletters/2026-01-30/california-becomes-latest-state-to-weigh-ba...
1•bilsbie•6m ago•0 comments

Show HN: Audio Toolkit for Agents

https://github.com/shiehn/sas-audio-processor
1•stevehiehn•7m ago•0 comments

Archiving my tweets in my own blog

https://solmaz.io/x/2027708131254387017/
1•hosolmaz•7m ago•0 comments

Show HN: Chromectl – CLI to give an AI agent its own Chrome session

https://github.com/BartlomiejLewandowski/chromectl
1•bartek_gdn•8m ago•0 comments

Cursor built this 5 min 3 round Wordle

https://apps.apple.com/us/app/fastdle/id6739634096
1•triviatroy•9m ago•1 comments

Show HN: SkillMesh (role-based tool routing for Claude/Codex)

https://github.com/varunreddy/SkillMesh
2•VarunReddy023•10m ago•0 comments

Living with Hyperphantasia

https://www.theguardian.com/science/2026/feb/28/living-with-hyperphantasia
1•bookofjoe•10m ago•0 comments

Ask HN: What forms of human labor cannot be replaced by intelligent machines?

1•cs702•11m ago•0 comments

Show HN: Delta – A disk space analyzer that tracks where your disk space went

https://github.com/chuunibian/delta
1•zerfallen•12m ago•1 comments

Think of BigConfig Package as 'Helm for Everything'

https://www.bigconfig.it/use-cases/package/
1•amiorin•14m ago•0 comments

The Epstein Files and the Epstein Class

http://colabopad.blogspot.com/2026/03/the-epstein-files-and-epstein-class.html
2•Edmond•16m ago•0 comments

Background Agents

https://background-agents.com/
2•thebuilderjr•16m ago•0 comments

Show HN: Videolyti – Free video downloader with built-in AI transcription

https://videolyti.com/en
1•coder_decoder•17m ago•0 comments

NIST to introduce restrictions on non-US citizens

https://physicstoday.aip.org/news/nist-to-introduce-restrictions-on-non-us-citizens
1•bikenaga•17m ago•0 comments

Ask HN: Vibecoding feels like playing golf, wdyt?

2•julienreszka•19m ago•0 comments

Is Nvidia's post-Rubin roadmap shifting toward inference-first architectures?

https://www.buysellram.com/blog/nvidia-next-gen-feynman-beyond-training-toward-inference-sovereig...
1•jamesbsr•19m ago•1 comments

My Favorite 39C3 Talks

https://asindu.xyz/my-favorite-39c3-talks/
1•max_•22m ago•0 comments

Bolt.gives Introduces Free, Agentic AI Coding Platform

https://github.com/embire2/bolt.gives
2•embire2•23m ago•0 comments

Bad Thing Insurance – Coverage for alien abduction, rogue black holes, and AGI

https://badthing.xyz/
2•rooster666•23m ago•1 comments

Fast-Servers: An Interesting Pattern?

https://geocar.sdf1.org/fast-servers.html
2•signa11•24m ago•0 comments

Reverse engineering "Hello World" in QuickBasic 3.0

https://marnetto.net/2026/03/01/brun-hello-world
2•alberto-m•25m ago•2 comments

Driftwood – friendly AppImage manager for Linux

https://apps.lashman.live/driftwood/
1•bovermyer•26m ago•0 comments

Cielab Color Space

https://en.wikipedia.org/wiki/CIELAB_color_space
1•vinhnx•29m ago•0 comments

Show HN: Belora.ai – Generative AI Platform for Images, Art

https://www.belora.ai
1•tatefinn•29m ago•0 comments

Foods destroying rainforests, in one simple chart

https://www.vox.com/climate/480083/beef-agriculture-deforestation-amazon-rainforest
2•stared•30m ago•0 comments

Show HN: Veracity-Cryptographic data integrity proofs for AI compliance

https://veracity.resethiq.com
1•ResEthiq1•30m ago•0 comments

Show HN: Build a Website for DevOps Learning

https://devopsatlas.com/
1•joshuajebaraj•31m ago•0 comments

Show HN: Colnade – Type-Safe DataFrames for Python

https://github.com/jwde/colnade
1•jwde•33m ago•0 comments

How I approach vibe coding projects to make it not suck

1•bwooceli•33m ago•0 comments