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!

Writing a Fast Compiler (2024)

https://tibleiz.net/blog/2024-02-04-writing-a-fast-compiler.html
1•haeseong•50s ago•0 comments

Am I better because of AI?

https://bytecode.news/posts/2026/08/am-i-better-because-of-ai
1•jottinger•1m ago•0 comments

Mexico Crackdown on Coastal Development Underway

https://yucatanmagazine.com/mexico-crackdown-on-coastal-development/
1•untiledsource•2m ago•0 comments

GPT 5.6 Sol is the best "vision" model OpenAI ever released

https://blog.roboflow.com/openai-gpt-5-6/
2•plurby•3m ago•0 comments

Show HN: Repliflow – a node canvas for chaining Replicate image and video models

https://github.com/tommyjepsen/repliflow
1•tommyjepsen•3m ago•0 comments

Cumora the Team Harness from Yetone

https://github.com/yetone/cumora
1•wey-gu•5m ago•0 comments

Intercom: Doing the right thing when things go wrong

https://www.intercom.com/blog/doing-the-right-thing-when-things-go-wrong/
1•jreynar•10m ago•0 comments

ESP32 Firmware Development with Docker Sandboxes

https://www.docker.com/blog/reproducible-esp32-firmware-development-with-docker-and-docker-sandbo...
1•mfranzon•10m ago•0 comments

AI market correction is coming, ECB blog predicts

https://www.reuters.com/business/autos-transportation/ai-market-correction-is-coming-ecb-blog-pre...
1•navjeetgill307•12m ago•0 comments

LLMs are (still) mostly powered by imitative learning, not RL

https://www.lesswrong.com/posts/wYpjXRLqbLbnmjbJP/llms-are-still-mostly-powered-by-imitative-lear...
1•surprisetalk•12m ago•0 comments

The Artifact Is No Longer Proof of Competence

https://eliasson.me/articles/the-artifact-is-no-longer-proof-of-competence
1•elitan•13m ago•0 comments

Argument AI App on iOS and Android

https://argumentapp.ai/
1•angryteacher•14m ago•1 comments

What happens when an AI agent stops being a disposable session?

https://www.dropstone.io/blog/dropstone-sdk-1-0
2•DarenWatson•15m ago•0 comments

Show HN: Lips Scheme 1.0.0-beta.22 with full call/cc and TCO

https://lips.js.org/blog/beta-continuations-and-tco
1•jcubic•15m ago•0 comments

Travis Kalanick on VC: "a super high bar for a VC is: do no harm"

https://twitter.com/haroonmeer/status/2089310997420933398
1•mh_•16m ago•0 comments

Death by a Thousand Small Decisions

https://codebytom.blog/2026/07/death-by-a-thousand-small-decisions/
1•theanonymousone•17m ago•0 comments

Who Owns Commodore? The Retro PC Brand Still Exists, but a Lot Has Changed

https://www.bgr.com/2233625/who-owns-commodore-retro-brand/
2•theanonymousone•17m ago•0 comments

Ryde Data Breach Exposes 4.5M Customer Accounts Across Nordic Region

https://ebuildersecurity.se/en/cyber-news/ryde-data-breach-4-5-million-nordic-accounts-2026/
2•absqueued•18m ago•0 comments

Extreme space weather could disrupt flights, expose passengers to high radiation

https://www.surrey.ac.uk/news/extreme-space-weather-could-disrupt-flights-and-expose-passengers-h...
1•giuliomagnifico•18m ago•0 comments

Solving Hack the Box Challenges with GPT‑5.6

https://theaq.blog/2026/08/17/solving-htb-challenges-with-openai-gpt-5.6.html
2•HonzaT•19m ago•0 comments

'Can we accept what we have done or not done?'

https://www.theguardian.com/film/2026/aug/17/gaza-doctor-documentary
2•root-parent•20m ago•0 comments

And then the men with guns tell you to do it anyway

https://shkspr.mobi/blog/2026/08/and-then-the-men-with-guns-tell-you-to-do-it-anyway/
2•ColinWright•22m ago•1 comments

AI Has Plunged the Book Publishing Industry into Utter Chaos

https://www.wsj.com/arts-culture/books/generative-ai-book-publishing-be79a287
3•thm•22m ago•0 comments

We built AI accelerators to reduce the time from AI prototype to production

https://geekyants.com/ai-accelerator
2•Harish_0089•24m ago•1 comments

People are worried about America's solvency

https://www.ft.com/content/e04f286c-f5ed-46d1-8e3f-0bbe4cce4d3e
11•root-parent•27m ago•6 comments

UK Shared Rural Network roll-out passes key target

https://www.computerweekly.com/news/366648774/UK-Shared-Rural-Network-roll-out-passes-key-target
2•beardyw•30m ago•1 comments

RSS/Atom Feeds Are Critical

https://fyr.io/post/feeds-are-critical
1•ajdude•31m ago•0 comments

Vetted AI code is hard to justify

https://amoffat.github.io/blog/vetting-burnout.html
1•mpweiher•36m ago•0 comments

Ask HN: €300/mo to capture work you're doing. Tips how to reach right people?

2•Salanx•36m ago•0 comments

Trump Threatens to Bomb Oman

https://www.ft.com/content/d4d07198-498d-48d1-9e54-85f1febcd070
3•root-parent•38m ago•0 comments