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!

Best Offline Sudoku App?

https://sudokui.app/
1•edullero•2m ago•1 comments

The SBC hobby is dying (Geerling, 3 months ago) [video]

https://www.youtube.com/watch?v=HeX22LnKdFY
2•tetris11•4m ago•0 comments

Motel – A 1989 Documentary [video]

https://www.youtube.com/watch?v=XT0VUPi4vus
1•snapetom•5m ago•0 comments

Show HN: Vuci – make the spoken word searchable

https://vuci.ai/feed/
1•lawnmaster18•6m ago•0 comments

The House Passed the KIDS Act–The Senate Should Reject It

https://www.eff.org/deeplinks/2026/07/house-passed-kids-act-senate-should-reject-it
1•nobody9999•6m ago•0 comments

Segfault on Rust 1.97.0

https://github.com/rust-lang/rust/issues/159035
1•solecist•7m ago•0 comments

Pro-Palantir data has litany of errors, English hospitals admit

https://www.ft.com/content/977aeda7-c055-44b7-8fb7-df1570849035
2•sega_sai•13m ago•0 comments

LiboPrime ReviEwS (2026): We Tried It My Honest Review

https://gamma.app/embed/LiboPrime-ReviEwS-2026-We-Tried-It-My-Honest-Review-gy3dc0lt3icpx3p
1•gasurads•14m ago•0 comments

Using Go for Mobile Apps: A retrospective on a year of development with Gomobile

https://www.davidsobsessions.com/p/one-year-of-gomobile/
1•darccio•16m ago•0 comments

The Cost of the American Revolution

https://www.econlib.org/econlog/the-cost-of-the-american-revolution/
1•NewCzech•17m ago•0 comments

Managed Claude, but for Any Harness

https://asteroidbelt.ai/
1•yshuolu•18m ago•0 comments

Pin Bar Formation and Detection in Crypto Markets

https://dolphindb.com/blogs/47
1•CrazyTomato•18m ago•0 comments

China becomes second country to recover orbital booster with Long March 10B

https://spacenews.com/china-becomes-second-country-to-recover-orbital-booster-with-long-march-10b/
3•pantalaimon•20m ago•1 comments

Test the Email Verification Protocol with an origin trial

https://developer.chrome.com/blog/email-verification-protocol-origin-trial
1•pvsukale3•21m ago•0 comments

Fzy: A simple, fast fuzzy finder for the terminal

https://github.com/jhawthorn/fzy
1•thunderbong•23m ago•0 comments

I built an app that solves math problems from a photo

https://apps.apple.com/us/app/mathnut-ai-math-solver/id6757105372
2•rafaelrpadovani•26m ago•0 comments

Quantum computing: one universe is more than enough

https://muircheartblog.wpcomstaging.com/2026/05/26/quantum-computing-one-universe-is-more-than-en...
2•vismit2000•27m ago•0 comments

Show HN: Tennis Rallies Poster Generator

https://matchpoint.jeremygautrais.fr/
1•tunafighter•28m ago•0 comments

DeepSWE Benchmark Results for GPT 5.6

https://deepswe.datacurve.ai/
1•theanonymousone•36m ago•1 comments

¥2,300B wiped out from Chinese stock market in last 2 hours

https://www.disruptionbanking.com/2026/07/10/was-¥2-3-trillion-really-wiped-out-from-chinas-stock...
1•emsidisii•37m ago•0 comments

China lands reusable rocket for first time, state media says

https://www.bbc.com/news/articles/cm2rmmx86pdo
4•joak•40m ago•0 comments

Ramblings on technological pursuits of AI systems

https://blog.knravish.me/thoughts-ai-reality-brain/
1•KaushikR2•43m ago•0 comments

Investigation Reveals Deep Military Cooperation Between Russia and China

https://www.spiegel.de/international/world/the-new-axis-of-evil-der-spiegel-investigation-reveals...
2•vrganj•44m ago•3 comments

What Happened to Front End?

https://davidpoblador.com/deep-dives/what-happened-to-the-frontend/
3•napolux•47m ago•0 comments

FCC Approves Reflect Orbital's Giant Mirror Satellite That Astronomers Hate

https://ca.pcmag.com/news/16760/fcc-approves-reflect-orbitals-giant-mirror-satellite-that-astrono...
2•latexr•47m ago•0 comments

Harvesting Sub-Microsecond CXL Memory Stalls with LiteSwitch

https://www.usenix.org/conference/osdi26/presentation/li-nanqinqin
1•matt_d•48m ago•0 comments

In Emacs, Everything Looks Like a Service

http://yummymelon.com/devnull/in-emacs-everything-looks-like-a-service.html
2•kickingvegas•55m ago•0 comments

Open AI No. 2 Exec at OpenAI Fidji Simo is leaving the company

https://techcrunch.com/2026/07/09/fidji-simo-steps-down-from-openais-no-2-role/
3•jeffhwang•1h ago•1 comments

Record and Replay, teach AI agents desktop workflows by showing them once

https://github.com/video-db/open-record-replay
1•ashu_trv•1h ago•0 comments

Ask HN: Do we need a support group for developers alienated by LLMs?

8•sph•1h ago•4 comments