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!

Design Considerations for an Anthropophilic Computer (1979)

https://web.stanford.edu/dept/SUL/sites/mac/primary/docs/bom/anthrophilic.html
1•throw310822•5m ago•0 comments

ElephpantDB: A pure PHP SQL database

https://github.com/antonmedv/elephpantdb
1•medv•5m ago•0 comments

Protecting Postgres from everything that isn't Postgres

https://clickhouse.com/blog/protect-postgres-from-supporting-processes
1•saisrirampur•15m ago•0 comments

Anna's Archive Lost Several Domains

https://goodereader.com/blog/ebook-and-audiobook-piracy-news/annas-archive-lost-several-domains
1•kozmonaut•15m ago•0 comments

Building a Flight Controller in Rust

https://www.staszewski.xyz/blog/building-a-flight-controller-in-rust/
1•kamilstaszewski•20m ago•0 comments

The Open Air European Museum

https://www.theprincetontory.com/is-europe-an-open-air-museum/
1•satvikpendem•22m ago•0 comments

We run five Claude Code sessions at once

https://draper.chat/dev/the-ultimate-claude-code-parallelisation-guide-2026
1•tomchill•27m ago•0 comments

Second Wave Solarpunk

https://planetsandmonsters.blogspot.com/2026/08/second-wave-solarpunk.html
1•rdmuser•30m ago•0 comments

Vim Classic debuts with its first release as a Vim fork without AI assistance

https://www.neowin.net/news/vim-classic-debuts-with-its-first-release-as-a-vim-fork-without-ai-as...
1•pir8life4me•30m ago•1 comments

Sivers in Bangalore

https://sive.rs/met/at-15
1•nreece•33m ago•0 comments

Kansas town drops charges against teacher arrested for clapping

https://www.tomshardware.com/tech-industry/data-centers/kansas-town-drops-charges-against-teacher...
2•rdmuser•35m ago•0 comments

Show HN: Tracking spec-driven development in the wild

https://sddobservatory.com/
1•emilesilvis•41m ago•0 comments

PlayStation wants to prove in court that you don't own your digital games

https://www.polygon.com/sony-digital-games-lawsuit-california/
2•Markoff•41m ago•0 comments

I built a multiplayer version of the 4,500-year-old Royal Game of Ur

https://royalgameofur.app
2•potentdream•42m ago•0 comments

Roget's Thesaurus

https://artflsrv04.uchicago.edu/roget-thesaurus/
1•gregsadetsky•42m ago•0 comments

Faster than real-time video generation with #1 quality model

https://fal.ai/tools/minimax-h3-max
1•treesciencebot•42m ago•0 comments

Samsung's SmartThings API Terminates Free Access

https://hackaday.com/2026/07/28/samsungs-smartthings-api-terminates-free-access/
4•ryan_j_naughton•43m ago•0 comments

Any Recommended Alternatives to Google Maps and Apple Maps?

2•derbOac•45m ago•0 comments

Ask HN: How do you feel about AI generated documentation?

3•LelouBil•53m ago•1 comments

Rootless Docker and Its Hidden Security Trade-Offs

https://www.kenmuse.com/blog/rootless-docker-and-its-hidden-security-trade-offs/
2•zdw•57m ago•1 comments

Open Home Foundation

https://www.openhomefoundation.org/
2•LelouBil•59m ago•0 comments

Care for a Little More AI?

https://proofsandprompts.com/2026/08/30/care-for-a-little-more-ai/
1•Shuddown•1h ago•0 comments

Context7 vs. Claude Code's Web Search: A Token and Cost Benchmark

https://upstash.com/blog/context7-vs-web-search-benchmark
1•y1zhou•1h ago•0 comments

Corsair RM1000e (2026) ThermalProtect review: Temperature-sensing 12V-2x6 cable

https://www.tomshardware.com/pc-components/power-supplies/corsair-rm1000e-2026-thermalprotect-pow...
1•sbulaev•1h ago•0 comments

Ask HN: What's the most thoughtful AI product you've seen?

2•asdev•1h ago•2 comments

Privanode – Access 397 models and 19 FREE models with Crypto payments

https://privanode.app/
2•AboozarEsmaili•1h ago•0 comments

The EU has begun enforcing the AI Act: first RFIs to model providers

https://tokenstead.ai/guides/eu-ai-act-first-enforcement-security-rfis
23•cdnsteve•1h ago•22 comments

From Tethered Spinal Cord to C1 Paralysis

https://medium.com/freedomofthought/from-tethered-spinal-cord-to-c1-paralysis-and-five-years-of-b...
4•raynchad•1h ago•0 comments

OpenClaw 2.0, Accidentally

https://openclaw.ai/blog/openclaw-2-accidentally
4•doppp•1h ago•0 comments

Amazon Stonehenge: Parque Arqueológico Do SolstíCIO

https://en.wikipedia.org/wiki/Parque_Arqueol%C3%B3gico_do_Solst%C3%ADcio
2•nycdatasci•1h ago•0 comments