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!

Expedition takes first images of Shackleton's last ship, Quest, in Labrador Sea

https://www.whoi.edu/press-room/news-release/quest-images/
1•bookofjoe•3m ago•0 comments

How AI Became More Expensive Than the Workers It Replaced [video]

https://www.youtube.com/watch?v=cfaZZPjA3g0
1•Bender•5m ago•0 comments

China's Open AI Models Are Advancing Its Global Soft Power

https://www.noemamag.com/chinas-open-ai-models-are-advancing-its-global-soft-power/
3•Gooblebrai•5m ago•0 comments

Academics building open‑source agents for academic and research work

https://www.agents4academia.org/
1•kkaleb•8m ago•0 comments

I made a Pirate MMO with Fable and the game is only 5MB

https://www.reddit.com/r/ClaudeAI/s/Iw8gUeuk96
2•m0dE•10m ago•1 comments

ASK HN: Is it only for me? Or GPT 5.6 Ultra rly love cartoons looks?

https://a.sekor.eu.org/cdc.html
1•modinfo•12m ago•0 comments

Go-Flavored Concurrency in C

https://antonz.org/concurrency-in-c/
2•ingve•14m ago•0 comments

SHOW HN: Beta TPMS Screening for Additive Manufacturing (Describe Your Part)

https://cpetpms.com/
2•andymvince•14m ago•0 comments

Zeal 8-Bit Computer

https://zeal8bit.com/
2•gregsadetsky•16m ago•0 comments

Are there cyberthreat Intel aggregation apps/websites for executives and CISO?

1•elsadek•18m ago•0 comments

The Descent to C (2013)

https://www.chiark.greenend.org.uk/~sgtatham/cdescent/
2•downbad_•19m ago•0 comments

The Decline of Deviance 2

https://www.experimental-history.com/p/the-decline-of-deviance-2
2•paulpauper•21m ago•0 comments

FT: Apple sues OpenAI, alleging it stole top-secret information

https://www.ft.com/content/5054739e-7f97-455c-910a-dd8a8150fed2
2•colinhb•21m ago•1 comments

China did not manage to avoid a crash

https://www.noahpinion.blog/p/no-china-did-not-manage-to-avoid
2•paulpauper•21m ago•0 comments

Sixteen Fun Facts About Me

https://fiddlersgreene.substack.com/p/the-rise-and-fall-of-nowhere-man
1•paulpauper•22m ago•0 comments

Apple sues OpenAI over alleged trade secret theft

https://techcrunch.com/2026/07/10/apple-sues-openai-over-alleged-trade-secret-theft/
5•shadowtree•23m ago•0 comments

Apple sues OpenAI for trade secret theft

https://www.axios.com/2026/07/10/apple-sues-openai-trade-secret-theft
4•elorant•25m ago•0 comments

Invoice Enclosed

https://www.cerias.purdue.edu/site/blog/post/inv-e
3•billybuckwheat•27m ago•0 comments

The Case of the Ancient Astronauts (1979) [video]

https://archive.org/details/thecaseoftheancientastronauts
1•petethomas•28m ago•0 comments

Apple Sues OpenAI, Accusing It of Stealing Company Secrets

https://www.nytimes.com/2026/07/10/technology/apple-openai-lawsuit.html
12•jbegley•30m ago•0 comments

Rust Service Isn't Leaking – It Could Be the Allocator

https://pranitha.dev/posts/rust-and-memory-allocators/
1•birdculture•32m ago•0 comments

Four years later, Apple bends to India's demands over card payments

https://appleinsider.com/articles/26/07/06/four-years-on-apple-bends-to-indias-demands-over-card-...
2•thisislife2•32m ago•0 comments

Channel 5: We're Being Sued [video]

https://www.youtube.com/watch?v=WKQ2FD7rMN4
3•haunter•33m ago•0 comments

Ask HN: Would you play AI developed games?

2•Monotoko•41m ago•7 comments

Apple files lawsuit accusing OpenAI of stealing trade secrets

https://apnews.com/article/apple-openai-lawsuit-trade-secrets-theft-6fff8833f5889d86406b89a02dd8fb16
14•root-parent•43m ago•1 comments

When AWS, Azure, or GCP Becomes the Competition (2019)

https://www.gkogan.co/big-cloud/
1•downbad_•43m ago•0 comments

AVTensor: A High-Performance Rust Media Decoder for Training Pipelines

https://runwayml.com/news/avtensor-a-high-performance-rust-media-decoder-for-training-pipelines
1•nielka•44m ago•0 comments

Minnesota daycare owner pleads guilty to 2 fraud charges

https://www.cbsnews.com/minnesota/news/fahima-mahamud-fraud-guilty-plea/
9•donsupreme•45m ago•0 comments

Apple accuses OpenAI of using stolen trade secrets to create its AI gadgets

https://www.cnn.com/2026/07/10/tech/apple-openai-devices-lawsuit
13•haunter•45m ago•0 comments

Pirate Site Blocking Is Legally Impossible in Bulgaria, Supreme Court Ruled

https://torrentfreak.com/pirate-site-blocking-is-legally-impossible-in-bulgaria-supreme-court-ruled/
7•thisislife2•45m ago•0 comments