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!

Creative Exhibition Booths for Trade Shows

https://news.ycombinator.com/submit
1•zealdesign•1m ago•0 comments

Even AGI Can't Estimate a Jira Ticket

https://morgin.ai/articles/even-agi-cant-estimate-a-jira-ticket.html
1•andsoitis•2m ago•0 comments

Eigen Dance interactive web app

https://eigshow.web.app/
1•cecinuga•2m ago•0 comments

Ask HN: Is Codex's 5-hour usage limit back?

2•linzhangrun•4m ago•0 comments

What should a fair benchmark for Agent Memory look like?

https://agentmemoryleaderboard.ai/home
1•IreneAI•7m ago•0 comments

Routing Gremlin Through the Match Planner in YouTrackDB

https://medium.com/@youtrackdb/routing-gremlin-through-the-match-planner-088503bc6128
1•andrii_lomakin•9m ago•0 comments

Write-Ahead Logs on S3: Compatibility Is Not Performance

https://blog.trylle.com/wal-s3
1•Xlab•10m ago•1 comments

Empirical analysis of early-exit HTTP bot mitigation on server load [German]

https://zenodo.org/records/22018287
1•UJ-FLD-ScrTr•12m ago•0 comments

Countdown Clock GTA6

https://gta6.blog/countdown
2•s-xyz•13m ago•0 comments

We ran 2.2B samples through Prometheus, Mimir, and OpenObserve

https://openobserve.ai/blog/openobserve-vs-prometheus-mimir-metrics-benchmark/
1•smkumari•14m ago•0 comments

I made a free site that tells you the best night to see anything in the sky

https://besttimetosee.netlify.app
1•gloobyhoohoo•16m ago•1 comments

Show HN: Luainstaller 1.3.0

https://github.com/Water-Run/luainstaller/releases/tag/v1.3.0
1•linzhangrun•16m ago•0 comments

Mastering Data Partitioning in Databricks with Spark and Delta Lake

https://medium.com/databrickscommunity/mastering-data-partitioning-in-databricks-with-spark-and-d...
1•protmaks•17m ago•0 comments

I Passed Both Databricks Data Engineer Certifications in Two Months

https://medium.com/databrickscommunity/how-i-passed-both-databricks-data-engineer-certifications-...
1•protmaks•17m ago•0 comments

Databricks Architecture Icons

https://medium.com/databrickscommunity/databricks-architecture-icons-34cce0d680f8
2•protmaks•18m ago•0 comments

El Niño may peak at the worst time for the Amazon – and it should worry us all

https://www.theguardian.com/environment/2026/aug/14/el-nino-predicted-peak-amazon-rainforest-climate
2•rbanffy•18m ago•0 comments

P2P Token Factory: Private Inference Network on Idle Macs

https://github.com/Layr-Labs/d-inference
2•TheBengaluruGuy•19m ago•0 comments

Show HN: AP – Agent Native .env

https://github.com/mergd/ap
1•wyxuan•19m ago•0 comments

The Work Number: credit score but for your employment history – by Equifax

https://employees.theworknumber.com
2•firefoxd•20m ago•0 comments

Building Without Predicting

https://sive.rs/fit
2•tosh•27m ago•0 comments

'Huge Breakthrough' in the Math of Imbalance

https://www.quantamagazine.org/huge-breakthrough-in-the-math-of-imbalance-20260821/
3•pykello•31m ago•0 comments

Over 5,200 Ebola cases recorded in Congo

https://www.afro.who.int/countries/democratic-republic-of-congo/news/over-5200-cases-recorded-dem...
7•simonebrunozzi•33m ago•1 comments

Saily Ultra eSIM Premum Plan Review: Packed with Perks

https://www.wired.com/review/saily-ultra-esim/
2•joozio•35m ago•0 comments

Seymour and Peters hit back as Luxon moves on under-16s social media ban

https://www.1news.co.nz/2026/08/24/seymour-and-peters-hit-back-as-luxon-moves-on-under-16s-social...
1•01-_-•35m ago•0 comments

I spent $200 a month to SEO-poison Google search results

https://higashi.blog/2026/08/23/api-use/
2•yuedongze•35m ago•0 comments

Casio's Bluetooth F-B100W-1A with step-tracker sells out again

https://www.notebookcheck.net/Casio-s-Bluetooth-F-B100W-1A-with-step-tracker-sells-out-again-leav...
3•01-_-•37m ago•0 comments

Andreessen Horowitz is investing billions into a bleak future

https://www.modelrepublic.org/articles/a16z-portfolio
8•reasonableklout•40m ago•0 comments

Disconnect – Tracking Leads to Hacking

https://disconnect.me/
1•janandonly•43m ago•0 comments

Hugging Face has been fielding M&A interest for a deal worth at least $13B

https://www.businessinsider.com/hugging-face-could-be-acquired-13-billion-2026-8
4•AlexDragusin•44m ago•0 comments

Show HN: Hookpost – Open-source social media scheduler with AI Agent copilot

https://github.com/jatinder14/hookpost
2•jrgupta•48m ago•1 comments