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!

Columbia House is shutting down after 71 years

https://www.nbclosangeles.com/news/business/columbia-house-shutting-down-after-71-years/3931211/
1•pudgywalsh•1m ago•0 comments

Zuckerberg lied about concern for child safety

https://www.theguardian.com/technology/2026/aug/19/meta-safety-trial-whistleblower-testimony
1•jamarna•1m ago•0 comments

Thunder Compute raises $13M Series A to squeeze more work out of idle GPUs

https://siliconangle.com/2026/08/19/thunder-compute-raises-13m-squeeze-work-idle-gpus/
1•cpeterson42•2m ago•0 comments

Cerebras chips rival Nvidia GPUs for AI [video]

https://www.youtube.com/watch?v=qC_lCFTOJU0
1•binyu•4m ago•0 comments

How I Use AI to Help Me Write

https://tombedor.dev/how-i-use-ai-to-help-me-write/
1•jjfoooo4•5m ago•0 comments

OpenAI halts frontier RL training after Astra crosses Critical cyber threshold

https://www.forbes.com/sites/ashishbhatia/2026/08/19/openai-paused-ai-training-for-two-weeks-here...
1•DarenWatson•6m ago•1 comments

A Constitution for One: 7 months governing a personal AI agent fleet

https://github.com/Chong169/a-constitution-for-one
1•sucong178899•6m ago•0 comments

The Zarfian Cruelty Scale, Revisited

https://eblong.com/zarf/essays/cruelty-revisited.html
1•JoshTriplett•7m ago•0 comments

Show HN: RelArena-α – open-source releases for Relational Learning

https://github.com/PriorLabs/relarena
1•onasta•7m ago•0 comments

People vs. the AI Overlords

https://anarc.at/blog/2026-08-18-people-vs-ai-overlords/
1•meetpateltech•8m ago•0 comments

ZKP's Aren't Age Verification Silver Bullets

https://www.eff.org/deeplinks/2026/08/zkps-arent-age-verification-silver-bullets
2•speckx•12m ago•0 comments

FTC Warns Retailers on Using Private Consumer Data to Raise Prices

https://www.wsj.com/business/ftc-warns-retailers-on-using-private-consumer-data-to-raise-prices-4...
4•impish9208•12m ago•1 comments

A Million and One Random Digits by Douglas Crockford

https://www.amazon.com/Million-Random-Digits-Millionplex-Library/dp/1949815048
1•gregsadetsky•12m ago•0 comments

Thoughts on dance music today informed by the Instagram perspective

http://energyflashbysimonreynolds.blogspot.com/2026/06/had-instagram-for-ages-but-never-got.html
2•mosiuerbarso•14m ago•0 comments

Eraser Diagrams: An open-source headless diagramming framework

https://github.com/eraserlabs/eraser-diagrams
6•jtadmor•15m ago•1 comments

Can you tell which AI-generated text is watermarked?

https://watermark-quiz.krishmatta.net/
3•nathan-barry•18m ago•0 comments

Meteoric origins of Egypt's first ironwork

https://blogs.ucl.ac.uk/museums/2013/09/01/23856/
1•Bluestein•19m ago•0 comments

WTF Are You Loading?

https://x-x.codes/posts/wtf-are-you-loading
1•abnercoimbre•19m ago•0 comments

Send a SAFE

https://www.ycombinator.com/safe
2•Finbarr•20m ago•0 comments

Show HN: Naeos – an engineering system for AI coding agents

https://github.com/NAEOS-foundation/naeos
3•bayu911•22m ago•0 comments

AiFi on AWS

https://www.coinbase.com/fr-fr/developer-platform/discover/launches/agentcore-ga
2•AnhTho_FR•24m ago•0 comments

WikiFM – Encyclopedia Radio

https://apps.apple.com/us/app/wikifm-encyclopedia-radio/id6800855289
2•t4t•25m ago•1 comments

Launch HN: OneCLI (YC S26) – OSS sandboxed agent harness for teams

https://github.com/onecli/onecli
8•guyb3•27m ago•0 comments

Attorney General Rob Bonta speaks after first day of Meta trial [video]

https://www.youtube.com/watch?v=o1gjjESzabg
2•natemurthy•28m ago•1 comments

Show HN: nanoAlphaZero – Train a grandmaster-level chess model in 24h with TPUs

https://github.com/wtedw/nanoAlphaZero
2•tdoubleu•29m ago•0 comments

Extensible Software in the Age of LLMs

https://jeremymorrell.dev/blog/extensible-software-in-the-age-of-llms/
5•coloneltcb•29m ago•1 comments

How Kubernetes Probes Work

https://ngrok.com/blog/probes
4•cyndunlop•30m ago•0 comments

InstrSem: Automatically Inferring Semantics of (Undocumented) CPU Instructions

https://roots.ec/publications/hetterich2026instrsem
2•matt_d•30m ago•0 comments

We've solved many medical mysteries. Where are the cures? [video]

https://www.ted.com/talks/saloni_dattani_we_ve_solved_many_medical_mysteries_where_are_the_cures
1•paulpauper•31m ago•0 comments

Extensibility Is the New Precondition

https://www.ivan.codes/blog/extensibility-is-the-precondition
2•deeshee•33m ago•0 comments