frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Would you believe try-catch-finally works in plain old C?

4•mf_taria•7mo 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•7mo ago
Finally!

The Death of the Draftsman

https://tecnetinc.com/The%20Death%20of%20the%20Draftsman.html
1•auxym•2m ago•0 comments

Publishing your work increases your luck

https://github.com/readme/guides/publishing-your-work
1•magoghm•4m ago•0 comments

Three-quarters of the global population are not getting enough Omega-3

https://www.southampton.ac.uk/news/2025/12/three-quarters-not-meeting-recommended-omega3-intakes....
2•geox•9m ago•0 comments

Show HN: LynxPrompt – repo-first AI config generator and shareable blueprints

2•geiser•12m ago•0 comments

The Origin of the Terms Big-Endian and Little-Endian (2003)

https://www.ling.upenn.edu/courses/Spring_2003/ling538/Lecnotes/ADfn1.htm
2•cluckindan•16m ago•1 comments

Show HN: ForwardToAudio – Turn newsletters into a private podcast using AI

https://forwardtoaudio.com
1•bryanstjohn•18m ago•1 comments

Altair 8800 – Video #29 – Music on an Altair 8800

https://www.youtube.com/watch?v=1FDigtF0dRQ
1•mordechai9000•21m ago•0 comments

The Source of Water

https://thinkhuman.com/history/the-source-of-water/
1•jamesgill•26m ago•0 comments

Former ULA Chief Bruno Joins Blue Origin

https://spacenews.com/former-ula-chief-bruno-joins-blue-origin/
1•pinewurst•26m ago•0 comments

How tax trackers influence wealthy Americans' holiday plans

https://www.ft.com/content/1767f3d6-acc3-40f8-9382-411bad89485e
1•hhs•27m ago•0 comments

Quantum computing in the second quantum century

https://quantumfrontiers.com/2025/12/26/quantum-computing-in-the-second-quantum-century/
1•mathgenius•30m ago•0 comments

Procedural Kernel (Neural) Networks (2022)

https://bartwronski.com/2022/01/03/procedural-kernel-neural-networks/
1•RicoElectrico•33m ago•0 comments

We will never fucking trust Americans again

https://www.readtheline.ca/p/matt-gurney-we-will-never-fucking
7•edent•34m ago•4 comments

Flock and Urban Surveillance

https://computer.rip/2025-12-26-Flock-and-Urban-Surveillance.html
2•zdw•34m ago•0 comments

Filming Bullets at 20,000,000 FPS

https://www.youtube.com/watch?v=IM4zZchluX0
1•belter•38m ago•0 comments

Show HN: Open-source LLM playground for VS Code

https://marketplace.visualstudio.com/items?itemName=mindrig.mindrig
1•kossnocorp•42m ago•0 comments

Reality crushed Ÿnsect startup that had raised over $600M for insect farming

https://techcrunch.com/2025/12/26/how-reality-crushed-ynsect-the-french-startup-that-had-raised-o...
2•fcpguru•43m ago•0 comments

Nix-prompt: a clean and modular bash prompt with just the right amount of custo

https://github.com/nix-tricks/nix-prompt
1•todsacerdoti•43m ago•0 comments

Solid-state batteries charge faster, last longer: review

https://news.ucr.edu/articles/2025/07/16/solid-state-batteries-charge-faster-last-longer
2•hhs•44m ago•0 comments

Xkcd: A Universal Outlet

https://xkcd.com/3186/
2•fork-bomber•46m ago•0 comments

Perry Bamonte, guitarist and keyboardist for the Cure, dies

https://www.theguardian.com/music/2025/dec/26/perry-bamonte-guitarist-the-cure-dies
2•lastdong•46m ago•0 comments

Exposing the Gambling Epidemic [video]

https://www.youtube.com/watch?v=9Ii1ROzeSwU
2•paulpauper•51m ago•0 comments

The Myth of Meritocracy on Wall Street

https://riskparody.substack.com/p/the-myth-of-meritocracy
2•chrislguo•55m ago•1 comments

Read Something Wonderful (More Easily)

https://readsomethingwonderfulmoreeasily.netlify.app/
1•lessconfused•1h ago•0 comments

AI can help get fusion from lab to energy grid by the 2030s – WEF

https://www.weforum.org/stories/2025/12/how-ai-will-help-get-fusion-from-lab-to-grid-by-the-2030s/
1•g-b-r•1h ago•3 comments

Exe.dev/

https://exe.dev/
36•achairapart•1h ago•19 comments

To get better at filtering the good ideas from the bad, by paying attention

https://www.thetimes.com/magazines/the-sunday-times-magazine/article/how-to-think-the-philosopher...
3•hhs•1h ago•0 comments

What Dan Read

https://what-dan-read.com
1•jebarker•1h ago•1 comments

Show HN: Reverse Engineering (Kind of) SQLite in Go

https://github.com/RichardKnop/minisql
1•richardknop•1h ago•0 comments

Ask HN: Hacker News Critical Thinking

2•hecanjog•1h ago•0 comments