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 Guinndex – The Guinness Index

https://guinndex.ai
1•austinallegro•4m ago•0 comments

Show HN: AI boom or bust, US war footing or not (four scenarios to 2029)

https://elviovicosa.com/war/
1•elvio•4m ago•0 comments

Escaping Only So Far

https://www.city-journal.org/article/escaping-only-so-far
1•barry-cotter•8m ago•0 comments

Show HN: Open-source customer-facing agents

https://github.com/radioso-ai/radioso
1•zualas•16m ago•0 comments

We Opted Out of Google AI Search – Here's What Happened

https://signal.zyppy.com/p/we-opted-out-of-google-ai-search
2•giuliomagnifico•20m ago•0 comments

GitHub Status – Incident with Webhooks and Actions

https://www.githubstatus.com/incidents/xxb3l2bm76dr
2•rschiavone•24m ago•0 comments

Agentic Development and Engineering Strategy

https://learnings.aleixmorgadas.dev/p/agentic-development-and-engineering
1•BerislavLopac•26m ago•0 comments

Phoenix vs. ClickHouse: Why the Fight Never Ends

https://alnovis.io/blog/phoenix-vs-clickhouse
1•alnovis•29m ago•0 comments

Together Compiler: Continual Compilation for AI Inference

https://www.together.ai/blog/together-compiler-continual-compilation-for-ai-inference
1•guystone•32m ago•0 comments

Aegis OS: a transactional multi-tenant OS runtime for autonomous coding agents

https://arxiv.org/abs/2611.08516
1•anatolii1309•33m ago•0 comments

Variable-width Bézier curves (2025)

https://luthert.web.illinois.edu/blog/posts/775.html
1•leduyquang753•39m ago•0 comments

Electric cars are about to overtake petrol in the UK, data shows

https://electrek.co/2026/11/05/uk-ev-sales-october-2026-electric-cars-overtake-petrol/
4•tapper•39m ago•0 comments

Show HN: nocopy – An APCu-compatible PHP extension with zero-copy reads

https://github.com/chrfritsch/nocopy
1•chrfritsch•41m ago•0 comments

Terminal-RSI: Recursive Self-Improving Terminal Agents

https://arxiv.org/abs/2610.22192
1•joshcsimmons•41m ago•1 comments

Six climate and health actions could save 1.6M lives and deliver trillions

https://www.who.int/news/item/04-11-2026-six-climate-and-health-actions-could-save-1.6-million-li...
2•robtherobber•42m ago•1 comments

Wattsec: Display macOS power usage in the menu bar

https://github.com/beutton/wattsec
2•petecooper•44m ago•0 comments

Convenience Is a Hot Commodity

https://www.vox.com/advice/508283/gabe-bullard-questions-to-ask-convenience
2•dabinat•49m ago•0 comments

Fun things to do with your VM/370 CE machine – Fun with big computers

https://rbanffy.github.io/fun-with-big-computers/fun-with-vm370/
19•rbanffy•50m ago•2 comments

Same fab, different paths: Kioxia and SanDisk diverge on HBF

https://www.blocksandfiles.com/flash/2026/11/03/same-fab-different-paths-kioxia-and-sandisk-diver...
2•rbanffy•53m ago•0 comments

Ask HN: How your SEO traffic doing? Up or down?

2•bigmuzzy•54m ago•0 comments

Stop Guessing Interactive Warehouse Size [video]

https://www.youtube.com/shorts/Y1bKrXArpYw
2•yanivleven•54m ago•0 comments

SHOW HN: GerGit - A Free Open-Source Git GUI Client for Linux Inspired by Fork

https://github.com/IcaruzSoftware/GerGit
4•IcaruzSoftware•55m ago•1 comments

Project Steadfast

https://noteflakes.com/articles/2026-11-07-introducing-project-steadfast
2•thunderbong•1h ago•0 comments

A small town in Spain battles again construction of a macro data center

https://english.elpais.com/spain/2026-11-07/a-small-town-in-spain-battles-again-construction-of-a...
4•Betelbuddy•1h ago•0 comments

Envelope encryption APIs: the details beyond encrypt and decrypt

https://github.com/lecodev-26/nexus-q
2•lecodev•1h ago•0 comments

The PHP Singularity

https://blog.codinghorror.com/the-php-singularity/
3•vladde•1h ago•2 comments

The Most Advanced AI Rabbi

https://rebbe.io/
2•Betelbuddy•1h ago•0 comments

Suitable for Taycan Turbo GT model carbon fiber tail

https://www.porsche-km.com/newsinfo/11378510.html
2•edl8888•1h ago•0 comments

AI Shakes Volunteer Sites

https://cacm.acm.org/news/ai-shakes-volunteer-sites/
3•adunk•1h ago•0 comments

Ask HN: Do you still enjoy coding in C++?

17•hasley•1h ago•11 comments