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!

Scientists Uncover Why the World's Most Common Heart Drug Causes Muscle Pain

https://scitechdaily.com/scientists-finally-uncover-why-the-worlds-most-common-heart-drug-causes-...
1•bookofjoe•4m ago•0 comments

Disguised and in Danger: How a Nobel Peace Prize Winner Escaped Venezuela

https://www.wsj.com/world/americas/disguised-and-in-danger-how-a-nobel-peace-prize-winner-escaped...
3•JumpCrisscross•7m ago•0 comments

Show HN: I made a social media bot maker

https://makesocialbots.com
1•quadVision•10m ago•1 comments

The Logic of Cue

https://cuelang.org/docs/concept/the-logic-of-cue/
2•PaulHoule•10m ago•0 comments

The Seven-Minute Visit Cannot Understand a Human Body

https://markatwood.substack.com/p/the-seven-minute-visit-cannot-understand
1•coloneltcb•12m ago•0 comments

AI Is Breakin' the Law

https://buildcognitiveresonance.substack.com/p/ai-is-breakin-the-law
1•mgrayson•13m ago•0 comments

Let AI find you the perfect gf/bf

https://www.dateonzing.com/
1•zachperkel•14m ago•0 comments

Deconstructing the `CAP theorem' for CM and DevOps

https://markburgess.org/blog_cap.html
1•evacchi•18m ago•0 comments

Ask HN: Why do people trust ChatGPT with their money but not transparent algos?

2•mattglossop•19m ago•1 comments

Nanoremote, Cousin of Finaldraft

https://www.elastic.co/security-labs/nanoremote
1•dakrone•20m ago•0 comments

Why We Need to Know LR and Recursive Descent Parsing Techniques

https://tratt.net/laurie/blog/2023/why_we_need_to_know_lr_and_recursive_descent_parsing_technique...
1•shoo•21m ago•0 comments

Ask HN: Why do people trust ChatGPT with their money but not transparent algos?

1•mattglossop•21m ago•1 comments

ClassicPress Version 2.6.0 is Out

https://www.classicpress.net/classicpress-version-2-6-0-is-out/
1•ethanpil•22m ago•0 comments

FixBot: We Built an AI That Knows How to Fix Things

https://www.ifixit.com/News/114700/introducing-fixbot
1•walterbell•24m ago•0 comments

The LinkedQL engineering paper – the Live Queries engine

https://linked-ql.netlify.app/engineering/realtime-engine
1•phrasecode•28m ago•0 comments

Show HN: Glogos: a consensus-free attestation proposal

1•vnlemanhthanh•28m ago•0 comments

Gatekeepers: The Traffic Controllers of the Gnome Village

https://www.happihacking.com/blog/posts/2025/gatekeepers/
1•gpi•29m ago•0 comments

Kiwis travelling to US could soon face new social media screening

https://www.1news.co.nz/2025/12/11/kiwis-travelling-to-us-could-soon-face-new-social-media-screen...
1•keithnz•30m ago•0 comments

Reframing AI Alignment

https://andys.blog/misalignment/
1•andytratt•31m ago•0 comments

Lazard CEO says a Washington strategy now essential to get deals done

https://www.reuters.com/business/finance/lazard-ceo-says-washington-strategy-now-essential-get-de...
1•petethomas•31m ago•0 comments

MacKenzie Scott Announces $7B of Charitable Giving This Year

https://www.nytimes.com/2025/12/09/business/mackenzie-scott-philanthropy.html
1•bookofjoe•33m ago•1 comments

Zoom AI Achieves SotA 48% on Humanity's Last Exam

https://www.zoom.com/en/blog/humanitys-last-exam-zoom-ai-breakthrough/?cms_guid=false
1•elinear•33m ago•0 comments

The ultra-rich are claiming an increasing share of global wealth

https://www.lemonde.fr/en/economy/article/2025/12/10/the-ultra-rich-are-claiming-an-increasing-sh...
3•geox•34m ago•0 comments

RedisPlay

https://github.com/benkenhobbit/redisplay
1•benkenhobbit•36m ago•0 comments

Debugging TLS failures in distroless containers

https://lucabaggi.com/posts/ssl-docker/
1•asaiacai•36m ago•0 comments

Library of Time

https://libraryoftime.xyz/
2•bryanrasmussen•37m ago•0 comments

Axiom-X: A GPU-Accelerated Evolutionary Engine

https://github.com/BMV-AI/AXIOM-X
1•BMV-AI•38m ago•1 comments

Show HN: Tiny web app to draw on a knitted sweater

https://aegte.dev/xmas
1•aegte•39m ago•0 comments

NASA loses contact with Maven – spacecraft orbiting Mars for more than a decade

https://www.theguardian.com/science/2025/dec/10/nasa-loses-contact-maven-spacecraft-mars
8•tzmlab•40m ago•2 comments

Using edge detection to preserve significant features while downsampling

http://yogthos.net/pixel-mosaic.html
2•yogthos•43m ago•1 comments