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!

Listen to my free techno songs you freeloading tech hobo's

https://soundcloud.com/user-111956257
1•minimaxa•4m ago•1 comments

Jobs to Be Done

https://stratnotes.substack.com/p/jobs-to-be-done
2•swastikanayak•5m ago•0 comments

N8N in Production: Lead Qualification That Works

https://trpevski.com/blog/n8n-in-production-lead-qualification-that-works/
1•dzugumot•7m ago•0 comments

Computing Graph Dominators

https://neugierig.org/software/blog/2026/08/dominators.html
1•fanf2•11m ago•0 comments

Show HN: UltimateXO – Open-Source Ultimate Tic-Tac-Toe Web Game

https://ultimatexo.com/
1•mekky16•14m ago•0 comments

People with Stronger Psychopathic Traits Carry Certain Gut Bacteria

https://www.rathbiotaclan.com/study-reveals-microbes-in-your-gut-and-mouth-may-track-psychopathic...
1•Akasci•17m ago•0 comments

Secondhand UK and Irish booksellers suspect AI firms behind strange bulk orders

https://www.theguardian.com/technology/2026/aug/15/uk-ireland-booksellers-suspect-ai-companies-bu...
1•mellosouls•18m ago•0 comments

DX12.0 and Vulkan 1.0 were designed for ~15 year old GPUs

https://twitter.com/SebAaltonen/status/2087870023557697856
1•ksec•26m ago•0 comments

One of the Most Important Policy Decisions of Our Lifetime

https://www.nytimes.com/2026/08/14/opinion/ai-policy-tax-technology.html
2•reasonableklout•31m ago•0 comments

Show HN: HN Without AI Stories

https://hnnoai.readpipe.org/
5•zorked•36m ago•1 comments

manim: Framework for Creating Mathematical Animations

https://github.com/manimCommunity/manim
1•pykello•39m ago•0 comments

Coreboot Overclocking Arrives on MSI's Z690 and Z790

https://hwbusters.com/news/coreboot-overclocking-arrives-on-msis-z690-and-z790-experimental-and-u...
1•pietrushnic•39m ago•1 comments

No Plan Survives Contact with the Enemy (Reality)

https://blog.exe.dev/planning
1•tosh•39m ago•0 comments

Causation in Climate Change: ICJ)'S Climate Change Advisory Opinion Re Tort Law

https://opiniojuris.org/2026/03/03/causation-in-climate-change-the-international-court-of-justice...
1•bryanrasmussen•39m ago•1 comments

Healthcare Palantir Prototype

https://tmg.marcokittel.de
1•evlute•40m ago•1 comments

Show HN: Chemistry AI – step-by-step chemistry solver

https://chemistryai.chat
1•realisticaigen•42m ago•0 comments

Jason Arday, professor at centre of Cambridge plagiarism row, found dead

https://www.theguardian.com/uk-news/2026/aug/14/jason-arday-found-dead-after-resigning-from-cambr...
2•jimnotgym•42m ago•0 comments

Show HN: Homelander – free desktop app that applies for apartments in Germany

https://www.youtube.com/watch?v=udNWQz3WNBI
1•b1z0n•43m ago•0 comments

Charity and Sylvia: The Extraordinary Claims of Rachel Hope Cleves

https://buttondown.com/thene/archive/charity-and-sylvia-the-extraordinary-claims-of/
1•bryanrasmussen•44m ago•0 comments

OpenAI updates its Privacy Policy to include ads

3•1equalsequals1•44m ago•2 comments

Qwen3.8 27B Coming to Cerebras

https://twitter.com/cerebras/status/2088419572416147582
1•Moduke•48m ago•1 comments

Django is moving to an annual release cycle

https://www.djangoproject.com/weblog/2026/aug/10/annual-release-cycle/
3•JodieBenitez•53m ago•0 comments

Using GCC's Nested Functions with Wide Pointers and No Trampolines II

https://uecker.codeberg.page/2026-07-14.html
1•uecker•54m ago•0 comments

Show HN: Sandbox the install step of any NPM package

https://www.npmjs.com/package/@kenwea/mcp
1•Myzura•54m ago•0 comments

State media control influences large language models

https://www.nature.com/articles/s41586-026-10506-7
1•theanonymousone•59m ago•0 comments

René Goscinny

https://en.wikipedia.org/wiki/Ren%C3%A9_Goscinny
2•wolfi1•1h ago•0 comments

Copyright Is Brain Damage

https://www.youtube.com/watch?v=XO9FKQAxWZc
2•theanonymousone•1h ago•0 comments

Tell HN: My open-source form builder has reached ~7k registered users

1•darkhorse13•1h ago•0 comments

Tropical Storm Lala forecast to bring hurricane conditions to Hawaii Saturday

https://www.hawaiinewsnow.com/2026/08/15/tropical-storm-lala-forecast-bring-hurricane-conditions-...
1•saisrirampur•1h ago•0 comments

High-performance single-GPU inference for selected model checkpoints and GPUs

https://github.com/Neroued/ninfer
1•davedx•1h ago•0 comments