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•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!

Join the Independent Science Society! (A New Kinda Science Society)

https://chillphysicsenjoyer.substack.com/p/join-the-independent-science-society
1•crescit_eundo•1m ago•0 comments

JLink JTAG Access on the Pinecil

https://danielmangum.com/posts/jlink-jtag-pinecil/
2•hasheddan•2m ago•0 comments

NixOS 26.05 Released

https://nixos.org/blog/announcements/2026/nixos-2605/
1•trulyrandom•3m ago•0 comments

Problematic TF Providers

https://newsletter.masterpoint.io/p/problematic-tf-providers
1•mooreds•3m ago•0 comments

Why the U.S. cattle herd is at a 75-year low

https://text.npr.org/nx-s1-5719511
1•mooreds•3m ago•0 comments

Airlines Can't Charge You for What You Wear

https://voyagecoat.com/
1•mooreds•4m ago•0 comments

Spatial IDE's for agentic coding workflows

1•Imbiss•4m ago•0 comments

Lossless URL Compressor – Piss.zip

https://piss.zip
1•Erenay09•6m ago•0 comments

AI demand absorbs wafer capacity, crushing budget PC segment

https://www.trendforce.com/presscenter/news/20260529-13068.html
2•Ember_Wipe•10m ago•0 comments

Microsoft slaps new coat of paint on Copilot, buries annoying button

https://www.theregister.com/ai-ml/2026/05/29/microsoft-slaps-new-coat-of-paint-on-copilot-buries-...
1•Bender•13m ago•0 comments

Neuro-Bayesian architecture in economic modeling

https://romankurnovskii.com/en/research/neuro-bayesian-architecture-in-economic-modeling/
1•djangofree•16m ago•0 comments

The software rebound is real, but not every big name is back

https://finance.yahoo.com/news/the-software-rebound-is-real-but-not-every-big-name-is-back-chart-...
1•jaynate•17m ago•0 comments

SSH authorized_keys command restriction to isolate container access

https://vxlabs.com/2026/05/30/ssh-command-restriction-container-to-host/
2•kobieps•17m ago•0 comments

Replimune's Drug Got Third Chance After White House Intervention

https://www.wsj.com/health/pharma/how-replimunes-drug-got-third-chance-after-white-house-interven...
3•impish9208•18m ago•1 comments

US mass layoffs tracker via WARN ACT notices

https://layoffs.kadoa.com/
3•ck2•19m ago•1 comments

Online Sleuthing Helped Catch the 'Google Insider' on Polymarket

https://www.wsj.com/finance/currencies/how-online-sleuthing-helped-catch-the-google-polymarket-tr...
1•1vuio0pswjnm7•21m ago•1 comments

Why the Next Datacenter Should Be Sized for a Village, Not a City

https://nicolabortignon.com/posts/community-datacenter-demand-shaping/
3•snickmy•22m ago•0 comments

Show HN: SnapState – Native Swift window manager for macOS

https://getsnapstate.com
1•soulsniper•23m ago•0 comments

Text Extraction from Images via Curl

https://softweavers.net/image-to-text.html
1•noboruma•23m ago•1 comments

Tech companies desperately want to film you doing chores

https://www.theverge.com/ai-artificial-intelligence/940007/ai-companies-will-pay-for-robot-traini...
1•1vuio0pswjnm7•24m ago•1 comments

AI and Taste

https://twitter.com/joulee/status/2054275672563175834
1•sanj•24m ago•0 comments

Mocks Are the Little-Death: Escaping the Mirage of Green Tests

https://lackofimagination.org/2026/05/mocks-are-the-little-death-escaping-the-mirage-of-green-tests/
2•tie-in•25m ago•0 comments

QEMU mulls relaxing AI contribution ban

https://www.theregister.com/ai-ml/2026/05/29/qemu-mulls-relaxing-ai-contribution-ban/5248638
1•Bender•27m ago•0 comments

'Solve all diseases,' you say?

https://www.theverge.com/column/935021/google-io-gemini-for-science-alphafold-alphagenome-ai-health
1•1vuio0pswjnm7•28m ago•0 comments

Lone attacker published 14 malicious NPM packages

https://www.theregister.com/security/2026/05/29/14-malicious-npm-packages-impersonated-opensearch...
1•Bender•29m ago•1 comments

Monero One – Private Monero Wallet for iOS

https://monero.one
3•Cider9986•30m ago•0 comments

Use RSS Anyway

https://ryanxcharles.com/blog/2026-05-30-use-rss-anyway/
1•berlianta•30m ago•0 comments

Yes, scientists can be hostile to new ideas. So should you

https://bigthink.com/starts-with-a-bang/scientists-hostile-new-ideas/
1•leephillips•32m ago•0 comments

How Do You Identify a Good Manager?

https://academic.oup.com/qje/article/141/2/1581/8435315
3•SiempreViernes•34m ago•1 comments

Handmade Hawaiian Islands Map

https://www.notesfromtheroad.com/roam/hawaiian-islands-map.html
1•bovermyer•36m ago•0 comments