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!

Divide and Compact: Segment-Oriented Compaction in SlateDB

https://slatedb.io/blog/segment-oriented-compaction/
1•agavra•28s ago•0 comments

Worker shortage endangers US chip production plans

https://www.taipeitimes.com/News/biz/archives/2026/07/09/2003860430
1•craigjb•28s ago•0 comments

Postgres locks do not scale

https://www.recall.ai/blog/postgres-locks-do-not-scale
1•timetoogo•1m ago•0 comments

ANSI X9.150-2026 Payment QR – Merchant-Presented QR Codes for Secure Payment

https://webstore.ansi.org/standards/ascx9/ansix91502026
1•petethomas•1m ago•0 comments

GPT-5.6

https://openai.com/index/gpt-5-6/
10•logickkk1•1m ago•0 comments

Using GPT-5.6

https://developers.openai.com/api/docs/guides/latest-model
2•minimaxir•2m ago•0 comments

The Download: a nuclear landmark, and China eyes Nvidia chips

https://www.technologyreview.com/2026/07/09/1140283/the-download-nuclear-power-milestone-nvidia-c...
1•joozio•2m ago•0 comments

ChatGPT Work

https://openai.com/index/chatgpt-for-your-most-ambitious-work/
3•Tiberium•2m ago•0 comments

Cyclists Are Using a New Fueling Solution That Could Blow Endurance Racing Apart

https://velo.outsideonline.com/road/road-racing/tour-de-france/tour-de-france-riders-trial-secret...
1•haunter•2m ago•1 comments

GPT 5.6 System Card

https://deploymentsafety.openai.com/gpt-5-6
2•rvz•2m ago•0 comments

GeForce Trading Cards Series 1 [video]

https://www.youtube.com/watch?v=96PKNcmazcE
1•theNotFractured•2m ago•0 comments

Programming versus Writing with LLMs. Different Beasts

https://hexaray.com/blog/llm-programming-vs-writing
1•gatinsama•4m ago•0 comments

Gaming is better for you than Scrolling Social Media [video]

https://www.youtube.com/watch?v=VVnSHHxOHIA
1•carabiner•6m ago•0 comments

Show HN: Daily vibe-coding video games, day 87: Jungle Chess

https://gamevibe.us/87-jungle-chess
1•pzxc•6m ago•0 comments

Can banks skirt the Durbin Amendment by owning a debit network?

https://www.americanbanker.com/payments/news/can-banks-skirt-interchange-caps-by-owning-a-debit-n...
1•petethomas•7m ago•0 comments

Gradual Disempowerment: Systemic Existential Risks of Incremental AI Development

https://arxiv.org/abs/2501.16946
1•lioeters•7m ago•0 comments

What could data centres look like in 2055?

https://news.lenovo.com/lenovo-data-center-of-the-future/
2•mooreds•7m ago•0 comments

NEO's Hands – An API to the Physical World

https://www.1x.tech/discover/neos-hands
1•bpierre•8m ago•0 comments

Capable

https://hypercapable.vercel.app
1•ray__•10m ago•0 comments

How I use coding agents for reproducible DS/ML workflows

https://github.com/tkpratardan/lemma
1•tkpratardan•10m ago•0 comments

GhostApproval: A trust-boundary gap in AI coding assistants

https://www.wiz.io/blog/ghostapproval-a-trust-boundary-gap-in-ai-coding-assistants
1•logickkk1•11m ago•0 comments

Say hello to Claude Wrapped

https://www.theverge.com/ai-artificial-intelligence/963105/anthropic-claude-wrapped-reflection-ai...
2•Brajeshwar•13m ago•0 comments

A software defect in Telstra timekeeping servers took down emergency calls

https://www.theregister.com/networks/2026/07/08/telstra-outage-downs-000-calls-trains-payment-sys...
1•logickkk1•13m ago•0 comments

A Roadmap to Finding, Onboarding, and Training a Virtual Assistant

https://tavlinconsulting.gumroad.com/l/mental-load
1•mooreds•13m ago•0 comments

Parents' Phone Addiction Affects Bond with Kids, New Study Finds

https://www.bloomberg.com/news/articles/2026-07-08/parents-phone-addiction-affects-bond-with-kids...
1•bishopsmother•14m ago•0 comments

Multiple Double Arithmetic on Nvidia Tensor Cores

https://arxiv.org/abs/2607.06881
1•Jimmc414•15m ago•0 comments

AI Mistakes Can Cost Doctors Time When Writing to Patients

https://home.dartmouth.edu/news/2026/07/ai-mistakes-can-cost-doctors-time-when-writing-patients
2•cdrnsf•15m ago•0 comments

Formally Verifying AI-Generated GPU Kernels

https://gimletlabs.ai/blog/formally-verifying-ai-generated-kernels
1•nserrino•15m ago•0 comments

Puerto Rico Grid Recovery: Limited Progress Toward Stability

https://www.gao.gov/products/gao-26-107772
1•Jimmc414•15m ago•0 comments

Show HN: Zero2Robot – A free, from-scratch course on how robots learn

https://zero2robot.com/
1•kaushikbokka•15m ago•0 comments