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!

The Quartz Page

http://www.quartzpage.de/index.html
1•AdamH12113•3m ago•0 comments

The End of the Beginning

https://www.robinsloan.com/lab/end-of-the-beginning/
1•tobr•11m ago•0 comments

Show HN: MCP-CrashTest – Multi-step stateful contract fuzzer for MCP servers

https://github.com/SnowyLumiere/mcp-crashtest
1•SnowyLumiere•14m ago•0 comments

SMAL

1•commoner_•14m ago•0 comments

NoEnigma – 15 Years of Independent Science and Technology Writing

https://www.noenigma.com/
1•jchacim•15m ago•0 comments

Longshore: A 36 GB/S Zero-Allocation I/O and Object Storage Layer in Rust

https://serviceradar.cloud/blog/ring-per-core-io-in-longshore
2•marvin-hansen•20m ago•0 comments

What Shaped Anthropic CEO Dario Amodei's Thinking on AI

https://www.nytimes.com/2026/11/05/technology/dario-amodei-anthropic-ai.html
1•andsoitis•22m ago•0 comments

Is it still worth building Coding Harness?

1•deepcover•23m ago•0 comments

Austria launches public consultation for its national AI agenda

https://www.kipppunkt.gv.at/
3•GranularRecipe•24m ago•0 comments

Who are Anthropic's seven co-founders, now worth $180B?

https://www.theguardian.com/technology/2026/nov/19/who-are-anthropic-founders
1•andsoitis•24m ago•0 comments

Implementing a tag-based restoration system for the Scalar docs sites

https://medium.com/scalar-engineering/implementing-a-tag-based-restoration-system-for-the-scalar-...
1•josh-scalar•24m ago•0 comments

Shift + 1234567890

https://koenvangilst.nl/lab/shift-1234567890
1•vnglst•25m ago•0 comments

Hostile Inference: Exploiting Docker Model Runner for Container Escapes

https://www.thezdi.com/blog/2026/11/17/hostile-inference-exploiting-docker-model-runner-for-conta...
1•ersinesen•27m ago•0 comments

Drone Hacking Part 2: Authorized ~_~ by Potensic ~_

https://neodyme.io/en/blog/drone_hacking_part_2/
2•ersinesen•28m ago•0 comments

Show HN: Xinproof – Restore-test your database backups, get a signed receipt

https://github.com/praxin/xinproof
1•krishsg•28m ago•0 comments

NASA's new Moon plans have a problem: Orion wasn't designed to fly this way

https://arstechnica.com/space/2026/11/to-make-moon-landings-easier-nasa-is-making-life-harder-for...
1•rbanffy•35m ago•0 comments

Show HN: Synapse Shield (v0.11) – Self-hosted behavioral alternative to CAPTCHAs

https://github.com/0xStoic-bit/Synapse_Shield
1•0xStoic_bit•38m ago•0 comments

Microsoft's outage should terrify every enterprise – InfoWorld

https://www.infoworld.com/article/4249394/microsofts-outage-should-terrify-every-enterprise.html
3•rbanffy•39m ago•0 comments

Almost all of Anthropic's employees are now millionaires

https://www.cnn.com/2026/11/19/tech/anthropic-employees-now-millionaires
3•andsoitis•43m ago•4 comments

Database Consistency Models

https://jepsen.io/consistency/models
1•gurjeet•45m ago•0 comments

V2: Quantum information spreading via higher-order operator correlators

https://arxiv.org/abs/2609.05472
2•northlondoner•52m ago•2 comments

The U.S. Army is about to blow up a cache of dangerous lead azide in Iowa–here's

https://www.scientificamerican.com/article/the-u-s-army-is-about-to-blow-up-a-cache-of-dangerous-...
2•bookmtn•52m ago•4 comments

AlphaXiv opens a public preprint server for AI-authored research papers

https://www.alphaxiv.org/
1•pirafrank•54m ago•0 comments

"I can tell you wrote this yourself"

https://em-online.bearblog.dev/i-can-tell-you-wrote-this-yourself/
24•BrunoBernardino•56m ago•21 comments

Testing an AM/FM radio PCB designed by Claude [video]

https://www.youtube.com/watch?v=vyClHoyzAL8
1•ez_mmk•58m ago•2 comments

Show HN: Linear Algebra in a Week

https://linear-algebra-in-a-week.vercel.app/#m1
1•tamnd•1h ago•0 comments

US Approved AI Chip Sales to China's Tencent, Alibaba, Data Show

https://www.bloomberg.com/news/articles/2026-11-19/us-approved-ai-chip-sales-to-china-s-tencent-a...
5•Teever•1h ago•0 comments

Hardcoded Ignorance

https://notes.erlend.sh/3n2ojo3n5yc2m
1•erlend_sh•1h ago•0 comments

Show HN: Bulchimbeon, night watch that keeps your Mac awake while AI agents work

https://github.com/s3onghyun/bulchimbeon
1•s3onghyun•1h ago•0 comments

How Many Books Will You Read Before You Die?

https://lithub.com/how-many-books-will-you-read-before-you-die/
1•austinallegro•1h ago•1 comments