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!

So many fake AI marketing articles on home page of HN in working days? So evil?

1•lilerjee•42s ago•0 comments

Everyone signs decisions. Nobody verifies done

https://zerotrustintelligence.io/verified-done.html
1•tgfw17•1m ago•0 comments

Show HN: MoneyCo – A coding agent built for accounting

https://thecompany.money/
1•warthog•7m ago•0 comments

New dataclass features for old Pythons

https://github.com/arvidma/dataclasses
1•apelapan•9m ago•1 comments

Newly unveiled Scottish fossils fill Romer's Gap (2012)

https://www.thehistoryblog.com/archives/15375
1•simonebrunozzi•12m ago•0 comments

Not a Website

https://notawebsite.fun
3•spaceman_2020•13m ago•0 comments

Many businesses using AI to save time, but do they know what they're doing?

https://www.rnz.co.nz/news/business/874814/many-businesses-using-ai-to-save-time-but-do-they-know...
4•billybuckwheat•15m ago•0 comments

Business Impersonation Fraud: When Trust Is the Target

https://medium.com/@alanscottencinas/business-impersonation-fraud-when-trust-is-the-target-1f4882...
1•encinas88•16m ago•0 comments

Mind the Gap: Policy vs. Reality in Post-Quantum TLS Deployment

https://arxiv.org/abs/2607.29005
1•sbulaev•16m ago•0 comments

OpenAI's Unreleased Model Astra Solves Ten Major Open Mathematics Problems

https://thezvi.substack.com/p/openais-unreleased-model-astra-solves
1•7777777phil•17m ago•0 comments

Run your agent's code where the LLM, TTS, and calls run

https://microsite-actor-demo-cfca6e9d-3.telnyxcompute.com/
1•fionaattelnyx•20m ago•1 comments

The Vietnam of Computer Science (2006) [pdf]

https://www.odbms.org/wp-content/uploads/2013/11/031.01-Neward-The-Vietnam-of-Computer-Science-Ju...
1•Tomte•23m ago•0 comments

Castlemap – Guess the Castle Game

https://thecastlemap.com/guess/
1•Flightmussy•24m ago•1 comments

Submillisecond

https://www.submillisecond.com/
1•knaier•24m ago•0 comments

Apple challenges UK government's latest demand for iCloud backdoor: report

https://techcrunch.com/2026/08/03/apple-challenges-uk-governments-latest-demand-for-icloud-backdo...
1•speckx•25m ago•0 comments

KisakCOD – open-source reimplementation of Call of Duty 4 Multiplayer

https://github.com/SwagSoftware/KisakCOD
2•skibz•25m ago•0 comments

Further Developments About Internal AI Models Hacking Things

https://thezvi.substack.com/p/further-developments-about-internal
1•paulpauper•25m ago•0 comments

The One Town That Wants a Data Center

https://www.theatlantic.com/technology/2026/08/jay-maine-wants-data-center/688043/
3•paulpauper•26m ago•0 comments

Show HN: City-wise comparison of Bribes across India – bribes.fyi

https://bribes.fyi/cities
1•neverenderr•26m ago•1 comments

Kimi K3 Built the Game. I Still Had to Play It

https://www.drjoshcsimmons.com/writing/kimi-k3-built-the-game-i-still-had-to-play-it
1•joshcsimmons•26m ago•0 comments

The hallmarks of protein and amino acid restriction in aging and longevity

https://www.cell.com/cell-press-blue/fulltext/S3051-3839(26)00077-0
1•simonebrunozzi•29m ago•0 comments

Sure mate, buy me a bloody coffee

https://peateasea.de/sure-mate-buy-me-a-bloody-coffee/
2•speckx•32m ago•0 comments

The AI Bailout Could Be Baked into the AI Bubble

https://prospect.org/2026/08/03/ai-bailout-could-be-baked-into-bubble-private-equity-life-insurer...
4•Ambolia•32m ago•0 comments

Rust Project goals 2026: Reflection and Comptime

https://github.com/rust-lang/rust-project-goals/blob/main/src/2026/reflection-and-comptime.md
1•Ygg2•32m ago•1 comments

How Many People Are in Space Right Now

https://www.howmanypeopleareinspacerightnow.com/
3•EndXA•33m ago•0 comments

"Shock from Jensen Huang's Bubble Will Be Severe"

https://news.sbs.co.kr/english/article.do?news_id=N1008688017
3•mapping365•34m ago•0 comments

Why Everything Is Getting Louder

https://www.theatlantic.com/magazine/archive/2019/11/the-end-of-silence/598366/
3•bookofjoe•35m ago•2 comments

SEC Semi-Annual Reporting Proposal Tracker

https://tzachizach.github.io/sec-semi-annual-proposal-tracker/letters.html
1•petethomas•35m ago•0 comments

HedgeHog: The new standard in backgammon analysis

https://hedgehog-bg.com/frontpage
2•twright•36m ago•0 comments

Games of FIFA World Cup 2026

https://siddhesh.substack.com/p/wc26
1•weekendvampire•36m ago•0 comments