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!

You Probably Forget How Cheap Memory Used to Be

https://www.nextplatform.com/store/2026/08/25/you-probably-forget-how-cheap-memory-used-to-be-and...
1•jonbaer•51s ago•0 comments

WebMCP Challenge – OpenAI

https://openai.com/webmcp-challenge/
1•tilt•1m ago•0 comments

Show HN: Every push-up becomes an attack in a camera-counted RPG game

https://pushup.quest/
1•not_wowinter13•2m ago•0 comments

Crypto's Killer App: Buying the Government It Once Defied

https://jeffreylminch.substack.com/p/cryptos-killer-app-buying-the-government
2•rmason•2m ago•0 comments

Programming as a Hobby in the Age of AI

https://www.bennadel.com/blog/4908-programming-as-a-hobby-in-the-age-of-ai.htm
1•rmason•4m ago•0 comments

When Vibecoding Is Safe

https://friedkielbasa.substack.com/p/when-vibecoding-is-actually-safe
1•fkozlowski•4m ago•0 comments

Amazon service that Jeff Bezos called artificial AI is shutting down

https://www.cnbc.com/2026/08/25/amazon-service-that-jeff-bezos-called-artificial-ai-is-shutting-d...
2•kjhughes•5m ago•0 comments

Omarchy – Linux that is capitalizing on AI momentum

3•orsenthil•6m ago•0 comments

Show HN: Invader – an indie iOS podcast player that never phones home

https://invader.gg/
1•HeadOfProbing•6m ago•1 comments

The Texas Grid Has Had a Boring Summer Thanks to Batteries

https://heatmap.news/energy/texas-grid-reliability-batteries
3•coloneltcb•6m ago•0 comments

Re-fueling while cycling made all the difference

https://text.tchncs.de/after-hours-engineering/re-fueling-while-cycling-made-all-the-difference
2•pizzaiolo•6m ago•0 comments

150 Years of Global Stock Returns – The Birthplace Lottery

https://beyondpassive.substack.com/p/150-years-of-global-stock-returns
1•rzk•7m ago•0 comments

UmmahRank – sponsor a listing, your bid sets your rank

https://www.ummahrank.pro/`
1•nothanii•8m ago•0 comments

What will be left for us to work on

https://ICML.cc/virtual/2026/invited-talk/67274
1•Cloudly•8m ago•1 comments

Steampunk Computer Works as Long as I Have Fire [video]

https://www.youtube.com/watch?v=34SSmx31d2U
1•watercooler_guy•9m ago•0 comments

Show HN: We built the smallest dual-band aircraft tracker

https://pantsforbirds.com/the-worlds-smallest-dual-band-ads-b-receiver-module/
3•CoolNamesAllTkn•12m ago•0 comments

Scaling Memory Safety: AI-Assisted Rewrites of C/C++ Dependencies to Rust

https://bughunters.google.com/blog/scaling-memory-safety
1•coffeeaddict1•13m ago•0 comments

Show HN: Devx – Autonomous AI coding agent built for Android Termux and desktop

https://github.com/apvcode/Termux-Dev
1•apvcode•13m ago•1 comments

Mark Walter's Troubles Are Disrupting the Insurance World's Hottest Trade

https://www.wsj.com/finance/investing/mark-walters-troubles-are-disrupting-the-insurance-worlds-h...
1•petethomas•13m ago•0 comments

mold: A Parallel Linker

https://arxiv.org/abs/2608.23228
1•matt_d•14m ago•0 comments

Nvidia's Blowout Second Quarter Leaves Investors Unmoved

https://www.wsj.com/tech/nvidia-earnings-q2-2027-nvda-stock-8983c8d1
1•TechTechTech•14m ago•0 comments

Nvidia Announces Financial Results for Second Quarter Fiscal 2027

https://nvidianews.nvidia.com/news/nvidia-announces-financial-results-for-second-quarter-fiscal-2027
3•NewCzech•15m ago•0 comments

Get woken up in the middle of the night when your agent hits an external blocker

https://github.com/whp-wessel/codex-stall-watch
1•whp_wessel•16m ago•1 comments

Brief independent investigation of agent behavior in OpenAI/Hugging Face hack

https://metr.org/blog/2026-08-26-openai-hugging-face-incident-investigation/#core-takeaways-about...
1•dwohnitmok•16m ago•0 comments

Product Development is being Rewritten

https://revyl.com/blog/product-development-is-being-rewritten/
1•anamhira•17m ago•0 comments

IBM Unveils Next Generation Dual-Architecture Processor

https://newsroom.ibm.com/2026-08-24-ibm-unveils-next-generation-dual-architecture-processor-for-i...
2•porridgeraisin•18m ago•0 comments

Satisfaction Is Not Absolute [pdf]

https://www.cambridge.org/core/services/aop-cambridge-core/content/view/5EC3AE5879D1F332C29972FA4...
1•Xcelerate•19m ago•0 comments

Infrastructure as Raclette

https://lois.postu.la/posts/infrastructure-as-a-raclette
1•kasmanit•19m ago•0 comments

I keep getting flagged for AI, but I suck at writing. How can I solve this?

1•quesobob•19m ago•4 comments

PureCSS Lace

https://diana-adrianne.com/purecss-lace/
1•colinprince•20m ago•0 comments