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!

Fediverse.info: Social media that belongs to you

https://fediverse.info/
1•rapnie•1m ago•0 comments

CorvinOS – an agentic OS where GDPR/EU AI Act compliance can't be switched off

https://github.com/CorvinLabs/CorvinOS
1•shumway•4m ago•0 comments

Claude Code Antigravity CLI Agents Skill

https://github.com/markfulton/claude-antigravity-agents
1•DotSauce•4m ago•0 comments

Show HN: Mondael.com – Institutional Intelligence for Prediction Markets

https://mondael.com
1•16th_hop•5m ago•0 comments

Show HN: Sonn a reasoning layer that nudges coding agent before it makes mistake

https://sonn.dev
1•AlexSonn•6m ago•0 comments

Show HN: Phobos – A tiny scale-free kernel language with tile-DAG support

https://www.joa-ebert.com/posts/2026-07-07-phobos-lang/
1•joajoa•6m ago•0 comments

Eliminating Go bound checks with unsafe

https://blog.andr2i.com/posts/2026-07-06-eliminating-go-bound-checks-with-unsafe
1•g0xA52A2A•6m ago•0 comments

Most AI Work Can Wait

https://tomtunguz.com/ai-execution-routing/
1•speckx•7m ago•0 comments

Show HN: Excogni – open-source cognitive training that can't leak your email

https://xcgni.com/
1•brna-2•7m ago•0 comments

Amazon aims to raise $25B from bond sale, Bloomberg News reports

https://www.reuters.com/legal/transactional/amazon-aims-raise-25-billion-bond-sale-bloomberg-news...
2•enlightpixel•8m ago•0 comments

ScreenStack Is Looking for Design Partners

1•ud0•8m ago•0 comments

Mark Zuckerberg's biggest legal nightmare yet could cost Meta $1.4T

https://www.the-independent.com/tech/mark-zuckerberg-meta-fine-trillion-b3010281.html
5•wrxd•8m ago•0 comments

OpenCRA

https://github.com/borisRadonic/OpenCRA
2•BorisRadonic•10m ago•1 comments

The Gap Map v0.1

https://www.currentai.org/blogs/introducing-the-gap-map-v0-1
1•surprisetalk•11m ago•0 comments

Show HN: Sprytools – 26 small developer APIs behind one key

https://sprytools.com/api/
1•grenzfrei•12m ago•0 comments

Netherlands recruited 29 top scientist leaving U.S. under Trump

https://nltimes.nl/2026/07/07/netherlands-recruited-29-top-scientist-leaving-us-trump
2•jacquesm•12m ago•1 comments

Hacking the bureaucracy to get stuff done (2020)

https://www.zainrizvi.io/blog/hacking-the-bureaucracy-to-get-stuff-done/
1•cdirkx•12m ago•0 comments

A visual calculator to estimate and compare LLM API pricing

https://neutraloverdrive.com/tools/token-calculator/
1•brancpa•13m ago•0 comments

Software is eating the world, AUTONOMOUSLY

https://2030.marketing/software-is-eating-the-world-autonomously/
1•TechOnionKing•13m ago•0 comments

Space Force's high-powered electro beam nullifies hostile satellites

https://newatlas.com/military/space-force-meadowlands-satellite-blinding-beam-weapon/
2•geox•14m ago•0 comments

Show HN: SigMap – deterministic repo maps for AI coding agents

https://sigmap.io
2•cees007•14m ago•0 comments

Ask HN: What are alternative to Upwork for side gig?

2•user7878•15m ago•1 comments

Show HN: Sdlc factory built on pi.dev:intent->DDD->architecture->tested code

https://github.com/arman-jalili/guardian-framework
1•arman-w-jalili•15m ago•0 comments

Court allows far-right leader Marine Le Pen to run for president

https://www.nbcnews.com/world/europe/france-far-right-marine-le-pen-presidential-election-macron-...
2•Alien1Being•15m ago•1 comments

A design system for Rust/egui where token violations fail the build

https://ouroboros-ui.typezerolabs.com
1•mauriciojuba•16m ago•0 comments

The Perfect Cripple: A User Guide to Being Palatable

https://www.salient.org.nz/post/the-perfect-cripple-a-user-guide-to-being-palatable
2•speckx•17m ago•0 comments

Discovery helps explain why solid-state batteries often fail

https://news.mit.edu/2026/discovery-helps-explain-why-solid-state-batteries-often-fail-0706
2•gmays•18m ago•0 comments

Amazon Returns to US Bond Market to Fund AI Infrastructure Build

https://www.bloomberg.com/news/articles/2026-07-07/amazon-returns-to-us-bond-market-to-fund-ai-in...
3•thm•19m ago•0 comments

The Popup That Says the Quiet Part Out Loud

https://blog.ppb1701.com/the-popup-that-says-the-quiet-part-out-loud
1•ExMachina73•19m ago•0 comments

I was wrong about Duff's device

https://unsung.aresluna.org/i-was-wrong-about-duffs-device/
1•colejohnson66•19m ago•0 comments