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!

SpacemiT Announces the V100 Server-Class RISC-V Processor

https://www.phoronix.com/news/SpacemiT-V100
1•fork-bomber•2m ago•0 comments

Shader Effects for Gnome Shell

https://extensions.gnome.org/extension/11353/shader-effects/
1•timeoperator•3m ago•1 comments

Efficacy of Ibuprofen versus Acetaminophen for Acute Fever in Febrile Children

https://link.springer.com/article/10.1007/s40272-026-00773-2
3•XzetaU8•3m ago•0 comments

Show HN: Maali – Privacy-first personal finance app with a local AI analyst

https://maali.app/
2•zukhan•4m ago•0 comments

The Net Present Value of the California Billionaire Tax Act

https://www.nber.org/papers/w35899
1•speckx•5m ago•0 comments

A Pill to Improve My Sleep by 20%

https://desmolysium.substack.com/p/a-pill-to-improve-my-sleep-by-20
1•paulpauper•5m ago•0 comments

MaixStation Beats DGX Spark

https://sipeed.com/maixstation/
1•ahlCVA•6m ago•0 comments

SpaceMIT V100 Released – With Xiangshan Kunminghu

https://spacemit.com/products/keystone/v100
1•luyu_wu•6m ago•0 comments

LaTeX package for Pascal-like triangles

https://www.johndcook.com/blog/2026/10/14/latex-package-for-pascal-like-triangles/
1•ibobev•6m ago•0 comments

Monoliths and Lagrange Points

https://www.johndcook.com/blog/2026/10/16/monoliths-and-lagrange-points/
1•ibobev•6m ago•0 comments

Show HN: SimpleWM – i3 keybindings on top of native macOS Spaces

https://github.com/pedr0v/SimpleWM
1•villaspedro•7m ago•0 comments

Show HN: Dovepass – can I legally fly a drone along this exact path in SF?

https://dovepass.com
2•nimitmehra•7m ago•0 comments

OVHcloud CLI compromised: hacker planted secret-stealing binary in 5 releases

https://agihunt.info/en/p/1a155330a675b4c1b09f82bb3ec
2•guyinblackshirt•8m ago•0 comments

USB-C Magnetic Connect Hardware and Compatibility

https://www.lttlabs.com/articles/2026/10/16/usb-c-magnetic-connect
1•LorenDB•8m ago•0 comments

Why does the compiler sometimes use ud2 and sometimes int 3?

https://devblogs.microsoft.com/oldnewthing/20261006-00/?p=112757/
1•ibobev•8m ago•0 comments

UC Berkeley math community left at crossroads

https://www.dailycal.org/news/campus/academics/uc-berkeley-math-community-left-at-crossroads-in-w...
1•improgrammer007•8m ago•0 comments

Comments Removed

https://www.s-config.com/comments-removed/
1•speckx•9m ago•0 comments

The End of Rationing

https://sanketsaurav.com/writing/end-of-rationing
1•sanketsaurav•10m ago•0 comments

The Rise of In-Office Remote Work

https://www.theatlantic.com/ideas/2026/10/in-office-remote-work/688993/
1•cdrnsf•10m ago•0 comments

Musk Vows to Give Each U.S. Child a SpaceX Share

https://www.wsj.com/business/musk-vows-to-give-each-u-s-child-a-spacex-share-273bc71c
2•fortran77•11m ago•2 comments

What's taking DNS-PERSIST-01 so long?

https://www.certkit.io/blog/whats-taking-dns-persist-01-so-long
1•YakBizzarro•11m ago•0 comments

Show HN: Canary (Mapping Human Intuition)

https://www.hello-canary.com
1•jpnichols01•12m ago•1 comments

Can you cheat on someone with a video game?

https://www.bbc.com/news/articles/ckn9wrr75dyeo
1•dabinat•14m ago•0 comments

AI, Math, the Document-Drop. Non-Tech Thoughts

https://blog.computationalcomplexity.org/2026/10/ai-math-document-drop-non-tech-thoughts.html
1•speckx•14m ago•0 comments

Show HN: A typing test for articles you want to read on the internet

https://type.vinayakshukla.com/
1•vinayak-shukla•16m ago•0 comments

Show HN: Personal AI on your Mac – SuperDuck.AI (beta testers wanted)

1•dirk94018•16m ago•0 comments

Git-style diffing for DuckLake tables

https://www.cocoalemana.com/integrations/ducklake/
1•ryanmelehan•17m ago•0 comments

Pcodec is 15% smaller and 2x faster than ClickHouse's DoubleDelta in compression

https://tomalard.github.io/posts/pcodec-is-awesome/
1•theanonymousone•18m ago•0 comments

The Measurement Problem

https://en.wikipedia.org/wiki/Measurement_problem
2•nose•21m ago•0 comments

The Last Human Decision

https://twitter.com/antonio_vespoli/status/2112258956987085268
3•antves•22m ago•0 comments