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!

A narrative account of the development of SNOBOL

https://mads.si.edu/mads/id/NMAH-AC0196_gris720521
1•cwbuilds•44s ago•0 comments

UPI: Anatomy of a Transaction

https://timeseriesofindia.com/economy/reads/upi-architecture/
1•prtk25•2m ago•0 comments

Trump administration rescinds key rule protecting endangered wildlife

https://www.upi.com/Top_News/US/2026/07/10/endangered-wildlife/5421783724407/
2•Bondi_Blue•4m ago•0 comments

Modern Decor May Be Straining People's Brains

https://studyfinds.com/modern-decor-may-be-straining-peoples-brains/
2•downwithdisease•7m ago•0 comments

Chinese courts allow heirs to inherit accounts of deceased gamers

https://www.tomshardware.com/tech-industry/big-tech/chinese-courts-allow-heirs-to-inherent-accoun...
2•thisislife2•8m ago•0 comments

Show HN: Reame – a CPU inference server that gets faster as it runs

https://github.com/swellweb/reame
1•targetbridge•8m ago•0 comments

Store Arbitrary Data on Anything

https://fliptable.nyc
1•spaghetti-code•8m ago•0 comments

Local-first agent governance: keeping an AI agent contained

https://vektorgeist.com/blog
1•VektorGeist•9m ago•0 comments

Dynamic Dispatch

https://intertwingly.net/blog/2026/07/11/Dynamic-Dispatch.html
1•ingve•13m ago•0 comments

Monist, a WebGPU compiler for non-well-founded set theory

https://firstsynth.dev/monist
1•thingltd•16m ago•0 comments

Agentation – Visual UI Annotation for AI Coding Agents

https://www.agentation.com/
2•rekl•19m ago•0 comments

More Americans are aging alone. One woman told us what it's like

https://www.msn.com/en-us/news/crime/more-americans-are-aging-alone-one-woman-told-us-what-it-s-l...
1•like_any_other•19m ago•0 comments

Show HN: I Wanted AI Code Review I Could Own. So I Built Codra

https://medium.com/@devarshidev/i-wanted-ai-code-review-i-could-actually-own-so-i-built-codra-bee...
1•devarshishimpi•20m ago•0 comments

Cancelled by your future self? The fear isn't censorship. It's permanence

https://indianexpress.com/article/fresh-take/gen-z-digital-permanence-self-censorship-nep-2020-un...
1•thisislife2•21m ago•1 comments

The Great Wave Has Arrived (Memo from GLM CEO Jie Tang)

https://twitter.com/bingxu_/status/2075961011816092158
1•antinucleon•21m ago•0 comments

Git Takes Another Step Towards Making Rust Mandatory [video]

https://www.youtube.com/watch?v=I_6Mnvobi3c
2•baranul•21m ago•0 comments

Wheeler's Delayed-Choice Experiment

https://en.wikipedia.org/wiki/Wheeler%27s_delayed-choice_experiment
1•thunderbong•22m ago•0 comments

Canadian Junior Golf Association recruits players

https://rpgolf.wordpress.com/2026/07/11/canadian-junior-golf-association-gives-youngsters-chance-...
1•yankflank•22m ago•0 comments

Show HN: Make any website agent-ready in one script tag

https://www.openhermit.com
1•not_wowinter13•25m ago•0 comments

The Dangerous Myth of Flexibility

https://prospect.org/2026/07/09/dangerous-myth-of-flexibility-uber-lyft-gig-economy/
2•hn_acker•25m ago•0 comments

C++20 Improved the For-Loop Syntax

https://lzon.ca/posts/tips/cpp-for-range-init/
1•jpmitchell•26m ago•0 comments

Show HN: Combo.gg – Plans in seconds, for any game

https://combo.gg/
1•ca98am79•29m ago•0 comments

What loss.backward() actually does

https://oraziorillo.com/blog/what-loss-backward-actually-does/
1•oraziorillo•30m ago•1 comments

We Know Simple Fluids Can Flow. Turns Out, Some Can Fracture.

https://www.quantamagazine.org/we-know-simple-fluids-can-flow-turns-out-some-can-fracture-20260710/
1•Brajeshwar•31m ago•0 comments

SpaceX prepares for Starship Flight 13; company works toward orbital operations

https://www.yahoo.com/news/science/articles/spacex-prepares-starship-flight-13-022121988.html
1•bookmtn•34m ago•0 comments

Is There Any End to the Atlantic's "End-Ism" Fetish?

https://newrepublic.com/article/212923/the-atlantic-magazine-endism-fetish
4•amadeuspagel•36m ago•0 comments

SpaceX Flight 13 Starship

https://www.spacelaunchschedule.com/launch/starship-flight-13/
2•bookmtn•36m ago•0 comments

Show HN: Free AI Visibility Audit Tool& Agent

https://ai-visibility.pro
2•andytan•36m ago•0 comments

The Great American Fun Shortage of 2026

https://www.bloomberg.com/news/articles/2026-07-10/the-great-american-fun-shortage-of-2026
1•mancerayder•37m ago•0 comments

Dither Kit: A Free Dithered Chart Package

https://www.tripwire.sh/dither-kit
3•grapplingdev•39m ago•0 comments