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!

3D Walkable ASCII City in One HTML File [video]

https://www.youtube.com/watch?v=3YtygAx_C6A
1•COMMENT___•1m ago•0 comments

Retailers Want AI to Solve Online Shopping's Biggest Problem

https://www.bloomberg.com/news/articles/2026-08-21/zalando-zara-use-ai-virtual-try-ons-to-tackle-...
1•thm•5m ago•0 comments

A Hairy Situation

https://lostgirls.home.blog/2019/09/11/a-hairy-situation-the-peculiar-case-of-antonietta-gonzalez/
1•jruohonen•7m ago•0 comments

Budgeting resources in a Managed Postgres service

https://clickhouse.com/blog/protect-postgres-from-supporting-processes
1•saisrirampur•12m ago•0 comments

English ↔ Claudish Translator

https://programasweights.com/claudish
2•leumon•13m ago•0 comments

In-browser offline PDF tools

https://www.ihatepdf.cv/
2•porridgeraisin•19m ago•1 comments

Her Brain Was Broken. It Was Fixed with Sound–Not a Scalpel

https://www.wired.com/story/brain-focused-ultrasound/
3•nabbed•20m ago•0 comments

Linus Torvalds Endures a Debug Session from Hell, "Enormously Helped" by AI

https://www.phoronix.com/news/Linus-Torvalds-Debug-AI
3•meerita•21m ago•0 comments

Living at the Hinge of History

https://henryaj.substack.com/p/living-at-the-hinge-of-history
1•eatitraw•22m ago•0 comments

Crt.sh Seems Down

https://crt.sh/
3•gregsadetsky•23m ago•0 comments

HN: NIF – codec de imagem neural com benchmarks reproduzíveis vs. JPEG/WebP/AVIF

https://github.com/gabrielphilipus/NIF-Neural-Image-Format
1•gabrielphilipus•23m ago•0 comments

Show HN: ePub reader that lets your coding agent read along

https://github.com/baturyilmaz/readingisfun
1•arbayi•23m ago•0 comments

What broke when I stopped trusting my own validator

https://invoicehub.dev/blog/validation-harness-findings
1•dev_awesome•23m ago•0 comments

Manim: Framework for Creating Mathematical Animations

https://github.com/ManimCommunity/manim
2•pykello•24m ago•0 comments

MIT requires every student to know how to swim. But why?

https://www.wgbh.org/news/education-news/2026-02-16/mit-requires-every-student-to-know-how-to-swi...
1•gaws•24m ago•2 comments

Aussie visits Retrofest UK 2026 [video]

https://www.youtube.com/watch?v=c2mM-pLecK4
1•skibz•24m ago•0 comments

NetBSD and My Life (2005)

https://mail-index.netbsd.org/netbsd-advocacy/2005/09/10/0000.html
3•gnyeki•24m ago•0 comments

Ask HN: What's your daily driver keyboard?

2•robbiet480•25m ago•7 comments

If you're not using AI to attack your own systems, your adversaries will

https://www.theregister.com/security/2026/08/22/if-youre-not-using-ai-to-attack-your-own-systems-...
1•Alephinitesimal•25m ago•0 comments

hdiutil is deprecated in macOS 27 Golden Gate

https://lapcatsoftware.com/articles/2026/8/7.html
30•zdw•27m ago•2 comments

Nvidia Customers Notified About AI-Related Price Hikes Above 15%

https://www.bloomberg.com/news/articles/2026-08-22/nvidia-customers-notified-about-ai-related-pri...
1•spenvo•29m ago•0 comments

Watts My Bill: Monitor Data Center Effects on Electricity Prices

https://wattsmybill.org/
1•gaws•30m ago•0 comments

China joins Europe in scrapping Windows for Linux

https://www.zdnet.com/article/china-drops-windows-for-linux/
4•wslh•30m ago•0 comments

Half of Nigeria's population lives in cities

https://ourworldindata.org/data-insights/half-of-nigerias-population-lives-in-cities
1•karakoram•31m ago•0 comments

Victor Niederhoffer, Trader Who Went Boom and Bust (Twice), Dies at 82

https://www.nytimes.com/2026/08/21/business/victor-niederhoffer-dead.html
1•paulpauper•32m ago•0 comments

Rich Countries Spend 60 Times as Much on Healthcare per Person as Poor Countries

https://ourworldindata.org/data-insights/rich-countries-spend-60-times-as-much-on-healthcare-per-...
1•karakoram•32m ago•0 comments

Niall Ferguson: Elon's Favorite Sci-Fi Prophet Was Wrong

https://www.thefp.com/p/niall-ferguson-future-ai-tech-economics-space
1•paulpauper•32m ago•0 comments

Welcome to Model Constitution

https://modelconstitution.com/p/welcome-to-model-constitution
1•paulpauper•32m ago•0 comments

Did NYC pass SF Bay Area in tech? A perspective from job postings data

https://corvi.careers/blog/did-nyc-pass-sf-bay-area-tech-openings/
1•sp1982•32m ago•0 comments

Electric Cars Are Taking Off Quickly in Latin America

https://ourworldindata.org/data-insights/electric-cars-are-taking-off-quickly-in-latin-america
3•karakoram•33m ago•0 comments