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!

Show HN: Boostyourreach.io – improve LinkedIn reach by changing your identity

https://boostyourreach.io/
1•hermit85•1m ago•0 comments

Nursing Excluded as 'Professional' Degree by Department of Education

https://nurse.org/news/nursing-excluded-as-professional-degree-dept-of-ed/
1•ourmandave•1m ago•0 comments

Moss in space: spores survive nine-month ride on outside of ISS

https://www.theguardian.com/science/2025/nov/20/moss-spores-survive-outside-international-space-s...
1•pseudolus•3m ago•0 comments

The 'toughest crop': Can tech help cardamom farmers?

https://www.bbc.com/news/articles/cn0g2xxnrj3o
1•1659447091•7m ago•0 comments

YASA (Yet Another Static Analyzer)

https://github.com/antgroup/YASA-Engine
1•adgnaf•7m ago•1 comments

Ultrasonic device dramatically speeds harvesting of water from the air

https://news.mit.edu/2025/ultrasonic-device-dramatically-speeds-harvesting-water-air-1118
1•gmays•9m ago•0 comments

Kyber vs. RSA-2048

https://blog.ellipticc.com/posts/kyber-vs-rsa-2048/
1•iliasabs•18m ago•1 comments

Alphabet's Intrinsic Forms Joint Venture with Foxconn

https://www.intrinsic.ai/blog/posts/foxconn-and-intrinsic-launch-joint-venture-to-build-the-ai-fa...
1•kscottz•21m ago•0 comments

Why top firms paradoxically fire good workers

https://www.rochester.edu/newscenter/employee-turnover-why-top-firms-churn-good-workers-681832/
2•hhs•26m ago•0 comments

Keys Inc. Proposes U.S. National Locksmith Licensing

https://www.locksmithledger.com/home/article/55302123/keys-inc-proposes-national-locksmith-licensing
1•walterbell•28m ago•0 comments

Report URI – Script and Style Hasher for CSP

https://report-uri.com/home/hash
1•Brysonbw•29m ago•0 comments

Lecture on the Wigner-Dyson nearest-neighbour distribution

https://github.com/msuzen/leymosun/blob/main/lectures/wigner_dyson_spacing.ipynb
1•northlondoner•30m ago•1 comments

Homeschooling Hits Record Numbers

https://reason.com/2025/11/19/homeschooling-hits-record-numbers/
6•bilsbie•30m ago•0 comments

"I'm Building an Algorithm That Doesn't Rot Your Brain" Jack Conte

https://www.youtube.com/watch?v=EO14wPQw89c
2•kalinkochnev•32m ago•0 comments

Ancient ‘animal GPS’ identified in magnetic fossils

https://www.cam.ac.uk/research/news/ancient-animal-gps-identified-in-magnetic-fossils
2•hhs•35m ago•0 comments

Samuel Johnson's Online Dictionary

https://johnsonsdictionaryonline.com/index.php
1•gaws•36m ago•0 comments

Suno is the walking dead, the new Napster 2.0

https://jperla.com/blog/suno-walking-dead
2•ljlolel•38m ago•0 comments

Use Reading Mode in Chrome

https://support.google.com/chrome/answer/14218344?hl=en
1•kamaraju•39m ago•0 comments

RI judge intervenes after ICE mistakenly detains Superior Court intern

https://www.wpri.com/news/local-news/providence/ri-judge-intervenes-after-ice-mistakenly-detains-...
10•vm•39m ago•2 comments

U.S. Banks Shelve $20B Bailout Plan for Argentina

https://www.wsj.com/finance/u-s-banks-shelve-20-billion-bailout-plan-for-argentina-add58f7e
2•petethomas•41m ago•0 comments

Quantum computing needs its own industrial revolution

https://www.ft.com/content/de55d987-13bb-4821-9e72-d7a066e48ccd
1•hhs•43m ago•0 comments

Welcome to Anything Goes America

https://www.economist.com/leaders/2025/11/20/welcome-to-anything-goes-america
2•petethomas•45m ago•0 comments

CDC Changes Webpage to Say Vaccines May Cause Autism, Revising Prior Language

https://www.msn.com/en-us/health/diseases-and-conditions/cdc-changes-webpage-to-say-vaccines-may-...
8•pseudolus•50m ago•1 comments

Trump signs order to remove tariffs from Brazilian beef, coffee

https://www.reuters.com/world/us/trump-signs-order-remove-tariffs-some-brazilian-agricultural-imp...
8•petethomas•53m ago•0 comments

Ask HN: Best solution to build AI agents?

1•khalilsautchuk•56m ago•1 comments

How ASML Got EUV Lithography

https://www.factorysettings.org/p/how-asml-got-euv-lithography
2•mhb•58m ago•0 comments

Moss survived outside of the International Space Station for 9 months

https://www.livescience.com/space/scientists-put-moss-on-the-outside-of-the-international-space-s...
7•geox•58m ago•1 comments

Prozac 'no better than placebo' for treating children with depression, experts

https://www.theguardian.com/society/2025/nov/20/prozac-no-better-than-placebo-for-treating-childr...
20•pseudolus•59m ago•11 comments

Esbuild XSS Bug That Survived 5B Downloads and Bypassed HTML Sanitization

https://www.depthfirst.com/post/esbuilds-xss-bug-that-survived-5-billion-downloads-and-bypassed-h...
2•ponderwonder•1h ago•0 comments

U.S. employee well-being hit new low in 2024, survey reveals

https://phys.org/news/2025-11-employee-survey-reveals.html
6•pseudolus•1h ago•1 comments