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!

U.S. Urges Apple Not to Buy Chinese Memory Chips

https://www.wsj.com/tech/apple-china-memory-chip-plan-57773a83
1•bookofjoe•2m ago•1 comments

How to Confuse Some SSH Bots

https://nochan.net/b/Internet-Crap/20260108-Confuse-Some-SSH-Bots/
1•Bender•3m ago•0 comments

The AI Slop Backlash Is Having an Impact

https://www.wired.com/story/the-ai-slop-backlash-is-actually-having-an-impact/
1•herbertl•4m ago•0 comments

Show HN: TokenLab MCP, model discovery, pricing, and native AI endpoint tools

https://tokenlab.sh/zh/mcp
1•tokenlabai•5m ago•0 comments

Agentic Development Fallacies

https://thuva4.com/blog/agentic-development-fallacies/
1•thuva4•5m ago•0 comments

Augmenting Long-term Memory (2018)

https://augmentingcognition.com/ltm.html
2•re-framer•8m ago•0 comments

AI makes foundational knowledge more important

https://www.timeshighereducation.com/opinion/ai-makes-foundational-knowledge-more-important-ever
2•jruohonen•13m ago•0 comments

Hayward City Council will consider banning data centers at its Sept. 15 meeting

https://www.hayward-ca.gov/discover/news/aug26/hayward-council-consider-move-ban-data-centers-its...
4•MilnerRoute•13m ago•0 comments

Why did I build a product no one needs?

https://metedata.substack.com/p/017-why-did-i-build-a-product-no
2•young_mete•13m ago•0 comments

DersCountsort: General-purpose sort with amortized O(N) complexity

1•dersoverflow•14m ago•0 comments

Which Data Repository Should You Use?

http://daniellakens.blogspot.com/2026/08/which-data-repository-should-you-use.html
2•pajop•15m ago•1 comments

Abdominal Fat Predicts Heart Disease Risk Better Than BMI

https://www.acc.org/about-acc/press-releases/2026/08/11/14/59/abdominal-fat-predicts-heart-diseas...
1•theanonymousone•17m ago•0 comments

AAP: How pediatricians are navigating federal leaders' fearmongering on vaccines

https://www.statnews.com/2026/08/14/vaccine-executive-order-policy-aap-president/
2•EA-3167•17m ago•0 comments

4B Capable Agent in the Browser

https://alexwortega-my-pi-agent.hf.space/
1•Alexwortega•18m ago•0 comments

Living with Depression: The Part I Never Say Out Loud About Depression

https://medium.com/freedomofthought/living-with-depression-the-part-i-never-say-out-loud-3e9c218b...
1•raynchad•18m ago•1 comments

A Walkable ASCII Cyberpunk City in One HTML File [video]

https://www.youtube.com/watch?v=3YtygAx_C6A
1•yboris•19m ago•0 comments

Memories Mysteriously Survive After Brain Shutdown

https://www.404media.co/memories-mysteriously-survive-after-brain-shutdown-and-scientists-dont-kn...
1•Jimmc414•19m ago•0 comments

Dryas: A Reprogrammable Engine for High-Speed Interconnect Tracing and Analysis

https://arxiv.org/abs/2608.12934
1•Jimmc414•20m ago•0 comments

Show HN: Personal Stock – share a stake in your lifetime wealth

https://github.com/onrootnet/personal-stock
1•koopuluri•20m ago•0 comments

The Enshittification of Everything (Part 3)

https://robertreich.substack.com/p/the-enshittification-of-everything-c94
10•rbanffy•21m ago•1 comments

How Samsung's Privacy Screen Works

https://www.ifixit.com/News/117498/the-secrets-behind-samsungs-privacy-screen
2•gnabgib•22m ago•0 comments

Show HN: Open-source skill to run Matt Pocock's skills in bulk AFK

https://github.com/rvoertmann/barbequeue
1•remingtonv•23m ago•0 comments

Cornell: Pro Palestine Students Targeted by ICE: Come Back to US or Lose Funding

https://theintercept.com/2026/08/14/cornell-pro-palestine-student-targeting-ice/
10•Jimmc414•23m ago•1 comments

The unlikely opera star: How AI helped a nonspeaking performer find his voice

https://www.scientificamerican.com/podcast/episode/a-nonspeaking-person-is-the-star-of-this-opera...
2•e2e4•25m ago•0 comments

Stewart Brand's 6‑Part Series How Buildings Learn, with Music by Brian Eno

https://www.openculture.com/2026/08/watch-stewart-brands-6-part-series-how-buildings-learn.html
2•pauldelany•26m ago•0 comments

Show HN: Native experience for mobile web – Raylers

https://raylers.com
1•faruq_72_786•26m ago•0 comments

Show HN: A mobile app to keep up with most important news on Agentic Coding

https://apps.apple.com/de/app/agentic-coding-news-digest/id6797645176
1•remingtonv•26m ago•0 comments

Show HN: Open-source Grok Bot alternative

https://github.com/madebywelch/guaca
1•madebywelch•27m ago•0 comments

Emulating Terraform on Pulumi's Engine

https://www.pulumi.com/blog/terraforms-data-model-on-pulumis-engine/
1•cnunciato•31m ago•0 comments

Air traffic controller saves day when 2 flights with same call number converge

https://www.cbsnews.com/news/phoenix-air-traffic-controller-2-american-airlines-flights-same-call...
3•cf100clunk•31m ago•1 comments