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

A Curious Trig Identity

https://www.johndcook.com/blog/2026/02/24/a-curious-trig-identity/
1•ibobev•33s ago•0 comments

Trig of Inverse Trig

https://www.johndcook.com/blog/2026/02/25/trig-of-inverse-trig/
1•ibobev•50s ago•0 comments

Python Type Checker Comparison: Empty Container Inference

https://pyrefly.org/blog/container-inference-comparison/
1•ocamoss•1m ago•0 comments

Jjq, a local merge queue for jj

https://pauladamsmith.com/blog/2026/02/introducing-jjq-a-local-merge-queue-for-jj.html
1•ibobev•1m ago•0 comments

Tech legend Stewart Brand on Musk, Bezos and his extraordinary life

https://www.theguardian.com/technology/2026/feb/25/tech-legend-stewart-brand-on-musk-bezos-and-hi...
1•rwmj•2m ago•0 comments

The new Design for Stack Overflow is now live [beta]

https://beta.stackoverflow.com/
1•gortok•2m ago•1 comments

Show HN: I scanned 35 SaaS products across ChatGPT, Claude, Perplexity, Gemini

https://www.bersyn.com/
1•gissurthor•3m ago•0 comments

Illusion and Well-Being: A Perspective on Mental Health [pdf]

https://faculty.washington.edu/jdb/articles/Illusion%20and%20Well-Being.pdf
1•RickJWagner•3m ago•1 comments

UAA – A spec for AI and Human coding collaboration

1•alexandretrotel•4m ago•0 comments

AI-Driven Smart Contract Vulnerability Research

https://github.com/CoinFabrik/scout-audit-ai/blob/master/docs/State-Of-The-Art%20Survey%20Documen...
1•wslh•4m ago•0 comments

Show HN: Me.txt – A personal identity file for AI agents

https://www.metxt.org/
1•morochroyce•4m ago•1 comments

Kyoto University develops AI monk robot equipped with Buddhist scriptures

https://english.kyodonews.net/articles/-/71123
1•itmitica•4m ago•0 comments

OpenPencil: Open-source vector design tool controlled by AI Agents

https://github.com/ZSeven-W/openpencil
1•finiking•5m ago•2 comments

Why backups aren't a recovery strategy (and what is)

https://controlplane.com/blog/post/beyond-backups-designing-systems-that-survive-the-inevitable
2•mrlightning•5m ago•0 comments

Show HN: ContextVM – Running MCP over Nostr

1•gzuuus•7m ago•0 comments

Silicon, not oil: Why the U.S. needs the Gulf for AI

https://restofworld.org/2026/pax-silica-qatar-uae/
1•ericyd•7m ago•0 comments

Show HN: A live Python REPL with an agentic LLM that edits and evaluates code

2•andreabergia•8m ago•1 comments

Vital Cat Update: An Update to the Update

https://terribleminds.com/ramble/2026/02/19/vital-cat-update-an-update-to-the-update/
1•iamnothere•9m ago•1 comments

Show HN: Echos – Self-hosted AI knowledge base for things you forget

https://github.com/albinotonnina/echos
1•dupp•9m ago•0 comments

Show HN: PageDuel – A/B testing from $9/mo, no code required

https://pageduel.com
1•bokman123•12m ago•1 comments

Valve is a bigger threat to PlayStation than Xbox ever was

https://jamie.bearblog.dev/console-market-thesis-valve-bigger-threat-to-playstation-than-xbox-eve...
1•jamieskella•15m ago•0 comments

Never Buy A .online Domain

https://www.0xsid.com/blog/online-tld-is-pain
14•ssiddharth•15m ago•0 comments

Show HN: ZoneMapzone World Clock

https://zonemap.live/
1•zzjoey•17m ago•0 comments

Cabbage Genetics

https://worksinprogress.co/issue/sculpting-cabbages/
1•surprisetalk•17m ago•0 comments

The two kinds of desire, and one of the most important things I know

https://sashachapin.substack.com/p/the-two-kinds-of-desire-and-one-of
1•surprisetalk•17m ago•0 comments

Show HN: Browse2API – Turn any website into an API

https://www.browse2api.com/
1•AdityaKasaudhan•17m ago•0 comments

YouSky: My one-person social network (Short version)

https://rosswintle.uk/2026/02/yousky-my-one-person-social-network-short-version/
1•surprisetalk•18m ago•0 comments

Exploring a Future of Programming

https://sidhion.com/blog/exploring_future_programming/
2•surprisetalk•18m ago•0 comments

Show HN: Dmark – DMARC report bulk evaluation tool

https://github.com/scotttromley/dmark
1•prettyWise•18m ago•1 comments

Show HN: KTApple – Visual tile editor for macOS (KDE Plasma-style tiling)

https://github.com/m96-chan/KTApple
1•m96-chan•18m ago•1 comments