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

Git Rev News Edition 129 (November 30th, 2025)

https://git.github.io/rev_news/2025/11/30/edition-129/
1•chmaynard•1m ago•0 comments

Predict Race and Ethnicity Based on the Sequence of Characters in a Name

https://github.com/appeler/ethnicolr
1•neehao•3m ago•0 comments

Short Form vs. Long Lecture Videos

1•bibin765•4m ago•0 comments

Show HN: Free AI photo editor that preserves face identity

https://bananaeditor.art/
1•Caron77•7m ago•0 comments

Big Paychecks Can't Woo Enough Sailors for America's Commercial Fleet

https://www.wsj.com/business/logistics/big-paychecks-cant-woo-enough-sailors-for-americas-commerc...
2•andrewrn•10m ago•2 comments

Attoboy: New beginner-friendly C++ library for making small Windows exes

https://coeurnix.github.io/attoboy/
3•coeurnix•17m ago•0 comments

Japan's low-crime image cracking as car thefts, home intrusions rise

https://english.kyodonews.net/articles/-/65815
2•rawgabbit•21m ago•1 comments

India Says Mandatory Phone App Can Be Deleted After Backlash

https://www.bloomberg.com/news/articles/2025-12-03/india-says-mandatory-phone-app-can-be-deleted-...
1•SanjayMehta•21m ago•0 comments

A comprehensive criticism of C++ [video]

https://www.youtube.com/watch?v=7fGB-hjc2Gc
1•odie5533•21m ago•0 comments

What If Linus Torvalds Gets Hit by a Bus? (2000)

https://www.crummy.com/writing/segfault.org/Bus.html
2•LorenDB•24m ago•1 comments

Building an AI memorial portrait generator: architecture and lessons

https://medium.com/@fjzll.nju/building-an-ai-memorial-portrait-generator-architecture-trade-offs-...
1•fjzll•24m ago•1 comments

LandSpace could become China's first company to land a reusable rocket

https://arstechnica.com/space/2025/12/this-chinese-company-could-become-the-countrys-first-to-lan...
1•perihelions•24m ago•0 comments

Font

1•Toony•27m ago•0 comments

AI may be scoring your college essay. Welcome to the new era of admissions

https://apnews.com/article/ai-chatgpt-college-admissions-essays-87802788683ca4831bf1390078147a6f
3•rawgabbit•28m ago•0 comments

RISC OS – A New Hope

https://www.riscosopen.org/news/articles/2025/11/20/episode-iv-a-new-hope
2•andsoitis•30m ago•0 comments

Qoder Releases JetBrains Plugin

https://qoder.com/download
1•heyu0328•36m ago•1 comments

Running Linux on a RiscPC, why is it so hard?

https://www.thejpster.org.uk/blog/blog-2025-12-02/
1•todsacerdoti•38m ago•1 comments

Show HN: AmAttractive – AI Attractiveness Test and Beauty PK Arena

https://amattractive.com
1•jokera•39m ago•0 comments

Amazon Nova Playground

https://nova.amazon.com/act?tab=playground
1•brokensegue•41m ago•0 comments

This Month in Ladybird – November 2025

https://ladybird.org/newsletter/2025-11-30/
1•exploraz•41m ago•0 comments

Show HN: Hoodl.net – Find and Vet Top X Influencers in Seconds with PageRank

https://hoodl.net
3•Frannky•41m ago•0 comments

From DeFi Summer to X402 Summer: MCP, X402, and the Fragmented Web

https://medium.com/@a6b8/from-defi-summer-to-x402-summer-mcp-x402-and-the-fragmented-web-94faa1c5...
1•Andreas_3d•42m ago•0 comments

Oregon's hospital price cap cut costs without comprising care

https://sph.brown.edu/news/2025-12-02/hospital-price-caps
2•geox•43m ago•0 comments

Ask HN: About Karma

2•jsxyzb•43m ago•1 comments

The Hammer Hack

https://randsinrepose.com/archives/the-hammer-hack/
1•CharlesW•44m ago•0 comments

Ask HN: Why is everyone in tech so performative/two faced

5•bunnybomb2•48m ago•10 comments

Show HN: CodeProt – Filter static analysis false positives in CI

https://codeprot.com
1•allenz_cheung•1h ago•0 comments

(Norway) New Record: Almost 100% EV Registrations in November

https://www.electrive.com/2025/12/01/norway-sets-new-record-with-near-100-electric-vehicle-regist...
2•JojoFatsani•1h ago•0 comments

Roko's Dancing Basilisk

https://boston.conman.org/2025/12/02.1
2•todsacerdoti•1h ago•0 comments

Human art in a post-AI world should be strange

https://www.owlposting.com/p/art-in-a-post-ai-world-should-be
4•crescit_eundo•1h ago•0 comments