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!

Setting up your spare Mac for Claude Code to control, a step-by-step guide

https://ykdojo.github.io/claude-controls-mac/
3•ykev•4m ago•0 comments

Show HN: FreelyMemo – A floating notepad on every tab

https://chromewebstore.google.com/detail/freelymemo-a-floating-not/heffeleefkjalhablljfohlcejiegpgb
1•kythanh•4m ago•0 comments

Soofi S: Our first model for industrial AI in Europe

https://www.soofi.info/
1•doener•7m ago•0 comments

Fake food delivery site for the dopamine

https://old.reddit.com/r/BingeEatingDisorder/comments/1uzr3ui/fake_food_delivery_site_for_the_dop...
2•guerrilla•7m ago•0 comments

How early SunOS did diskless workstations before NFS

https://utcc.utoronto.ca/~cks/space/blog/solaris/SunOSDisklessWithoutNFS
1•cwbuilds•9m ago•0 comments

The AI with a Thousand Voices

https://medium.com/@ic-eight/the-ai-with-a-thousand-voices-374680948342
1•ic_eight•10m ago•0 comments

Frozen 2 should be Rated R

https://interconnected.org/home/2026/07/17/frozen
2•peteforde•11m ago•0 comments

Ask HN: Claude Creating Artifacts?

1•ftchd•12m ago•0 comments

No link between acetaminophen use during pregnancy and adverse birth outcomes

https://sph.unc.edu/sph-news/no-link-between-acetaminophen-use-during-pregnancy-and-adverse-birth...
4•geox•13m ago•0 comments

Our Approach to Bioresilience: Isomorphic Labs and Google DeepMind

https://deepmind.google/blog/our-approach-to-bioresilience/
3•bookofjoe•13m ago•0 comments

Heat can trigger or intensify mental illnesses

https://www.meduniwien.ac.at/web/en/about-us/news/2023/news-in-august-2023/heat-can-trigger-or-in...
2•tosh•13m ago•0 comments

Google fixing Android lock screen bug that lets Gemini send SMS without a PIN

https://www.theregister.com/security/2026/07/17/google-fixing-android-lock-screen-bug-that-lets-g...
1•Bender•16m ago•0 comments

AI spam filters are getting suckered by old-school text salting

https://www.theregister.com/security/2026/07/17/ai-spam-filters-are-getting-suckered-by-old-schoo...
1•Bender•17m ago•0 comments

Britain's Kerr breaks 27-year mile world record in London

https://www.bbc.com/sport/athletics/articles/cx2jl1wge2po
1•nadermx•17m ago•0 comments

Hegseth wants a "High-T" military; doctors call it a clinical minefield

https://arstechnica.com/health/2026/07/hegseth-wants-a-high-t-military-doctors-call-it-a-clinical...
3•Bender•18m ago•0 comments

Show HN: Randomly Generated ASCII Trees

https://gist.githubusercontent.com/Soham-Saha/f6e8d25327ee86b915c53ac73e4eb7b3/raw/aeba99ece14c90...
1•omegacombinator•18m ago•0 comments

Building Dynamic Rule Engines in Elixir with Excanon

https://medium.com/@juan.lovera4/stop-hardcoding-business-rules-building-dynamic-rule-engines-in-...
1•allanmacgregor•20m ago•0 comments

RS-Key: Security Key. Fido/OpenPGP Firmware for RP2350

https://github.com/TheMaxMur/RS-Key
2•envbinsus•23m ago•0 comments

Surrender as a non-stupid life strategy

https://sashachapin.substack.com/p/should-you-be-in-charge-of-your-life
2•eatitraw•26m ago•1 comments

Denote Notes on the iPhone

https://en.andros.dev/blog/9abcdcfe/your-denote-notes-on-the-iphone/
1•andros•26m ago•0 comments

Gleam Is Now on Tangled

https://tangled.org/gleam.run/gleam
28•nerdypepper•32m ago•11 comments

The Fermi Paradox, Percolation, and Inbreeding

https://reactormag.com/the-fermi-paradox-percolation-and-inbreeding/
4•bryanrasmussen•37m ago•0 comments

Trump Media pitched $100k monthly fee for fast feed of president's posts

https://www.ft.com/content/e466df85-fa3b-4a7f-a4a1-ae04d66db99f
3•theahura•39m ago•0 comments

If You Build It, They Will Come

https://www.benlandautaylor.com/p/if-you-build-it-they-will-come
2•barry-cotter•39m ago•0 comments

Show HN: Sovereign-Metal – Zero-Dependency Python/Metal GPGPU Advection

https://github.com/getcognition-online/sovereign-metal
1•Jamie_Nixx_CUI•39m ago•0 comments

US data center protests go national as backlash grows

https://www.reuters.com/business/retail-consumer/us-data-center-protests-go-national-backlash-gro...
3•vrganj•40m ago•0 comments

Elixir-lang.org has a new design

https://elixir-lang.org/
17•bbg2401•44m ago•5 comments

Multidim inplace permutations in constant(*) space

https://cschen.cc/posts/inplace-permdims/
2•FacelessJim•44m ago•0 comments

How voice-to-voice models work: from sound wave to living conversation

https://asaptf.github.io/v2v-models-article-en/
2•asaptf•46m ago•0 comments

Official Jagex Launcher for Linux

https://secure.runescape.com/m=news/jagex-launcher-for-linux-beta-out-now?oldschool=1
1•Venn1•46m ago•1 comments