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!

Show HN: Free Unlimited Virtual Monitors+Watch Claude Work on Them+Community

https://multispace.dev/
1•DanielSystem•4m ago•0 comments

The United Kingdom is committing an act of strategic self harm

https://blog.rodmena.com/entry/event_horizon_machine_standards
3•rodmena•4m ago•2 comments

Federal Bureau of Prisons employees serve as election monitors at polling sites

https://www.corrections1.com/federal-prison/bop-employees-to-serve-as-election-monitors-at-pollin...
1•MadrasTh0rn•8m ago•0 comments

AI changed what I can build

https://tanner.place/blog/how-ai-changed-what-i-can-build
2•vrennat•10m ago•0 comments

Zellic's and V12's Work on x86 Binary Formal Verification

https://v12.sh/blog/x86-formal-verification-intro
1•drdrey•11m ago•0 comments

Anthropic to receive high 'junk' rating from credit agencies following IPO

https://techcrunch.com/2026/10/30/anthropic-expected-to-receive-high-junk-rating-from-credit-agen...
4•jnord•12m ago•0 comments

Worst Halloween candies, according to the data

https://flowingdata.com/2026/10/30/worst-halloween-candies-according-to-the-data/
2•surprisetalk•13m ago•0 comments

Analysts find looming launch crisis is "more severe" than anticipated

https://arstechnica.com/space/2026/10/analysts-find-looming-launch-crisis-is-more-severe-than-ant...
4•jnord•13m ago•0 comments

Reddit shares plunge as Google's AI search squeezes traffic

https://www.reuters.com/business/reddit-pinterest-shares-tumble-weak-user-revenue-growth-2026-10-30/
1•tartoran•17m ago•0 comments

Tell HNN: Pets.com was *not* owned today

2•y1n0•19m ago•0 comments

Hands on the Wheel

https://ryanbigg.com/2026/10/hands-on-the-wheel
2•ryanbigg•19m ago•0 comments

The N64's GPU Is a Technical Marvel [video]

https://www.youtube.com/watch?v=WEoRgQH08MA
3•zdw•23m ago•0 comments

The Thaura Constitution

https://thaura.ai/constitution
2•conferza•26m ago•0 comments

Somoene bets $10M on Reddit stock anad loses half of it

https://old.reddit.com/r/wallstreetbets/s/LWYApzWCQH
1•paulpauper•27m ago•0 comments

The Ground Beneath Them Was Dry

https://lagomor.ph/2026/10/the-ground-beneath-them-was-dry/
2•jfil•27m ago•0 comments

Sndstation will transform cheap gaming consoles into music handhelds

https://cdm.link/sndstation-linux-distro-for-game-handhelds/
2•Blackthorn•28m ago•0 comments

The Commanding Heights

https://commanding-heights.com/
1•emersonmacro•31m ago•0 comments

$20 plans, $1 of Sol costs 7x what $1 of Opus does. A task, only 1.3x

https://twitter.com/AdamHoltererer/status/2115879037893534195
1•marcellosso•31m ago•0 comments

Assure – your AI agent says "done." This checks if it's lying

https://github.com/mgasparin67-cmd/Agent-verification_Assure
2•spaghetti0•32m ago•0 comments

Ukrainian arms manufacturer Fire Point has overcome Starlink restrictions

https://www.reuters.com/business/aerospace-defense/ukrainian-arms-maker-fire-point-says-its-syste...
5•uxhacker•34m ago•0 comments

AI's Bill Is Due – Intelligence or Brand? – Cold Logic – EP01

https://www.youtube.com/undefined
1•LebToki•39m ago•0 comments

Zinc creep in cable spelter sockets brought down the Arecibo telescope in 2020

https://maketecheasier.com/arecibo-zinc-creep-collapse/
3•ohjeez•39m ago•0 comments

The reasons embedded projects get into trouble (2002)

https://www.ganssle.com/articles/jackstoptenlist.htm
2•ohjeez•42m ago•0 comments

Show HN: Fastbrowse, Browser agent that picks clicks with a System One model

https://www.fastbrowse.ai/
3•furqanrydhan•43m ago•2 comments

Defining AI

https://ali-alkhatib.com/blog/defining-ai
2•bediger4000•43m ago•0 comments

Now what? After the AI crash

https://sorathompson.substack.com/p/now-what
4•SorasTuff•44m ago•0 comments

Compromised eMudhra Certificates: Update Your JetBrains IDEs, ReSharper, etc.

https://blog.jetbrains.com/security/2026/10/compromised-emudhra-certificates-ides/
3•MattGaiser•45m ago•0 comments

Show HN

https://www.gallerismuseum.com/
1•Dharkstranger•49m ago•0 comments

Some Memories of Early Anthropic

https://nothinghuman.substack.com/p/some-memories-of-early-anthropic
5•Nition•54m ago•0 comments

CVE 10.0: CVE-2026-112816, no emudhra required

https://www.cve.org/CVERecord?id=CVE-2026-112816
30•paaloeye•54m ago•4 comments