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!

CTD Clinic is fake medical paperwork for transmissible internet stupidity

https://ctd.clinic/
1•mgl•46s ago•0 comments

Why does tsgo use so much memory?

https://zackoverflow.dev/writing/why-does-tsgo-use-so-much-memory/
1•flashblaze•1m ago•0 comments

How to Build an Agentic RAG with RubyLLM and Rails

https://www.panasiti.me/blog/how-to-build-agentic-rag-with-rubyllm-and-rails/
1•giovapanasiti•2m ago•0 comments

Mining a Terms-of-Service fairness rubric from labelled data with DSPy and GEPA

https://medium.com/empirical-engineer/gepa-wrote-its-own-legal-rubric-and-caught-33-more-unfair-c...
1•tassosyal•3m ago•0 comments

PGM-index:range searches, deletes, updates using orders of magnitude less space

https://pgm.di.unipi.it/
1•hamilyon2•3m ago•0 comments

First Valhalla related stuff will land in Java 28

https://mail.openjdk.org/archives/list/jdk-dev@openjdk.org/thread/AIA3O3LHFZ6T7TIPH7KZT4WS4B6U72U5/
2•lichtenberger•3m ago•0 comments

Nick Reiner seeks trust fund left by parents to pay for defense in their killing

https://www.nbcnews.com/news/us-news/nick-reiner-seeks-access-trust-parents-left-pay-defense-kill...
2•Michelangelo11•8m ago•0 comments

Looking for volunteers to help with my AI-generated website

1•petebay•8m ago•0 comments

Mercedes‑Benz starts large‑scale production of electric axial flux motor

https://media.mercedes-benz.com/en/article/bebac2af-acdc-465a-9538-adb0bf3d8ccf
2•raffael_de•10m ago•0 comments

Show HN: Eatmydata.ai – Local-First Question-to-SQL-to-Dashboard AI

https://eatmydata.ai/
1•dennis16384•12m ago•0 comments

An open letter to office suite users, just before the Euro-Office announcement

https://blog.documentfoundation.org/blog/2026/06/08/an-open-letter/
1•r366y6•12m ago•0 comments

Show HN: Practicing foreign language generating conversation on topic [video]

https://www.youtube.com/watch?v=6oFjLfrbegg
1•julienreszka•17m ago•0 comments

We gave our agent the exact metric definition. It still wrote the wrong SQL

https://clarilayer.com/blog/what-anthropic-and-openai-didnt-say-about-context-for-data-agents
1•kylehui818•19m ago•1 comments

Vibe Coding is the new Internet Dating

https://joecmarshall.com/posts/vibecoding-is-the-new-internet-dating/
1•CoreSet•21m ago•0 comments

Twelve Factor App Method (2011)

https://12factor.net/
1•zuzuen_1•22m ago•0 comments

Recovoly – AI-powered ink bleed removal for scanned documents

https://recovoly.com
1•thisarajay•22m ago•0 comments

Overtone

https://github.com/overtone/overtone
1•tosh•26m ago•0 comments

How HN: Launchmap – from idea to first paying customer

https://launchmap.madethis.app
1•lucawalthert•29m ago•1 comments

I rebuilt the same SaaS plumbing four times. So I built the thing I wish existed

https://www.indiehackers.com/post/i-rebuilt-the-same-saas-plumbing-four-times-so-i-built-the-thin...
2•DharmendraJago•33m ago•0 comments

Finitemax

https://www.instagram.com/finitemax
1•Faizaan_vx•33m ago•0 comments

Fable 5 is available in Zed

https://github.com/zed-industries/zed/pull/58957
1•flaburgan•35m ago•2 comments

Claude Fable 5 Ultracode + AI medical diagnosis

https://github.com/joelparkerhenderson/ai-medical-diagnosis-examples/blob/main/doctor-perspective...
1•jph•35m ago•0 comments

Moon Mnf: magic wands,idiots, first principal

https://www.lmcpress.com/
1•AITripleAce•36m ago•0 comments

Rejected Emoji Proposals

https://charlottebuff.com/unicode/misc/rejected-emoji-proposals/
1•cheeaun•42m ago•0 comments

Firefox for Android: Play Integrity Check Challenges Custom ROM Users

https://serverhost.com/blog/firefox-for-android-play-integrity-check-challenges-custom-rom-users/
3•shaunpud•43m ago•0 comments

Australian SaaS Platforms Can Verify Business Users with ABN Data

https://fastbusinessapi.com/article/how-australian-saas-platforms-can-verify-business-users-with-...
2•ApiFB-Dev•45m ago•0 comments

Principles for Agent-Native CLIs

https://trevinsays.com/p/10-principles-for-agent-native-clis
1•saikatsg•47m ago•0 comments

From the Transistor to the Web Browser

https://github.com/geohot/fromthetransistor
2•pythops•49m ago•0 comments

David Sinclair plans to test whole-body rejuvenation drugs in the xPrize compet

https://www.technologyreview.com/2026/06/09/1138545/david-sinclair-plans-to-test-whole-body-rejuv...
1•joozio•53m ago•0 comments

Compute-to-Surplus: Why AI Progress Doesn't Matter Until It Changes Economics

https://signal-memo.com/memo-the-compute-to-surplus-pipeline-is-a-product-spec-heres-how-to-ship-...
1•alex-ivan•54m ago•0 comments