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!

History of Web Hosting

https://history-of-webhosting.exe.xyz
1•indigodaddy•31s ago•0 comments

A Gang of Thieves Pulled Off a Multimillion-Dollar Data Center Heist

https://www.nytimes.com/2026/07/12/magazine/data-center-heist.html
1•tysone•1m ago•0 comments

Performing live migrations of VMs at scale

https://www.sailresearch.com/blog/performing-live-migrations-of-massive-vms-at-scale
1•patrickdevivo•2m ago•0 comments

Telemedicina Para Venezuela

https://latydo.com/
2•latydo_33•7m ago•0 comments

Ban on broadcasting: EU Court clarifies that it also applies to free websites

https://www.eunews.it/en/2026/07/02/ban-on-broadcasting-russia-today-the-eu-court-clarifies-that-...
1•jruohonen•7m ago•0 comments

ArcBrush 1.5 – Node-based image editor (OCIO, OpenEXR, 97 nodes)

https://arcbrush.com/press/arcbrush-1-5/
1•albiabia•8m ago•0 comments

Syncthing for Dotfiles: Sync vs. Manage

https://sumguy.com/syncthing-for-dotfiles/
1•twp•13m ago•0 comments

Manual Work Is a Bug

https://queue.acm.org/detail.cfm?id=3197520
2•Anon84•19m ago•1 comments

Rethinking the Evaluation of Harness Evolution for Agents

https://arxiv.org/abs/2607.12227
3•Anon84•20m ago•0 comments

Generative AI is an Engineering Disaster

https://www.theatlantic.com/technology/2026/07/generative-ai-engineering-disaster/687901/
2•mizzao•20m ago•0 comments

What the I2Coalition Article Misses About DNS Abuse

https://circleid.com/posts/what-the-i2coalition-article-misses-about-dns-abuse
1•jruohonen•22m ago•0 comments

DoorDash CLI

https://twitter.com/andyfang/status/2077516962515599799
2•whalesalad•26m ago•0 comments

Skills Asset Protocol

https://neverhandedover.com
1•aznatkoiny•29m ago•0 comments

Fusing a 27B ternary LLM's whole decode step into one CUDA kernel

https://twitter.com/Akashi203/status/2077552491567157733
1•Jr23_xd•31m ago•0 comments

IBM stock closes down more than 25% after preannounced earnings results

https://finance.yahoo.com/markets/stocks/article/ibm-stock-closes-down-more-than-25-after-preanno...
3•kaycebasques•31m ago•1 comments

AI Data Center Companies for Sale – Owners Liquidating Assets Before Crash [video]

https://www.youtube.com/watch?v=iVkgD4phOHQ
1•xbmcuser•38m ago•0 comments

What makes soccer so enjoyable to watch?

https://thomasdhughes.com/the-beautiful-game/
1•thomasdhughes2•40m ago•0 comments

Shapeshifting

https://www.guidavid.com/writing/shapeshifting
2•gdss•41m ago•0 comments

Arbitration Information

https://arbitrationinformation.org
1•mtlynch•42m ago•0 comments

Free Remote Desktop Without Servers

https://github.com/Teylersf/freeremotedesk
2•pruufsocial•45m ago•1 comments

Tahr Security Skills

https://www.skills.sh/tahr-security/tahr-security-skills
2•zilbon•45m ago•0 comments

SQLite: The Advantages of Flexible Typing

https://sqlite.org/flextypegood.html
1•notRobot•45m ago•1 comments

Photo of Lionel Messi with Lamine Yamal as a Baby (2024)

https://apnews.com/article/messi-yamal-euro-photo-59f929c17bc0994134e7b63facd0ea0e
2•nither•46m ago•1 comments

Hamilton council votes down bylaw – No ban against data centre development

https://www.cbc.ca/news/canada/hamilton/data-centre-ban-voted-down-9.7271641
1•ChrisArchitect•50m ago•0 comments

The New Private Asset

https://chamath.substack.com/p/privacy-tokens
1•gmays•50m ago•0 comments

Show HN: Resultant Engineering Student Tools Site

https://resultant.tools/
2•will2092347•53m ago•0 comments

Show HN: MasterVault: Stop your LLM's context file from growing stale

https://github.com/JustMichael-80/MasterVault
1•ChronoDyneSys•55m ago•0 comments

AIcss: UI Components for AI Agents

https://www.aicss.dev
1•handfuloflight•56m ago•0 comments

Show HN: Throttle – Local Claude Cockpit for macOS, now with remote control

https://lorislab.fr/throttle/
1•lorislab•57m ago•0 comments

Asymmetric Apologies

https://sajarin.com/blog/asymmetric-apologies/
1•Sajarin•58m ago•0 comments