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!

Against Intellectual Monopoly

http://dklevine.com/general/intellectual/against.htm
1•Cider9986•1m ago•0 comments

DeepClause meets pi: controlling pi with Prolog and vice versa

https://deepclause.substack.com/p/deepclause-meets-pi-controlling-pi
1•schmuhblaster•3m ago•0 comments

The Housing Divergence: Why Texas Builds and California Stalls

https://americanaffairsjournal.org/2026/08/the-housing-divergence-why-texas-builds-and-california...
1•NaOH•5m ago•0 comments

Lean Golf – Code golf but you're proving theorems in Lean

https://lean.golf
1•kurinikku•9m ago•0 comments

Google Is Buying All of Spirit Airlines' Data to Feed Its AI Models

https://arstechnica.com/tech-policy/2026/08/flight-attendants-freaked-out-that-google-to-buy-tons...
1•justinc8687•9m ago•0 comments

Soar: A Package Manager for Linux

https://soar.qaidvoid.dev/
1•sharno•10m ago•0 comments

Receive calls only from saved contacts

1•victormacedo•11m ago•0 comments

Receive calls only from saved contacts

https://play.google.com/apps/internaltest/4700860663178120800
1•victormacedo•15m ago•1 comments

The cost of caring about software

https://alexriosme.substack.com/p/the-cost-of-caring-about-software
2•bruce_one•15m ago•0 comments

My Answer Is No

https://statmodeling.stat.columbia.edu/2026/08/20/my-answer-is-no/
2•Tomte•16m ago•0 comments

Show HN: Crypto and NFT Project Directory – Other Worlders

https://otherworlders.com/nft-directory/
2•wowinter15•18m ago•0 comments

Engineers warn that changes to electrical safety rules create new hazard

https://www.rnz.co.nz/news/business/581956/engineers-warn-that-changes-to-electrical-safety-rules...
2•colinprince•23m ago•0 comments

ElemRV

https://github.com/aesc-silicon/ElemRV
2•kristianpaul•24m ago•0 comments

Framework responds to complaints that BIOS update bricks Ryzen 7040 laptops

https://arstechnica.com/gadgets/2026/08/framework-responds-to-complaints-that-bios-update-bricked...
3•throwaway2037•32m ago•0 comments

Can Increasing the Hit Ratio Hurt Cache Throughput? (2024) [pdf]

https://www.cs.cmu.edu/~harchol/ValueTools24.pdf
1•robmoore121•33m ago•1 comments

Claude Academy

https://academy.claude.com/
1•luispa•33m ago•0 comments

AI companies destroy physical books – let's scan rare books before it's too late

https://annas-archive.gl/blog/physical-destruction.html
3•Cider9986•34m ago•0 comments

From Markup to Markdown: The Evolution of Technical Writing, Typesetting Tools

https://link.springer.com/book/10.1007/979-8-8688-2931-4
1•sohkamyung•38m ago•0 comments

NYC sanitation workers fed up with being pricked by weight-loss drug needles

https://gothamist.com/news/nyc-sanitation-workers-fed-up-with-being-pricked-by-weight-loss-drug-n...
1•paulpauper•39m ago•0 comments

Big Food's Biggest Challenge: People Who Don't Want to Eat Anymore

https://www.wsj.com/business/packaged-food-weight-loss-drugs-0d0cf851
1•paulpauper•39m ago•0 comments

Excalidraw but ATProto

https://lexidraw.app
1•jcbhmr•40m ago•0 comments

The Trump administration Turns a Blind Eye to White-Collar Crime

https://www.bloomberg.com/news/features/2026-03-23/trump-administration-fails-to-punish-white-col...
1•paulpauper•41m ago•0 comments

ATProto Documents-of-Record

https://requested.fyi/
1•jcbhmr•42m ago•0 comments

Beatport Bans AI-Produced Tracks from Platform

https://thequietus.com/news/beatport-bans-ai-produced-tracks-from-platform/
1•cdrnsf•43m ago•0 comments

From balloons to pans: in praise of useful tech

https://www.ft.com/content/49c3c96c-cda1-466a-a0a6-8275e889ecc4
1•petethomas•44m ago•0 comments

Show HN: Fsel –. a Rust TUI launcher, fuzzy picker and clipboard browser

https://github.com/Mjoyufull/fsel
1•Rikona_Kurasaki•44m ago•0 comments

Academic who accused Jason Arday of plagiarism suspended by university

https://www.bbc.com/news/articles/cevmrjd9lj1o
5•donsupreme•52m ago•1 comments

Show HN: XListman – one-binary, self-hosted mailing list manager

https://github.com/barats/xlistman
1•baratsemet•53m ago•0 comments

Show HN: Steppewm stacking Wayland window manager

https://keygen.sbs/steppewm/
1•uncognic•1h ago•0 comments

Trying to launch a Spotify app? In this economy?

https://bf.lol/blog/careless-spotify
1•jamiewright•1h ago•0 comments