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!

Show HN: Hardware requirement calculator for local LLMs

https://soverignplan.app/
1•gkrishna•1m ago•0 comments

Could psilocybin be the key to treating anorexia?

https://www.scientificamerican.com/article/psilocybin-could-kick-start-anorexia-recovery-early-re...
1•tzury•2m ago•0 comments

Show HN: An app to dump notes during the day and plan todos without distraction

https://today.spqrk.net/
1•SPQRK•3m ago•0 comments

Could a change in diet improve mental health? Metabolic psychiatry explained.

https://www.nationalgeographic.com/health/article/metabolic-psychiatry-keto-diet-brain-science
1•bookofjoe•9m ago•1 comments

Yeti Devworks

https://yetidevworks.com/
1•joshka•10m ago•0 comments

Ask HN: I built bribes.fyi, now I am stuck what to with it

1•neverenderr•11m ago•0 comments

Study: People prefer stories written by AI

https://www.cambridge.org/core/journals/judgment-and-decision-making/article/bot-or-not-can-peopl...
2•senordevnyc•13m ago•0 comments

Night-Tower: Over-Engineered Homelab Powered by Fighter Jets and AI Chaos

https://shadowfish.night-tower.net/post/night-tower-homelab-architecture/
1•taubek•13m ago•0 comments

Trump's AI protectionism has come for robotics

https://www.technologyreview.com/2026/08/03/1141056/trumps-ai-protectionism-has-come-for-robotics/
1•rbanffy•15m ago•0 comments

Kioxia's nearly faster than Optane SSD

https://www.blocksandfiles.com/flash/2026/08/03/kioxias-nearly-faster-than-optane-ssd/5282259
1•rbanffy•15m ago•0 comments

SQS consumer can hang forever by default

https://encore.dev/blog/message-queue-hangs
2•eandre•16m ago•0 comments

Drug Discovery Has No Magic Wands by Daphne Koller

https://www.a16z.news/p/drug-discovery-has-no-magic-wands
1•eamag•17m ago•0 comments

Sober: Local-first code reviewer for agentic PR (deterministic and model review)

https://sober-dev.app/
1•marmai•18m ago•0 comments

People are ghosting long-term partners. Some don't regret it

https://www.wired.com/story/people-are-ghosting-long-term-partners-some-dont-regret-it/
3•eternalreturn•18m ago•0 comments

Show HN: Free EN 16931 e-invoice validator that runs in the browser

https://einvoicekit.com/
1•yzaroui•19m ago•0 comments

Belgie – TypeScript Sandboxes and React MCP Apps for Python

https://mplemay.github.io/belgie/
3•mplemay•20m ago•0 comments

Jeremy (Snail)

https://en.wikipedia.org/wiki/Jeremy_(snail)
2•ostacke•20m ago•0 comments

Gentle Response to Dontasktoask

https://www.dontbeasillygoose.fyi/
1•yikestra•21m ago•0 comments

Why the Best Software Engineers Focus on System Design

https://www.youtube.com/watch?v=LeUUxLRdvho
2•Brysonbw•21m ago•0 comments

Show HN: Code Factory – Create a reviewable MVP in minutes, with receipts

https://github.com/zrk222/code-factory
1•zrk222•22m ago•0 comments

Simulation Apps Pinpoint Cause of Electronics Failures

https://spectrum.ieee.org/electronics-corrosion-multiphysics-simulation
1•rbanffy•23m ago•0 comments

Show HN: Nodes – A native macOS Markdown editor that runs its AI on device

https://nodes-web.com/
1•jacobchen7•23m ago•1 comments

Beyond Scarcity: How Abundance Shaped Economic Thought from Smith to Romer [pdf]

https://www.paecon.net/PAEReview/issue114/Beaudreau114.pdf
1•ike_usawa•25m ago•0 comments

The Disruption Society [pdf]

https://www.paecon.net/PAEReview/issue114/Davalos114.pdf
2•ike_usawa•26m ago•0 comments

Ask HN: When do you choose RAG over Fine-Tuning?

1•Harish_0089•27m ago•0 comments

Polling shows a growing political reckoning is coming for data centers

https://www.politico.com/news/2026/07/21/poll-data-centers-democrats-moratorium-01001799
2•mapping365•28m ago•1 comments

A graded registry of scientific results produced by or with AI

https://whataifound.org/
1•ygtisik•29m ago•0 comments

Paper Rankings across live ArXiv categories

https://kurate.org/
2•nnx•29m ago•0 comments

Game Theory and the Dilemma of Degrowth [pdf]

https://www.paecon.net/PAEReview/issue114/Alexander114.pdf
2•ike_usawa•30m ago•0 comments

Gish Gallop

https://en.wikipedia.org/wiki/Gish_gallop
1•chistev•35m ago•0 comments