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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•10mo ago
Agreed

The Tree of Up

https://up.com.au/tree/
1•skogstokig•35s ago•0 comments

Show HN: Ratschn – A local Mac dictation app built with Rust, Tauri and CoreML

https://ratschn.com
3•Edos8877•2m ago•0 comments

Show HN: Deadbranch – Interactive TUI for cleaning stale Git branches (Rust)

https://github.com/armgabrielyan/deadbranch
1•armen99•5m ago•0 comments

IDF Officials Admit Military Struggling to Intercept Hezbollah Drones

https://www.haaretz.com/middle-east-news/2026-03-08/ty-article/.premium/idf-officials-admit-milit...
4•johnshades•6m ago•0 comments

Ask HN: How do you keep your data private?

1•mrdependable•6m ago•0 comments

Show HN: Dull – Instagram Without Reels, YouTube Without Shorts

https://getdull.app
1•kasparnoor•6m ago•0 comments

21 Years Living Off-Grid on a Remote Island in a Self-Built Cabin and Homestead [video]

https://www.youtube.com/watch?v=THAupOYwJTs
1•awalGarg•10m ago•0 comments

Increased risk of bullying in open-plan offices

https://www.eurekalert.org/news-releases/1118481
3•pseudalopex•11m ago•0 comments

Show HN: AC-trace–map acceptance criteria to code and tests,then mutate the code

https://github.com/DmytroHuzz/ac-trace
2•dmyhuz•11m ago•0 comments

Show HN: I built a word art generator for 3D printers

https://wordcad.com/
1•ductionist•12m ago•1 comments

Smooth ACT policies on the SO101 arm

https://www.giacomoran.com/blog/act-smooth/
1•ran3000•12m ago•0 comments

Failed YC Startup Ideas

https://startups.rip
2•rgbrgb•14m ago•0 comments

LookingForContributors – Find open source projects that need contributors

https://lookingforcontributors.web.app/
1•himanshurajora•15m ago•1 comments

Query Preprocessing: How we handle 500MB video files as search queries

https://mixpeek.com/blog/query-preprocessing-large-file-search
3•Beefin•15m ago•1 comments

Thinnings: Sublist Witnesses and de Bruijn Index Shift Clumping

https://www.philipzucker.com/thin1/
2•matt_d•16m ago•0 comments

How AI is turning the Iran conflict into theater

https://www.technologyreview.com/2026/03/09/1134063/how-ai-is-turning-the-iran-conflict-into-thea...
1•joozio•16m ago•0 comments

Show HN: Free, serverless Redis clone on Durable Objects (works w Upstash SDKs)

https://github.com/zion-off/meowdis
2•ajz317•20m ago•0 comments

UK Cryptography Developer claims IP to protect UK National Security was stolen

https://lists.libre-soc.org/pipermail/libre-soc-dev/2026-March/007164.html
2•initramfs•20m ago•1 comments

Show HN: Tmuzika – terminal music player written in C (ncurses and GStreamer)

https://github.com/ivanjeka/tmuzika
1•ivanjeka•20m ago•0 comments

Show HN: We open sourced a rite of passage for the permanent underclass problem

https://github.com/MichaelAPerry/Open-Ritual-1.0/
1•ffsoftboiled•21m ago•1 comments

Impressions from Mozilla 1.2B (2002)

https://movq.de/blog/postings/2026-03-08/0/POSTING-en.html
1•birdculture•22m ago•0 comments

When is AI coming to CAD design?

1•travisgriggs•22m ago•0 comments

Separation of direct and global scene components using HF illumination

https://dl.acm.org/doi/10.1145/1141911.1141977
1•PaulHoule•23m ago•0 comments

Learnings from Building an AI Root Cause Analysis Agent

https://www.checklyhq.com/blog/building-an-ai-agent/
1•tnolet•24m ago•2 comments

An Open Source SDK and Runtime for Building Agents

https://agent-air.ai/
2•mdani•24m ago•0 comments

Apple Blocks US Users from Downloading ByteDance's Chinese Apps

https://www.wired.com/story/bytedance-apps-are-no-longer-available-in-us-app-stores/
7•mikhael•25m ago•0 comments

Unstract: Open-source platform to ship document extraction APIs in minutes

https://github.com/Zipstack/unstract
1•naren87•26m ago•0 comments

Meta's Renewed Commitment to Jemalloc

https://engineering.fb.com/2026/03/02/data-infrastructure/investing-in-infrastructure-metas-renew...
2•gaffneyc•26m ago•0 comments

Ignoring the Wisdom of Crowds

https://longform.asmartbear.com/wisdom-of-crowds/
1•djrhails•28m ago•0 comments

If photons have no mass, how can they have momentum?

https://physics.stackexchange.com/questions/2229/if-photons-have-no-mass-how-can-they-have-momentum
2•thunderbong•29m ago•0 comments