frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Would you believe try-catch-finally works in plain old C?

4•mf_taria•1y ago
I was digging through some of my old repositories and found a C language extension I wrote years ago. Even now, I think it’s kinda cool — and I’d love for you to check it out.

https://github.com/simpart/c-try

It recreates `try {}` / `catch {}` / `finally {}` in plain C using just macros and global variables. There's also a `$` macro to propagate errors between function calls — a bit like a mini DSL for error handling.

You can find a working example in `test.c`.

It doesn't support nesting or multithreading, and yes, it abuses macros. But hey, it's C.

Comments

actionfromafar•1y ago
Finally!

Improvements to Std:Format in C++26

https://mariusbancila.ro/blog/2026/06/19/improvements-to-stdformat-in-c26/
1•rbanffy•3m ago•0 comments

Show HN: Bifrost Edge: runs on PC of ur organization and routes all AI traffic

https://docs.getbifrost.ai/edge/overview
1•aanthonymax•5m ago•1 comments

Daily Probiotic May Help Fight Depression in Older Adults

https://scitechdaily.com/scientists-say-a-daily-probiotic-may-help-fight-depression-in-older-adults/
1•Gaishan•6m ago•0 comments

Pixi: Fast, modern, and reproducible package management tool

http://pixi.prefix.dev/latest/
1•__rito__•7m ago•0 comments

Show HN: EGC - MCP server that gives AI coding tools memory across sessions

https://github.com/Fmarzochi/EGC
1•fmarzochi•9m ago•0 comments

PostGIS pull requests just a bunch of AI bots

https://en.osm.town/@zverik/116787982770421751
2•aendruk•10m ago•0 comments

Rent collections are down in New York – and no one's sure why

https://www.politico.com/news/2026/06/21/rent-collections-are-down-in-new-york-and-no-ones-sure-w...
3•JumpCrisscross•16m ago•0 comments

We just shipped something I don't think exists anywhere else in this space

https://www.moodlenstodo.info/
3•MoodlensTodo•16m ago•0 comments

A Small Fintech Challenge, and Why I Let Postgres Hold the Money

https://e-mahmoudi.me/blog/a-small-fintech-challenge-and-why-i-let-postgres-hold-the-money/
2•jeyem•17m ago•0 comments

W: Europe's alternative to mainstream social media

https://www.euronews.com/next/2026/06/19/w-thinks-it-has-the-x-factor-everything-to-know-about-eu...
2•vinni2•18m ago•0 comments

The notebooks Marie Curie filled with her research are still dangerous to touch

https://spacedaily.com/t-the-notebooks-marie-curie-used-in-her-research-remain-radioactively-cont...
3•binyu•23m ago•0 comments

Did my old job only exist because of fraud?

https://david.newgas.net/did-my-old-job-only-exist-because-of-fraud/
4•advisedwang•29m ago•0 comments

Jonathan Blow on why LLMs cannot program [video]

https://www.youtube.com/watch?v=DdjUDpU-as0
7•andy99•34m ago•1 comments

The Anatomy of an AI-Native Org

https://ajeygore.in/content/the-anatomy-of-an-ai-native-org
29•kiyanwang•36m ago•31 comments

"My 1992 view of the problems of computer programming in 1992"

https://blog.plover.com/prog/fortran-i.html
3•pavel_lishin•36m ago•0 comments

FDA advisors unanimously vote to approve Moderna's mRNA after agency drama

https://arstechnica.com/health/2026/06/fda-advisors-unanimously-vote-to-approve-modernas-mrna-aft...
15•worik•40m ago•7 comments

Apertus – Open Foundation Model for Sovereign AI

https://apertvs.ai/
36•T-A•40m ago•6 comments

PowerFox Browser

https://powerfox.jazzzny.me/
13•thisislife2•47m ago•3 comments

MsgMaster – an AI that turns your chaotic inbox into a prioritized workflow

https://msgmaster.ca/
3•isaaclaskine•47m ago•0 comments

Building a chill multiplayer gaming website

https://playfrooti.com/
3•hardikvora•47m ago•1 comments

Energy Security, Not Climate Goals, Is Now Driving the Clean Power Boom

https://oilprice.com/Alternative-Energy/Renewable-Energy/Energy-Security-Not-Climate-Goals-Is-Now...
4•rustoo•51m ago•0 comments

Ask HN: Is the hard part of adult friendship the second hangout?

5•thehgz•53m ago•2 comments

Everything Is Logarithms

https://alexkritchevsky.com/2026/05/25/everything-is-logarithms.html
29•E-Reverance•1h ago•0 comments

Securing the Future of AI Agents

https://deepmind.google/blog/securing-the-future-of-ai-agents/
3•gmays•1h ago•0 comments

How Donkey Kong Smashed King Kong (Universal vs. Nintendo)

https://www.gamingalexandria.com/wp/2026/06/how-donkey-kong-smashed-king-kong-universal-v-nintendo/
2•wicket•1h ago•0 comments

Stop wasting tokens and re explaining your project between sessions

https://github.com/raiyanyahya/recall
16•mateenah•1h ago•14 comments

Forward to Hell? Misusing Transparent DNS Forwarders for Amplification Attacks

https://labs.ripe.net/author/mkoch/forward-to-hell-on-misusing-transparent-dns-forwarders-for-amp...
3•zdw•1h ago•0 comments

Compression in ClickHouse

https://clickhouse.com/docs/data-compression/compression-in-clickhouse
2•tosh•1h ago•0 comments

Ozempic Came from a Monster – and It's Not Alone

https://www.sciencealert.com/ozempic-literally-came-from-a-monster-and-its-not-alone
3•thunderbong•1h ago•0 comments

Two Roads Through Two Chinatowns

https://sundaylongread.com/2026/01/23/philadelphia-chinatown-pittsburgh-history/
1•NaOH•1h ago•0 comments