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

Sorting Algorithms

https://tools.simonwillison.net/sort-algorithms
1•cromulent•3m ago•0 comments

Speaking of Voxtral

https://mistral.ai/news/voxtral-tts
1•Palmik•4m ago•0 comments

Federal government employees are not ok

https://donmoynihan.substack.com/p/federal-employees-are-not-ok
2•NomNew•5m ago•0 comments

FossGIS Videos (mostly in German language)

https://media.ccc.de/c/fossgis2026
1•slow_typist•5m ago•0 comments

Show HN: Search and track flight prices across date and destination combinations

https://butterfly.flights/
3•philjohnson•6m ago•0 comments

Oldest dog identified at ancient hunter-gatherer site

https://www.science.org/content/article/world-s-oldest-dog-identified-ancient-hunter-gatherer-site
1•Brajeshwar•6m ago•0 comments

Show HN: I resurrected my 2013 web usability checklist for the AI age

https://www.userium.com/
1•userium•7m ago•0 comments

French e, è, é, ê, ë – what's the difference?

https://jakubmarian.com/french-e-e-e-e-e-whats-the-difference/
2•kerblang•8m ago•0 comments

S.F. school board restores 8th-grade algebra after 12-year hiatus

https://missionlocal.org/2026/03/san-francisco-algebra-middle-school/
1•mikhael•8m ago•0 comments

Cactus, a work-stealing parallel recursion runtime for C

https://github.com/xtellect/cactus
1•enduku•8m ago•0 comments

ClawSecure Launches Free OpenClaw Security Platform with 2,890 Audited Skills

https://newclawtimes.com/articles/clawsecure-openclaw-security-scanner-audited-skills-registry/
1•alvivanco•9m ago•0 comments

Building pentest devices with Rust and ESP32-C6 microcontrollers

https://kerkour.com/rust-esp32-pentest
3•randomint64•9m ago•0 comments

Kreuzbery – Fast RAG Pipeline

https://kreuzberg.dev
1•zlu•9m ago•1 comments

Show HN: Reading Tree, a weighted outline for articles instead of a summary

https://github.com/ModelVoyager/ReadingTree
1•ModelVoyager•10m ago•0 comments

Show HN: 3 out of 4 devs failed to catch dangerous AI-suggested commands

https://agentsaegis.com/assessment
1•abdullaachilov•12m ago•0 comments

The story of FFmpeg (and how it ended up everywhere)

https://roughcut.heyeddie.ai/p/the-video-software-that-powers-the
1•shamirallibhai•14m ago•1 comments

Developer Experience

https://leerob.com/dx
1•mmarian•14m ago•0 comments

Show HN: We caught our AI agents self-approving their own work, so we built this

https://github.com/neo4j-labs/ai-governor
1•june-jule•14m ago•0 comments

A Fixation and Distance-Dependent Color Illusion

https://arxiv.org/abs/2509.11582
2•geox•15m ago•0 comments

Agentis – multi-agent AI platform across 12 LLM providers, watch them in 3D

https://github.com/Dhwanil25/Agentis
1•Dhwanil25•15m ago•0 comments

What breaks in AI agent commerce (300 sessions, WooCommerce)

https://dev.to/zologic/woocommerce-just-did-what-shopify-did-hours-later-open-protocol-full-auton...
1•Zologic•16m ago•0 comments

The Sudden Death of a Man Who Told Chinese Kids How to Succeed

https://www.nytimes.com/2026/03/26/world/asia/chinese-influencer-zhang-death.html
2•mitchbob•16m ago•1 comments

Ten Months with Copilot Coding Agent in Dotnet/Runtime

https://devblogs.microsoft.com/dotnet/ten-months-with-cca-in-dotnet-runtime/
1•maltalex•16m ago•0 comments

Auditing source code wasn't enough in the LiteLLM attack

https://blog.mozilla.ai/hardening-your-llm-dependency-supply-chain/
1•angpt•17m ago•0 comments

Palantir's CEO says only two kinds of people will succeed in the AI era

https://fortune.com/2026/03/24/palantir-ceo-alex-karp-two-people-successful-in-ai-era-vocational-...
1•mldev_exe•17m ago•0 comments

Mymarks.net

https://mymarks.net/
1•shozzipen•18m ago•0 comments

Iran War Is Pushing Consumers to Break Up with Fossil Fuels

https://www.bloomberg.com/news/features/2026-03-26/war-oil-price-shock-sparks-new-interest-in-gre...
3•toomuchtodo•19m ago•1 comments

The Old Internet Is Still Here

https://tylergaw.com/blog/the-old-internet-is-still-here/
1•speckx•19m ago•0 comments

What AI tools to use for iOS development

https://onmyway133.com/posts/what-ai-tools-to-use-for-ios-development/
1•vinhnx•20m ago•0 comments

"Am I Actually Doing a Good Job?"

https://k2xl.substack.com/p/am-i-actually-doing-a-good-job
1•k2xl•20m ago•0 comments