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!

Opinion: Religion Lowers Individual Morality

1•ReligionKills•44s ago•0 comments

Show HN: Lime Cleaner – macOS cleaner for devs

https://app.paymug.co/buy/lime-cleaner-mac
1•docuru•1m ago•1 comments

PATM: Looking for Contributors and Testers

https://github.com/jamalhill12321-hash/patm
1•jamalhill•1m ago•1 comments

There's No Such Thing as an AI 'Lab'

https://www.theatlantic.com/technology/2026/09/stop-calling-ai-companies-labs/688528/
1•littlexsparkee•2m ago•0 comments

Cancer Capital: VC didn't use to work like this

https://www.anildash.com/2026/09/04/vc-didnt-use-to-work-like-this/
1•dotcoma•2m ago•0 comments

Murdoku – Murder mystery meets Sudoku

https://murdoku.com/play/
1•gmargari•3m ago•0 comments

GhostMeet – A Google Meet summarizer with no bot in your call

https://chromewebstore.google.com/detail/ghostmeet/figodpdocbgklmeglohdjomeikabfpeo
1•sahilpradhan•7m ago•0 comments

Route Planner for Edo Period Japan

https://maps.chizutodesign.com/edo-routing/
2•ryzvonusef•10m ago•1 comments

Cosco calls US espionage allegations 'groundless'

https://www.chinadaily.com.cn/a/202609/04/WS6a9a5c0fe4b06d4aa055c61b.html
1•pir8life4me•10m ago•0 comments

I built a multiplayer version of the 4,500-year-old Royal Game of Ur

https://royalgameofur.app
2•potentdream•10m ago•0 comments

Plane spotter or Chinese spy? Ontario university student suspected of espionage

https://www.cbc.ca/news/world/university-of-waterloo-student-arrested-michigan-9.7328984
1•pir8life4me•12m ago•1 comments

CSS is Turing Complete (2022)

https://github.com/Mooninaut/css-is-turing-complete
2•lukasgelbmann•18m ago•0 comments

Show HN: ActraDeck – Put risky coding-agent actions back in front of a human

https://github.com/actradeck/actradeck
2•TKMD•22m ago•0 comments

Reverse Engineering an ASIC

https://www.outercloud.dev/blogs/reverse-asic/
2•outercloud•23m ago•0 comments

Air India A320 pilot could have triggered hydraulic shutdown that injured 17

https://avherald.com/h?article=53cc9465
3•r2sk5t•26m ago•1 comments

Religion is dumb. The religious ruin reality

4•GodIsFake•30m ago•2 comments

Auto alliance asks for permanent ban on Chinese cars

https://thehill.com/policy/transportation/6070614-auto-companies-congress-letter-chinese-car-ban/
3•signa11•32m ago•0 comments

Once again, overcompliance affects Venezuelan users, this time Cursor

https://twitter.com/LuisAlejandro/status/2096022819024904513
2•firekvz•35m ago•1 comments

Repairing Traces on a Delidded Pentium III CPU Gone Wrong

https://hackaday.com/2026/09/04/repairing-traces-on-a-delidded-pentium-iii-cpu-gone-wrong/
2•colinprince•41m ago•0 comments

Google will limit how much memory Android apps can use from February 2027

https://thenextweb.com/news/google-android-app-memory-limits-play-store
3•doctaj•42m ago•0 comments

Caching audits: Five antipatterns that cost performance and money

https://vercel.com/kb/guide/caching-antipatterns
3•flashbrew•42m ago•0 comments

Ask HN: Replicate ChatGPT/Anthropic Voice Mode?

2•tito•43m ago•0 comments

Word42 1.0.0 Released

3•andreasrosdal•44m ago•0 comments

Cloud Agents as TypeScript Functions

https://deployagent.sh
3•iacguy•47m ago•0 comments

Microsoft Zenith: a 'distraction-free Windows experience' for developers

https://www.theverge.com/news/990051/microsoft-project-zenith-windows-developers
3•tosh•1h ago•0 comments

FleetIntel: Fleet Performance Dashboard

https://fleetintel.onrender.com
2•jjaaluk•1h ago•0 comments

Are you good at spotting fake news?

4•azermite•1h ago•0 comments

Big Tech Wants to Be Your Bible Translator

https://jaisenmathai.com/faith-and-ai/big-tech-wants-to-be-your-bible-translator/
3•jmathai•1h ago•0 comments

Tell HN: I want to see the same moon as you

4•UnderABlueMoon•1h ago•1 comments

Warren Harding and the Forgotten Depression of 1920

https://isi.org/warren-harding-and-the-forgotten-depression-of-1920/
1•CGMthrowaway•1h ago•0 comments