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!

Ona Judge

https://en.wikipedia.org/wiki/Ona_Judge
1•mooreds•35s ago•0 comments

Striking Evidence for Forced Experimentation

https://tomstafford.substack.com/p/striking-evidence-for-forced-experimentation
1•pavel_lishin•44s ago•0 comments

'The Battle Line Has Been Drawn' Around Virginia's Data Centers

https://www.notus.org/metro/northern-virginia-data-centers-politics
1•mooreds•48s ago•0 comments

Majority of Americans Support Banning Social Media for Kids Under 16

https://www.pewresearch.org/short-reads/2026/07/01/majority-of-americans-support-banning-social-m...
1•karakoram•1m ago•0 comments

It is investors vs. gamers as Sony ditches discs

https://www.ft.com/content/67d7afb6-117c-4335-815c-72000e610b65
1•1vuio0pswjnm7•3m ago•0 comments

Anthropic wants to develop its own drugs

https://www.theverge.com/ai-artificial-intelligence/961311/anthropic-claude-science-ai-drug-devel...
1•cdrnsf•4m ago•0 comments

Damaged Earth Catalog

https://damaged.bleu255.com/
1•Duanemclemore•5m ago•1 comments

Big Tech Has Suddenly Flipped on the AI Jobs Wipeout Scenario

https://www.wsj.com/tech/ai/ai-workers-tech-ceos-job-losses-afc71e15
1•Brajeshwar•6m ago•0 comments

Accusation, Trust, and the Future of Vulnerability Disclosure

https://www.lawfaremedia.org/article/accusation--trust--and-the-future-of-vulnerability-disclosure
1•ano-ther•8m ago•0 comments

Apple Predicted Siri AI in 1987

https://www.youtube.com/watch?v=ForO33IynkA
1•gdubs•10m ago•0 comments

Predicting Build Cache Time Savings with Quick Connect

https://bitrise.io/blog/post/predicting-build-cache-time-savings-with-quick-connect
1•viktorbenei•10m ago•0 comments

Has China Obtained The World’s Most Important Machine?

https://www.economist.com/china/2026/07/05/has-china-obtained-the-worlds-most-important-machine
2•karakoram•11m ago•1 comments

HN: Project Aetheris – Open-source fluid dynamics to replace chemical cooling

https://github.com/PureWaterArtist/VortexArt88-
2•VortexArt88•11m ago•0 comments

Don't give Fable all the power

https://starts.live/blog/dont-give-fable-all-the-power
2•sgraphics8•12m ago•1 comments

Flock Defense "No Expectation of Privacy in Public" Is Wrong

https://ipvm.com/reports/flock-no-privacy-public
3•jhonovich•13m ago•0 comments

Fin: A Jellyfin and Subsonic client for the terminal

https://tangled.org/tsiry-sandratraina.com/fin
2•birdculture•13m ago•0 comments

Marc Andreessen Says One Job Is Mostly Safe from AI: Venture Capitalist

https://gizmodo.com/marc-andreessen-says-one-job-is-mostly-safe-from-ai-venture-capitalist-200059...
3•davidw•13m ago•1 comments

Record-Breaking Ocean Drilling Reveals Why Japan's 2011 Tsunami Was So Deadly

https://www.sciencedaily.com/releases/2026/06/260625060220.htm
2•karakoram•14m ago•0 comments

Canadian spy agency hacked drug traffickers, extremists and a ransomware gang

https://techcrunch.com/2026/07/06/canadian-spy-agency-says-it-hacked-drug-traffickers-extremists-...
2•pier25•15m ago•0 comments

AI surveillance is being supercharged – and it will chill social progress

https://www.theguardian.com/commentisfree/2026/jul/06/ai-surveillance-policy
3•diogenes_atx•15m ago•0 comments

AI that detects conflicts 72 hours early(validated against Ukraine2022)

https://github.com/eshanth23/sentinel
2•eshanth22•15m ago•0 comments

The Fun Shortage Is Real, and It's Making America Miserable

https://www.bloomberg.com/news/features/2026-07-02/why-hotels-theme-parks-and-summer-camps-are-ha...
2•pavel_lishin•17m ago•0 comments

How to Make an Agent Know It Screwed Up

https://justsomebody.dev/blog/how-to-make-an-agent-know-it-screw-up/
2•rafal_opilowski•17m ago•0 comments

Show HN:I Made a Mac Native Excalidraw (Open Sourced)

https://github.com/zpphxd/whitespace
2•z_phxd•18m ago•1 comments

Chrome Extensions, 22M Users, One Undisclosed Offense Each

https://www.hermandaniel.com/blog/20260705-40-chrome-extensions/
2•kekqqq•18m ago•0 comments

Supporting wildland firefighters and their families when tragedy strikes

https://wffoundation.org/
2•mooreds•19m ago•0 comments

The Download: South Korea's hottest bachelors, and advancing eye transplants

https://www.technologyreview.com/2026/07/06/1140172/the-download-south-korea-ai-chipworkers-eye-t...
2•joozio•20m ago•0 comments

Essential Items for Your Hurricane Supply Kit and Generator Safety

https://www.nesthealth.com/hurricane-supply-kit
2•mooreds•20m ago•0 comments

Microsoft once tried to use MS SQL Server in windows file system

https://deepsystemstuff.com/how-microsoft-once-tried-to-use-ms-sql-server-in-windows-file-system/
3•theanonymousone•21m ago•2 comments

Protecting your Supabase projects from NPM supply chain attacks

https://supabase.com/blog/protecting-your-supabase-projects-from-npm-supply-chain-attacks
3•thinkingemote•21m ago•1 comments