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!

Truck Parking Club

https://truckparkingclub.com/
1•mooreds•48s ago•0 comments

Harvest Price Impact Calculator

https://harvest-cash-grab.vercel.app/
1•mooreds•2m ago•0 comments

Show HN: Git·vodka – a self-hosting Git remote on Cloudflare's free tier

https://git.vodka/~c/git-vodka
1•calganaygun•3m ago•0 comments

Backward Program Slicing for Binary Analysis with Ghidra

https://blog.react0r.com/2024/07/15/backward-program-slicing/
1•YAYERKA•4m ago•0 comments

OpenAI Is Slowing Down Its AI Training

https://time.com/article/2026/08/18/openai-slowing-training/
2•wertyk•4m ago•0 comments

Show HN: Hackwithus – a Hackathon for getting your first users

https://www.hackwithus.dev/join
1•greyzor7•4m ago•0 comments

Cargo Thefts Have Turned Violent in Pursuit of AI Hardware

https://www.wired.com/story/the-worst-ive-ever-seen-cargo-thieves-are-turning-violent-in-pursuit-...
1•throw0101d•5m ago•1 comments

A Government of Multimillionaires

https://english.elpais.com/usa/2026-08-18/a-government-of-multimillionaires-trump-appointed-57-of...
1•root-parent•7m ago•0 comments

Binder: Turn a Git repo into a collection of interactive notebooks

https://mybinder.org/
1•maciej_pacula•8m ago•0 comments

Codex and Hermes independently found the same critical flaw in my cryptocurrency

https://atto.cash/blog/age-of-continuous-audits
1•rotilho•9m ago•0 comments

Daily MCP Tool Drifts- 8,931 of 12,391 drifted with no version bump

https://mcpindex.ai/ledger
1•gatuamgb•10m ago•0 comments

Top album releases linked to rise in fatal crashes

https://www.theguardian.com/world/2026/aug/17/top-album-releases-linked-to-rise-in-fatal-crashes-...
1•speckx•10m ago•0 comments

We've solved many medical mysteries. Where are the cures? [video]

https://www.ted.com/talks/saloni_dattani_we_ve_solved_many_medical_mysteries_where_are_the_cures
1•JohnHammersley•11m ago•0 comments

Meta lawsuits: Is social media facing a global legal reckoning?

https://www.aljazeera.com/news/2026/8/18/meta-lawsuits-is-social-media-facing-a-global-legal-reck...
3•billybuckwheat•11m ago•0 comments

Iran is losing control of the Strait of Hormuz

https://www.cnn.com/2026/08/18/business/iran-strait-of-hormuz-oil
2•MilnerRoute•12m ago•0 comments

Viral Halloween 'De-Flock' campaign gains momentum

https://www.dexerto.com/entertainment/flock-camera-controversy-explained-as-viral-halloween-de-fl...
1•eclark•14m ago•0 comments

Ask HN: Why is this my favicon for HN?

1•brianpan•14m ago•0 comments

Odin's New Inline Assembly Templates

https://odin-lang.org/docs/inline-asm/
1•gingerBill•15m ago•0 comments

In VR experiences, emotion and agency more important than HD graphics (study)

https://wjamesau.substack.com/p/in-virtual-experiences-emotion-and
1•SLHamlet•15m ago•0 comments

Is There a Simple Solution to the Fermi Paradox? [video]

https://www.youtube.com/watch?v=abvzkSJEhKk
1•simonebrunozzi•15m ago•0 comments

Show HN: Claw-coder- the first autonomous local first coding agent

https://openmindedai.org/product
1•gabriel_oauth•18m ago•0 comments

US states accuse Meta of covering up research on teen social media addiction

https://www.theguardian.com/technology/2026/aug/18/meta-child-safety-addiction-lawsuit-states
3•jethronethro•19m ago•0 comments

Norway Should Buy OpenAI

https://www.onethousandmeans.com/p/norway-should-buy-openai
53•alexeigannon•20m ago•31 comments

Beware Management Consultants

https://about.iceland.co.uk/our-story/the-dark-ages/beware-management-consultants/
4•KolmogorovComp•21m ago•0 comments

Solution to Apple Siri Europe DMA Conflict

https://huggingface.co/datasets/sangamdas/Apple-Siri-Europe-DMA-Interoperability-Technical-Solution
2•sangamdas•22m ago•0 comments

200B Tokens Later: A Month of Letting AI Agents Decompile MW2

https://momo5502.com/posts/2026-08-17-mw2-decompilation/
3•Philpax•22m ago•1 comments

Copilot tricked into telling reseachers how to hack itself

https://www.theregister.com/research/2026/08/18/copilot-tricked-into-telling-reseachers-how-to-ha...
3•DemiGuru•23m ago•0 comments

Box Scores

https://boxscore.email/mlb/2026-08-18
2•dfee•24m ago•0 comments

From Prompt to Hardware

https://www.axiometa.io/
2•guest__user•24m ago•0 comments

You Can Buy a Fairphone in the US

https://www.wired.com/story/you-can-finally-buy-a-fairphone-a-sustainable-repairable-smartphone-i...
3•m463•24m ago•0 comments