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!

"Dagon" by H. P. Lovecraft

https://www.hplovecraft.com/writings/texts/fiction/d.aspx
1•thunderbong•1m ago•0 comments

Sony brings free TV to the PS5

https://www.theverge.com/games/987000/sony-brings-free-tv-to-the-ps5
1•ramn7•2m ago•0 comments

Hotline Telegram Support and Sales Hub (hotline.tg)

1•hotline•5m ago•0 comments

The RSS Feed Got a Robot Assistant

https://www.pleasehustleresponsibly.com/p/the-rss-feed-got-a-robot-assistant
1•angelahollowell•8m ago•0 comments

Wendell Berry has died, age 92

https://www.nytimes.com/2026/08/31/us/wendell-berry-dead.html
1•Curiositry•9m ago•0 comments

Kale: A Transformation-Safe Spreadsheet System

https://arxiv.org/abs/2608.26345
1•zdw•17m ago•0 comments

Weird Little Guys of FOSS

https://drewdevault.com/weird-guys/
1•airhangerf15•17m ago•0 comments

Dan Driscoll's Parting Shot

https://www.theatlantic.com/national-security/2026/08/driscoll-hegseth-military-resignation/688479/
1•Jtsummers•18m ago•0 comments

Florida revokes permits for license plate readers on state highways

https://www.wusf.org/transportation/2026-08-31/fdot-revokes-permits-for-flock-cameras-installed-o...
3•ilamont•21m ago•0 comments

Backsliding: On the Paradox of Willpower

https://harpers.org/archive/2026/07/backsliding-meghan-ogieblyn-willpower/
1•Anon84•23m ago•0 comments

Miles v0.1: Production-level Post-training

https://www.lmsys.org/blog/2026-08-18-miles-v0-1/
1•gmays•23m ago•0 comments

Claude Red Bar (visual and audible notifier of task completion)

https://github.com/gregsramblings/claude-red-bar
1•gw5815•24m ago•2 comments

DoltLite: A SQLite fork with Git-style version control, built with 2k agent PRs

https://www.dolthub.com/blog/2026-08-31-doltlite-beta/
4•lbw1215•33m ago•0 comments

Icelandic voters reject a resumption of EU membership negotiations

https://www.euronews.com/my-europe/2026/08/31/icelands-no-vote-deals-a-blow-to-brussels-security-...
2•delichon•36m ago•2 comments

Show HN: I rebuilt tank game with new style

https://www.battle-tank.com/
1•dutay05•38m ago•0 comments

Show HN: Chaosword – A Crossword?

https://chaosword.com
1•ghosts_•42m ago•0 comments

Breaking down Amazon's mega dropdown (2013)

https://bjk5.com/post/44698559168/breaking-down-amazons-mega-dropdown
1•TheAceOfHearts•52m ago•0 comments

Kubernetes v1.37: Pod Certificates and Cluster Trust Bundles

https://kubernetes.io/blog/2026/08/28/kubernetes-v1-37-pod-certificates-and-cluster-trust-bundles/
1•ahmedtd•56m ago•0 comments

Retatrutide – people risk the gray market for the newest weight-loss drug

https://www.theguardian.com/science/2026/aug/31/retatrutide-weight-loss-drug-gray-market
2•andsoitis•58m ago•0 comments

The Big Leak (1987)

https://www.americanheritage.com/big-leak
1•jhide•58m ago•0 comments

2004 RuneScape fit a multiplayer RPG into 56k dial-up

https://jkm.dev/posts/how-2004-runescape-fit-a-multiplayer-rpg-into-56k-dialup/
6•fagnerbrack•58m ago•2 comments

AWS Activate Credits

1•m4sk1994•58m ago•0 comments

Deadpan Photography: Enjoying the Pretence

https://photoni.st/index.php/2026/07/12/deadpan-photography-enjoying-the-pretence/
1•NaOH•59m ago•0 comments

Papercut SMTP – The Simple Desktop Email Server

https://github.com/ChangemakerStudios/Papercut-SMTP
1•l8rlump•1h ago•0 comments

Why 1M context windows won't solve agent memory (and a protocol that does)

https://github.com/zackemannen81/docs-first_continuity-protocol
2•mrwhite81•1h ago•0 comments

Release Release v26.8.1.2041-LTS · ClickHouse/ClickHouse

https://github.com/ClickHouse/ClickHouse/releases/tag/v26.8.1.2041-lts
1•kyisaiah47•1h ago•0 comments

The extraordinary rise of Miami's economy

https://www.economist.com/finance-and-economics/2026/08/31/the-extraordinary-rise-of-miamis-economy
1•andsoitis•1h ago•0 comments

OpenAI to Cut Off AI Models for SpaceX-Owned Cursor

https://www.reuters.com/business/media-telecom/openai-end-partnership-with-spacexs-cursor-2026-08...
4•m463•1h ago•1 comments

Young Builder Society Microgrant

https://www.youngbuildersociety.com
1•audreyfei•1h ago•0 comments

Linus Torvalds' uEmacs – the editor he has used since the 1980s

https://github.com/torvalds/uemacs
24•oumua_don17•1h ago•0 comments