frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Would you believe try-catch-finally works in plain old C?

4•mf_taria•6mo 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•6mo ago
Finally!

Gold, guns and cartels: The battle for a billion-dollar mine

https://www.latimes.com/world-nation/story/2025-11-06/drug-cartels-el-chapo-mexico-gold
1•PaulHoule•49s ago•0 comments

Monad Blitz #18 – MachUps

https://machups.com
1•supitsj•49s ago•1 comments

India orders Apple to pre-install an undeletable state security app on iPhones

https://9to5mac.com/2025/12/01/india-orders-apple-to-pre-instal-an-undeletable-state-security-app...
1•dgathogo•1m ago•0 comments

Keeping Secrets: Diffie-Hellman and the NSA

https://stanfordmag.org/contents/keeping-secrets
1•fanf2•3m ago•0 comments

Top consultancies freeze starting salaries as AI threatens 'pyramid' model

https://www.ft.com/content/2b15601b-8d02-4abe-a789-7862874042be
1•thm•4m ago•0 comments

The Early Days of a High-Tech Startup Are Magic

http://www.textfiles.com/stories/17.lws
1•myth_drannon•4m ago•0 comments

Is anyone using Project Hummingbird?

https://www.redhat.com/en/technologies/linux-platforms/enterprise-linux/hummingbird
1•birdculture•6m ago•0 comments

10x-Backbone

https://engineering.fb.com/2025/10/16/data-center-engineering/10x-backbone-how-meta-is-scaling-ba...
1•saditya9211•7m ago•0 comments

Closing Central Madrid to Cars Resulted in 9.5% Boost to Retail Spending

https://www.forbes.com/sites/carltonreid/2019/03/08/closing-central-madrid-to-cars-resulted-in-9-...
2•mooreds•8m ago•1 comments

Agile's Test Stands Supporting Firefly's Lunar Program

https://agilespaceindustries.com/press/agiles-test-stands-supporting-fireflys
1•mooreds•9m ago•0 comments

A startup in Mongolia translated my book

https://blog.pragmaticengineer.com/traveling-to-mongolia/
1•mooreds•9m ago•0 comments

KOReader: Open-source e-reader App

https://koreader.rocks/
1•lordleft•9m ago•0 comments

Ask HN: What's the current go-to for replacing Spotify's "Discover Weekly?"

1•ramon156•9m ago•0 comments

WW1 toxic compound sprayed on Georgian protesters, BBC evidence suggests

https://www.bbc.com/news/articles/czrk7g50e1po
2•etiam•15m ago•0 comments

How can I have a Win32 drop-down combo box with a read-only edit control?

https://devblogs.microsoft.com/oldnewthing/20251128-00/?p=111820
2•susam•15m ago•0 comments

Ask HN: Someone impersonates my GitHub project, what to do?

2•nilsherzig•16m ago•0 comments

Show HN: CodeModeTOON – MCP orchestrator for workflows in TypeScript

https://github.com/ziad-hsn/code-mode-toon
1•ziad-hsn•18m ago•0 comments

Ruby Is Not a Serious Programming Language

https://www.wired.com/story/ruby-is-not-a-serious-programming-language/
1•mikece•18m ago•1 comments

Webamp Skins

https://skins.webamp.org/
2•vednig•20m ago•0 comments

50% Off Cyber Monday Deal macOS Screenshot App

https://www.screensnap.pro/pricing
1•m_0_r_g_a_n_•20m ago•0 comments

We built Quickinim – a simple SaaS to fix procurement chaos (no ERP needed)

https://quickinim.com/
2•Gormanu•21m ago•0 comments

Google Now (2012)

https://www.techradar.com/news/software/operating-systems/google-io-2012-google-introduces-siri-k...
2•fidotron•22m ago•0 comments

Why xor eax, eax?

https://xania.org/202512/01-xor-eax-eax
2•hasheddan•22m ago•0 comments

Show HN: Next AI Draw.io – Interactive Diagrams Creating with LLMs

https://github.com/DayuanJiang/next-ai-draw-io
2•jiangdayuan•25m ago•2 comments

Infographics for API and Web Development

https://bytebytego.com/guides/api-web-development/
1•teja0404•25m ago•0 comments

How do you handle lost webhooks in production?

1•everydaydev•26m ago•0 comments

The 'Free' World Is Coming for Your Private Messages

https://reason.com/2025/12/01/the-free-world-is-coming-for-your-private-messages/
1•pseudolus•29m ago•0 comments

Humans, artificial neural networks exhibit some similar patterns during learning

https://phys.org/news/2025-11-humans-artificial-neural-networks-similar.html
1•pseudolus•31m ago•0 comments

DeepSeek-V3.2 Release

https://api-docs.deepseek.com/news/news251201
1•pr337h4m•35m ago•0 comments

Retracted: Safety Evaluation and Risk Assessment of the Herbicide Roundup

https://www.sciencedirect.com:5037/science/article/pii/S0273230099913715
2•mindracer•35m ago•0 comments