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!

Restored clearance of senescent neutrophils by macrophages limits organ aging

https://www.science.org/doi/10.1126/science.aea3075
1•zeristor•32s ago•0 comments

Fructose Appears to Loosen Cancer Cells and Help Them Spread

https://www.sciencealert.com/common-sugar-appears-to-loosen-cancer-cells-and-help-them-spread
1•Jimmc414•1m ago•0 comments

Omarchy Quattro will be shipping this week

https://twitter.com/dhh/status/2086838674256273662
1•HiPHInch•2m ago•0 comments

EclipseFan – Interactive map of the August 12th 2026 solar eclipse in Europe

https://eclipsefan.org/?v=2&t=max&layers=eclipse%2Cbesselian%2Cumbra-live%2Cshadow-3d%2Ccloud-pro...
1•Markoff•4m ago•1 comments

TuFac – offline TOTP app with Google Authenticator QR import

https://github.com/mikegasche/TuFac/releases
2•mastermike8000•6m ago•0 comments

Why Addresses Have Numbers

https://thehistoricalinsights.page/2026/06/why-addresses-have-numbers.html
4•historical1234•9m ago•0 comments

Making JsDelivr's Origin More Reliable at Scale

https://www.jsdelivr.com/blog/making-jsdelivrs-origin-more-reliable-at-scale/
2•jimaek•11m ago•0 comments

Breaking the M365 Copilot Sandbox with ChatMate

https://zerolabs.rubrik.com/blog/breaking-m365-copilot-sandbox-chatmate
2•shivanshuag•11m ago•0 comments

Show HN: PicPocket – Dedicated 'chats' for photo-sharing (share to organize)

https://picpocket.io/
2•amr_shawky•11m ago•0 comments

A dating app inside Claude Code

https://terminal.dating
3•welshpony•12m ago•0 comments

We migrated off Enzyme in 2 weeks. It should have taken five years

https://asana.com/inside-asana/migrating-off-enzyme-2-weeks
2•pspeter3•12m ago•0 comments

China Bets on AI Stocks as It Races Against US for Chip, Tech Dominance

https://www.bloomberg.com/news/features/2026-08-09/china-bets-on-ai-stocks-as-it-races-against-us...
3•evo_9•15m ago•0 comments

Frost-GKR: a global trace protocol for batched Poseidon2B

https://lab.parano1d.org/research/frost-gkr-global-trace-protocol/
2•ignotusnemo•19m ago•0 comments

Exploiting System Management Mode with a very long interrupt

https://github.com/xoreaxeaxeax/smiiiiiiiiiiiiiiii
3•WhiteDawn•19m ago•0 comments

GLP-1 drugs linked to bigger jump in women’s employment than a college degree

https://finance.yahoo.com/healthcare/articles/harvard-study-links-glp-1-123000637.html
16•metadat•20m ago•1 comments

Kyverno Policies to Secure Your Kubernetes Cluster

https://medium.com/@devarshidev/5-kyverno-policies-to-secure-your-kubernetes-cluster-9fdbf971b7b2
2•devarshishimpi•21m ago•0 comments

Autoscaling MirageOS Unikernels in Mollymawk

https://blog.robur.coop/articles/2026-07-08-Autoscaling-MirageOS-unikernels-in-Mollymawk.html
5•andrewstetsenko•22m ago•0 comments

Trust is all you need, and all we've lost

https://r5d.me/trust-and-the-lack-thereof/
3•solaire_oa•22m ago•0 comments

Show HN: Ante, a coding agent in a single binary that runs offline

https://github.com/AntigmaLabs/ante
5•ubermon•23m ago•2 comments

Back to the Future of Handwriting Recognition

https://jackschaedler.github.io/handwriting-recognition/
5•at1as•24m ago•1 comments

Historical Discoveries That Reshaped Modern Historical Understanding

https://thehistoricalinsights.page/2026/08/historical-discoveries.html
2•historical1234•26m ago•0 comments

A macOS app for customizing which browser to start

https://github.com/johnste/finicky
2•mooreds•27m ago•0 comments

The Tragedy of the Cognitive Commons

https://arxiv.org/abs/2607.29380
2•jmintz•27m ago•0 comments

Show HN: Bio Tools – install drug design tools easily

https://github.com/David-OConnor/bio_tools
2•the__alchemist•27m ago•0 comments

Midlife Vascular Risk Burden and Dementia-Free Survival Years

https://www.neurology.org/doi/10.1212/WN9.0000000000000152
2•bookofjoe•27m ago•0 comments

Automatia Update: Next of Kin

https://libriscv.no/blog/next-of-kin/
2•fwsgonzo•27m ago•0 comments

A California Program Is Bringing Down the Cost of Heat Pumps by Buying Bulk

https://www.wired.com/story/california-group-buy-bringing-down-heat-pump-costs/
3•Brajeshwar•28m ago•0 comments

4 hours and 37 minutes of serving nothing

https://koleslaw.ai/blog/running-a-30b-model-on-spot-gpus
4•murphman•29m ago•0 comments

The Great Chinese Oil Mystery

https://www.theatlantic.com/economy/2026/07/china-iran-usa-oil-prices/688086/
4•alphabetatango•29m ago•1 comments

Show HN: MergeImage – merge and stitch images locally in the browser

https://mergeimage.app/
2•lby910722•29m ago•0 comments