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 Wholesale Plagiarism of Obscure Sorrows

https://waxy.org/2026/06/the-wholesale-plagiarism-of-obscure-sorrows/
1•latexr•25s ago•0 comments

Agentbrowse: Drive any website from the terminal, built for AI coding agents

https://www.npmjs.com/package/agentbrowse
1•mandarwagh•3m ago•0 comments

Ask HN: Languages in the Age of AI

1•HeyLaughingBoy•3m ago•0 comments

Medical AI scores high on exams but stumbles on real patient care

https://www.medicaleconomics.com/view/medical-ai-scores-high-on-exams-but-stumbles-on-real-patien...
1•SVI•7m ago•0 comments

The Great Intermediary Panic

https://www.minid.net/2013/1/23/the-great-intermediary-panic
1•meerita•8m ago•0 comments

The Algorithm California Said Didn't Exist

https://reclaimthenet.org/the-algorithm-california-said-didnt-exist
1•Cider9986•10m ago•0 comments

Longevity medicine's do-or-die moment

https://www.axios.com/2026/06/18/longevity-medicine-critical-moment
1•evo_9•10m ago•0 comments

Distro Fighter

https://distrofighter.com/
1•Wingy•10m ago•0 comments

Show HN: Self-Hostable Company Brain

https://www.npmjs.com/package/@connectai/selfhost
1•jthorare•10m ago•1 comments

Oligarchy is worse than you think

https://www.youtube.com/watch?v=4S25FfbFw4M
1•penguin_booze•11m ago•0 comments

Self-Improving Agents Still Need Humans

https://goose-docs.ai/blog/2026/06/17/self-improving-agents-need-humans/
2•dosinga•11m ago•0 comments

Why Meta Suddenly Loves the Kids Online Safety Act

https://reclaimthenet.org/why-meta-suddenly-loves-the-kids-online-safety-act
5•Cider9986•12m ago•0 comments

The Increasing Scarcity of Helium [2015]

https://priceonomics.com/the-increasing-scarcity-of-helium/
2•bookofjoe•13m ago•0 comments

Show HN: Pagecast – Publish Markdown/HTML Reports to Cloudflare Pages

https://github.com/Amal-David/pagecast
2•amaldavid•13m ago•0 comments

Mars Is Spending Millions to Give M&M's a MAHA Makeover

https://www.wsj.com/business/mars-is-spending-millions-to-give-m-ms-a-maha-makeover-2fa1bb88
1•Cider9986•13m ago•0 comments

Software is the only path to hardware

https://www.trackr.bar/
1•jonaskamner•14m ago•0 comments

Don't Blame Plunging Birthrates on Phones

https://www.nytimes.com/2026/06/18/opinion/iphones-birthrate-decline.html
1•xnx•14m ago•1 comments

The Interplanetary Sciences Program

https://www.relativityspace.com/interplanetary
1•amir•15m ago•0 comments

You don't understand, prices can't go down

https://geohot.github.io//blog/jekyll/update/2026/06/18/prices-cant-go-down.html
2•greyface-•15m ago•1 comments

Surprising Usefulness of Amazon's Quick Desktop

https://www.theregister.com/ai-and-ml/2026/06/18/committed-skeptic-finds-himself-warming-to-new-a...
1•macleginn•16m ago•0 comments

GSA Auctions

https://gsaauctions.gov/auctions/home
1•skogstokig•16m ago•0 comments

Intro to Peridot

https://www.indiehackers.com/post/intro-to-peridot-562XB6ljULDoYc99KTG2
1•mawrtini•16m ago•0 comments

Squidbleed (CVE-2026-47729)

https://blog.calif.io/p/squidbleed-cve-2026-47729
4•quyleanh•17m ago•0 comments

Stop making swap partitions–use swap files instead

https://gist.github.com/joshenders/c4960cec9c63a7b7d68ffa9543356c43
2•jenders•19m ago•0 comments

Lambda vs. Step Functions Execution Time

https://builder.aws.com
1•mlhpdx•20m ago•0 comments

Show HN: Browser calls with live translation in the speaker's cloned voice

https://whisperbridge.app
1•priyanshu-mit•21m ago•0 comments

The smartphone's days are numbered. Meet the device that could come next

https://fortune.com/2026/05/18/smartphones-days-numbered-ai-wearable-devices/
3•rmason•23m ago•1 comments

Eltif Reporting in Five Languages

https://igorsabol.ch/writing/eltif-five-languages/
1•mstkllah•24m ago•0 comments

Show HN: I Made TTSC, TypeScript v7 ToolChain for Plugins Like Typia

https://github.com/samchon/ttsc
1•autobe•24m ago•0 comments

Show HN: Prompt Fusion Using Dags and OpenRouter

https://twitter.com/MarcioK/status/2066975451193454726
1•Marciok•25m ago•0 comments