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!

Orbeon Statement on Post-Quantum Cryptography

https://www.orbeon.com/2026/12/post-quantum-cryptography-in-orbeon-forms
1•avernet•15s ago•0 comments

Memory management in 40 major C projects, a survey

https://theconsensus.dev/p/2026/11/08/c-memory-management-survey.html
1•ingve•57s ago•0 comments

We Gambled Away $10K on DraftKings on Purpose

https://www.propublica.org/podcast/sports-gambling-problem-draftkings-experiment
1•theanonymousone•3m ago•0 comments

Godot Bench: Best Free AI Models for Godot

https://ziva.sh/docs/best-free-ai-models-for-godot
1•OsrsNeedsf2P•5m ago•1 comments

Human Agency

https://scholars-stage.org/thoughts-on-human-agency/
3•Khaine•11m ago•1 comments

The Defender's Widowmaker

https://mercuriusdream.com/defenders-widowmaker/
2•Mercuriusdream•23m ago•0 comments

WordPress Plugin WP Rocket CVE-2026-125812: Exploits in the Wild, Dissected

https://noc.org/articles/wp-rocket-vulnerability-exploit-cve-2026-125812
2•sucuri2•25m ago•0 comments

Trump Initially Demanded 50% of Nvidia's China Chip Sales, CEO Says

https://www.newsweek.com/trump-initially-demanded-50-of-nvidias-china-chip-sales-ceo-says-12796720
2•girish_r•26m ago•0 comments

Best Buy accused of taking 4TB Samsung SSD during laptop warranty repair

https://www.tomshardware.com/pc-components/ssds/best-buy-accused-of-taking-4tb-samsung-ssd-during...
1•girish_r•27m ago•0 comments

ADHD should not be treated as a disorder (2024)

https://www.economist.com/leaders/2024/10/30/adhd-should-not-be-treated-as-a-disorder
3•dmichulke•29m ago•1 comments

Apple can beat instinct and muse at the personal AI agents game

https://www.notespink.com
1•robinsponge17•31m ago•2 comments

Post-Quantum Status of Confidential Computing

https://confidential.ai/blog/post-quantum-confidential-computing
3•grun•33m ago•1 comments

The Future of Ruby Performance: YJIT, ZJIT, and Ractors

https://jetrockets.com/blog/the-future-of-ruby-performance-yjit-zjit-and-ractors
1•TheWiggles•34m ago•0 comments

Chronoportals – a time-travel sandbox puzzle game

https://frarodfo.itch.io/chronoportals
1•modinfo•39m ago•0 comments

Show HN: VisualCI – Open-source visual review for screenshots and PDFs

https://visualci.com/
3•nathan_f77•44m ago•2 comments

Botcafe: Two AI agents share a curl board so they can talk

https://botcafe.dev/
1•hith3sh•45m ago•0 comments

Mags Galore

https://magsgalore.popblender.com
2•elronster•51m ago•1 comments

AI mathematics does not rely on brute force

https://www.seangoedecke.com/ai-mathematics-does-not-rely-on-brute-force/
4•eigenBasis•54m ago•0 comments

OpenSSH adds support for composite ML-DSA 87 / ECDSA p384

https://github.com/openssh/openssh-portable/commit/fc6f265302adcbf88c5b4273e9cc9f4e5f81ab94
24•weeha•1h ago•3 comments

Migrating My Home Assistant Instance from HAOS to NixOS (On Proxmox)

https://assil.me/2026/12/05/migrate-home-assistant-haos-to-nixos.html
2•Cyph0n•1h ago•0 comments

Testing for mathematical taste with a ladder of cheap policies

https://thebatmanofbutler.substack.com/p/testing-for-mathematical-taste-with
1•theahura•1h ago•0 comments

A Statement on Replacing Ed25519, and on Quantum-Secure Polyproto

https://polyproto.org/blog/2026/12/04/pqc-situation/
6•matanyall•1h ago•1 comments

Anthropic Conquered Capitol Hill

https://ieapolicy.org/
1•devy•1h ago•0 comments

AGI Ruin: A List of Lethalities

https://www.lesswrong.com/posts/uMQ3cqWDPHhjtiesc/agi-ruin-a-list-of-lethalities
3•Alien1Being•1h ago•0 comments

Show HN: Image to Excel – Layout-aware table photos and scanned PDFs to .xlsx

https://imagetoexcel.io/
2•airapcreator•1h ago•0 comments

When stocks, houses and crypto fall, where does all that money go?

https://www.cbc.ca/1.6486826
4•thunderbong•1h ago•0 comments

Open-Source Developer Stands Up Against Synaptics Legal Threats over DisplayLink

https://www.phoronix.com/news/Vino-Driver-Redacted-Back
10•snvzz•1h ago•0 comments

BQP Lives Another Day

https://scottaaronson.blog/?p=10454
3•Alien1Being•1h ago•1 comments

Intelligence as a Resource

https://arxiv.org/abs/2612.04545
2•Anon84•1h ago•0 comments

AI Software Factories Were a Mistake

https://tej.as/blog/ai-software-factories-were-a-mistake
2•chriscbr•1h ago•1 comments