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

Tell HN: Digital Ocean has run out of GPU droplets

1•nathannaveen•28s ago•0 comments

Show HN: Agenthub – Public addresses so agents can message each other

https://agenthub.to/
1•Lws803•52s ago•0 comments

Florida tests show pesticide in popular breads

https://www.thenewlede.org/2026/02/florida-tests-show-glyphosate-in-popular-breads/
1•PaulHoule•1m ago•0 comments

Tired of Gmails invasive data collection? Try these privacy-focused alternatives

https://alternativeto.net/news/2026/3/tired-of-gmail-s-invasive-data-collection-try-these-privacy...
1•elliot_a•1m ago•0 comments

Show HN: I put HN discussions next to the article where it belongs

https://cool-link-web-production.up.railway.app/l/blogabout
1•krenerd•3m ago•0 comments

20 Years of Programming

https://sidhion.com/blog/20_years/
1•surprisetalk•3m ago•0 comments

Digital Iris [video]

https://www.youtube.com/watch?v=Kg_2MAgS_pE
1•surprisetalk•4m ago•0 comments

Radish is for sale: The compound that inspired Live Near Friends

https://blog.livenearfriends.com/radish-is-for-sale-the-compound-that-inspired-live-near-friends/
1•surprisetalk•4m ago•0 comments

/Llms.txt File

https://llmstxt.org/
1•surprisetalk•4m ago•0 comments

Show HN: Gold In Egypt – Arabic-first gold price tracker, shabka calculator

https://www.goldinegypt.com
1•eibrahim•4m ago•0 comments

Show HN: Nexus – Agent economy protocol built on A2A and MCP

https://github.com/Francosimon53/nexus
1•francosimon•4m ago•1 comments

Open Source, Decentralized Memory Layer for AI Agents

https://github.com/aayoawoyemi/Ori-Mnemos
1•starro____•4m ago•0 comments

Built a small Postgres tool. Would love some honest feedback

1•hari_prasadd•5m ago•0 comments

Show HN: I built a live race between LLMs to see which generates tokens fastest

https://llm-racing.vercel.app/
1•baristaGeek•6m ago•0 comments

Convenience or liquidity valve? Buy Now, Pay Later and homeowner balance sheets

https://www.jpmorganchase.com/institute/all-topics/community-development/convenience-or-liquidity...
1•petethomas•7m ago•0 comments

Going Offline

https://goingoffline.adactio.com/
1•Tomte•7m ago•0 comments

Study finds 77% of US national parks are highly vulnerable to climate change

https://phys.org/news/2026-03-national-highly-vulnerable-climate.html
1•littlexsparkee•7m ago•0 comments

IOcomposer – Free IDE for nRF54 bare-metal dev (no Devicetree/Kconfig required)

https://iocomposer.io/
1•yokostuno•9m ago•1 comments

Solid-notion: The open-source CLI that turns Notion into a Git-like workflow

https://github.com/vincentdchan/solid-notion
1•okcdz•9m ago•1 comments

I built a coupon and deal hunter extension

1•keemyng•9m ago•1 comments

AI Hallucinations

https://gurubase.io/blog/2026/ai-hallucinations-real-risks-and-how-to-prevent-them/
1•fatihbaltaci•10m ago•0 comments

AI AI Newsletter

https://blog.miloslavhomer.cz/ai-ai-newsletter/
1•ArcHound•10m ago•0 comments

Open-source AI hardware could weaken Big Tech's grip on AI

https://restofworld.org/2026/current-ai-bhashini-open-source-handheld-device-2/
1•Brajeshwar•10m ago•0 comments

Data centres in space: less crazy than you think

https://www.economist.com/science-and-technology/2026/03/02/data-centres-in-space-less-crazy-than...
1•Brajeshwar•10m ago•0 comments

After a lawsuit, USDA agrees to share climate risk data with farmers

https://grist.org/food-and-agriculture/after-a-lawsuit-usda-agrees-to-share-climate-risk-data-wit...
1•Brajeshwar•10m ago•0 comments

Py2many: Transpiler of Python to many other languages

https://github.com/py2many/py2many
1•BerislavLopac•11m ago•0 comments

Ask HN: If your project is free, what are you building and why keep it free?

1•LeanVibe•11m ago•0 comments

Show HN: Cursor Rules for 16 Frameworks (React, Go, Rust, Python, etc.)

https://github.com/survivorforge/cursor-rules
1•SurvivorForge•12m ago•0 comments

Humanity trumps politics: stop the escalation

https://cyrusradfar.com/thoughts/humanity-trumps-politics
1•cyrusradfar•12m ago•1 comments

The AI Coding Velocity Trap

https://vnturing.github.io/blog/posts/the-velocity-trap/
2•elcapithanos•12m ago•0 comments