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!

Free online tools in one place

https://www.quelloai.com
1•gusdestro•54s ago•1 comments

Siplinx AI Meeting Notetaker for Zoom, Google Meet

https://siplinx.com
1•aman-flyprox•1m ago•0 comments

Neuralink: Our First Transdural Procedure [video]

https://www.youtube.com/watch?v=F8p2MamNBgE
1•Klaster_1•1m ago•0 comments

The Primitive Is the Product

https://www.amplifypartners.com/blog-posts/the-primitive-is-the-product
1•tosh•1m ago•0 comments

How Spotify Is Killing the Open Podcast Ecosystem (2020)

https://singhkays.com/blog/how-spotify-is-killing-the-open-podcast-ecosystem/
1•downbad_•2m ago•0 comments

Sonnet 5 Is Dead in the Water

https://www.vincentschmalbach.com/sonnet-5-is-dead-in-the-water/
1•vincent_s•4m ago•0 comments

Side-Channel Protections in Hardware Implementations of PQC ML-KEM Verification

https://arxiv.org/abs/2606.31681
1•austinallegro•8m ago•0 comments

Hays Code

https://en.wikipedia.org/wiki/Hays_Code
2•thunderbong•8m ago•0 comments

The Economics of Starlink and SpaceX

https://ispcol.potaroo.net/2026-06/spacex.html
1•fanf2•9m ago•0 comments

Palantir on AI Sovereignty

https://twitter.com/PalantirTech/status/2072114267776491695
3•tosh•15m ago•1 comments

Isaac Asimov Laments the "Cult of Ignorance" in the United States (1980)

https://www.openculture.com/2026/07/isaac-asimov-laments-the-cult-of-ignorance.html
2•mdp2021•19m ago•0 comments

C++26: Constexpr Virtual Inheritance

https://www.sandordargo.com/blog/2026/07/01/cpp26-constexpr-virtual-inheritance
3•jandeboevrie•23m ago•0 comments

A return to two-pizza culture

https://www.allthingsdistributed.com/2026/06/return-to-two-pizza-culture.html
2•futurecat•27m ago•0 comments

Nsram: The Artificial Neuron on a Silicon Chip

https://spectrum.ieee.org/artificial-neurons-on-silicon-chips
1•rbanffy•30m ago•0 comments

Best AI Coding Token Plans in 2026: A Practical Comparison for Developers

https://medium.com/@VibeHacker/best-ai-coding-token-plans-in-2026-a-practical-comparison-for-deve...
1•Timmyzzz•31m ago•0 comments

Nano Banana 2 Lite

https://twitter.com/GoogleAIStudio/status/2071989578672595413
4•aurenvale•33m ago•0 comments

Reddit is going to force you to log in to use old Reddit

https://www.theverge.com/tech/959779/reddit-old-log-in
7•vrganj•35m ago•1 comments

Show HN: Abstractions – Weekly newsletters explaining your codebase

https://useabstractions.com
2•nshntarora•36m ago•0 comments

Show HN: Agentic Data Engineering

https://www.revos.ai/blog/agentic-data-engineering
2•zubairov•37m ago•0 comments

Register Korea's First PC 'SE-8001' as a National Important Material

https://www.dongascience.com/en/news/30374
3•mushstory•38m ago•0 comments

Panasonic launches CO₂ air-to-water heat pump with CoP of 6.1

https://www.pv-magazine.com/2026/06/29/panasonic-launches-co%e2%82%82-air-to-water-heat-pump-with...
2•flipbrad•39m ago•0 comments

Core dump epidemiology: fixing an 18-year-old bug

https://openai.com/index/core-dump-epidemiology-data-infrastructure-bug/
2•blerb795•41m ago•0 comments

Bird nests of fibre-optic cables show war's impact on Ukraine

https://www.reuters.com/business/aerospace-defense/bird-nests-fibre-optic-cables-show-wars-impact...
3•ZeljkoS•42m ago•0 comments

Splash Canvas

https://artsandculture.google.com/experiment/vQFCtQB7FDnYkA
2•reasonableklout•42m ago•0 comments

Puri.li private search with own index

https://puri.li
2•skillplayed•43m ago•0 comments

Claude Command Classifier: availability issues

2•oger•44m ago•0 comments

Show HN: A Wordle-style daily trading challenge

https://kandlequiz.trade/
2•ssarcandy•44m ago•0 comments

Big loads offgrid with a small battery (sidelined)

https://joeyh.name/blog/entry/big_loads_offgrid_with_a_small_battery_sidelined/
3•JNRowe•44m ago•0 comments

Show HN: ChDB-WASM – ClickHouse running in the browser via WebAssembly

https://wasm.chdb.io/
2•auxten•48m ago•0 comments

Murders and Executions: M&A in the games industry

https://www.owenmahoney.ai/owen-mahoney-blog/murders-and-executions
2•temp7000•53m ago•0 comments