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!

What Would Postgres Do?

https://planetscale.com/blog/what-would-postgres-do
1•samlambert•1m ago•0 comments

Your software-factory agents are running as you

https://permit.substack.com/p/coding-agents-are-running-as-you
1•mooreds•1m ago•0 comments

The Wrong Signal and the Wrong Target? Router Margin on 7 Moe Models

https://github.com/Ron-Builds-AI/wrong-signal-wrong-target
1•ron-builds-ai•1m ago•0 comments

How to Choose a Software Development Company for Bespoke Solutions in 2027

https://businessmodelanalyst.com/how-to-choose-a-software-development-company-for-bespoke-solutions/
1•Aninay•1m ago•0 comments

Psi+ 1.6.1.168 Installer Has Been Released – Qt Jabber/XMPP Omemo/OTR E2EE

https://sourceforge.net/projects/psiplus/files/Windows/Personal-Builds/KukuRuzo/
1•neustradamus•1m ago•0 comments

The prime minister of Poland says Pegasus had 'full access' to surveillance data

https://www.politico.eu/article/poland-donald-tusk-israel-spyware-firm-full-access-surveillance-d...
1•miohtama•2m ago•0 comments

Europol's Official Harvest Now, Decrypt Later [pdf]

https://www.europol.europa.eu/cms/sites/default/files/documents/Harvest-now-decrypt-later.pdf
1•TheScoob•4m ago•0 comments

Subquadratic Releases SubQ Savant, Bringing 4M-Token Reasoning

https://www.businesswire.com/news/home/20261202242554/en/Subquadratic-Releases-SubQ-Savant-Bringi...
1•giancarlostoro•5m ago•0 comments

I used an AI agent to build a Post-Quantum Crypto compiler

https://github.com/baldersonjames6-lang/pqc-sweep
1•baldersonjames6•5m ago•0 comments

BasinKV, Drop-In RAM/NVMe KV Offloading for Llama.cpp, SGLang, vLLM

https://zellige.ai/research/basinkv-launch
2•Zellige•7m ago•0 comments

AI 'Prepping' for the Medium Term

https://anil.recoil.org/notes/ai-prepping
1•nerdypepper•8m ago•0 comments

Show HN: Claudedvan – a camper van build designed by Claude, in 3D

https://claudedvan.com/
1•thiagolima•8m ago•0 comments

Joint Statement from ONCD, NSA, and CISA

https://www.nsa.gov/Press-Room/Press-Releases-Statements/Press-Release-View/Article/4662453/joint...
2•intunderflow•10m ago•1 comments

Show HN: Timbre – Make your AI agents sound like you

https://www.timbreai.net
1•Eclipse4113•10m ago•0 comments

Show HN: Clerkbox – Drop a client's document pile, get a shareable vault

https://0xruangsak.github.io/financial-document-sorter/demo.html
1•astinashler•11m ago•0 comments

Show HN: PanelPass, free NEC load calculations for EV chargers and heat pumps

https://getpanelpass.com/calc
1•hellow0rld123•11m ago•0 comments

Show HN: Saucecheck, a menu scanner that ranks every dish for your diet goal

https://apps.apple.com/us/app/saucecheck-menu-scanner/id6831104209
1•lukasllhn•13m ago•0 comments

Paint Swirl Game – Free Color Mixing Game, No Download

https://paint-swirl.com/
1•dond1986•13m ago•0 comments

Halcy – agentic travel planning with human curated taste, live on App Store

https://apps.apple.com/se/app/halcy/id6833059162
2•alvae•13m ago•1 comments

Where Recyclers Fit in the Data Center Refresh

https://www.waste360.com/waste-recycling/where-recyclers-fit-in-the-data-center-refresh
1•rbanffy•14m ago•0 comments

Building the software behind Base's factory

https://www.basepowercompany.com/inside/building-the-software-behind-bases-factory
5•spoon16•15m ago•0 comments

Mastodon 5.0

https://blog.joinmastodon.org/2026/12/mastodon-5.0/
4•pentagrama•17m ago•0 comments

Show HN: Interlock, an open shell command safety classifier

https://gauss.motor.dev/motor/interlock
5•ncd•18m ago•1 comments

The employment impact of AI: Evidence from the 2026 AI Surveys

https://www.oecd.org/en/publications/the-employment-impact-of-ai_2d7de510-en/full-report.html
1•datascientist•18m ago•0 comments

RightNow Mini - Runs Inkling 2 Mini 2.83 times faster on one GPU

https://huggingface.co/RightNowAI/RightNow-Mini
2•goatley•19m ago•0 comments

Varlock Is Joining Cloudflare

https://blog.cloudflare.com/varlock-joins-cloudflare/
3•subset•19m ago•0 comments

Canceling Adobe Creative Suite

https://www.thomasmcgee.co/note/canceling-adobe-creative-suite
1•SunshineTheCat•19m ago•0 comments

Staying Engaged as AI Surpasses Me

https://www.jefftk.com/p/staying-engaged-as-ai-surpasses-me
3•yurivish•19m ago•0 comments

NSA Advises Immediate Transition to Post-Quantum Cryptography

https://www.nsa.gov/Press-Room/Press-Releases-Statements/Press-Release-View/Article/4662430/nsa-a...
79•intunderflow•20m ago•27 comments

Show HN: Warpspec – TLA+ model checking on a GPU, 4,600× faster than TLC

https://praveenperera.com/blog/tla-model-checking-4600x-faster-on-a-gpu/
1•praveenperera•21m ago•0 comments