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!

Pixel 11, Pixel 11 Pro and Pixel 11 Pro XL

https://blog.google/products-and-platforms/devices/pixel/google-pixel-11-pro-xl/
1•tosh•55s ago•0 comments

Clojure's Deadly Sin

https://clojure-goes-fast.com/blog/clojures-deadly-sin/
2•xylon•1m ago•0 comments

Apple in Talks to Pay Publishers for News Content to Power Siri AI

https://www.macrumors.com/2026/08/12/apple-siri-ai-publisher-talks/
2•mgh2•5m ago•0 comments

Silurian Hypothesis

https://en.wikipedia.org/wiki/Silurian_hypothesis
2•evo_9•6m ago•0 comments

The Appwrite CLI is now written in Go

https://appwrite.io/blog/post/rewriting-the-appwrite-cli-in-go
3•chiragagg5k•10m ago•0 comments

Watermarks-remover: Strip multi-vendor AI provenance marks

https://github.com/guillaumemeyer/watermarks-remover
2•thunderbong•11m ago•0 comments

Astronomers discover a new kind of cosmic object – a black hole 'star'

https://www.theguardian.com/science/2026/aug/12/astronomy-discovery-new-cosmic-object-black-hole-...
1•sandebert•12m ago•0 comments

Show HN: Fab Friends a crowdfunding site for Rwandan college students

https://www.joinfabfriends.org/donate
1•muramira•13m ago•1 comments

New Study Shows Hiking with an Engineer Has No Effect on Daily Enjoyment

https://thetrek.co/pacific-crest-trail/new-study-shows-hiking-with-an-engineer-has-no-effect-on-d...
1•theanonymousone•14m ago•0 comments

Made by Google 2026

https://blog.google/products-and-platforms/devices/pixel/made-by-google-2026/
1•saikatsg•19m ago•0 comments

Did poop enable the evolution of complex animals?

https://arstechnica.com/science/2026/08/feces-fueled-a-flurry-of-evolution-during-the-cambrian-st...
2•jnord•23m ago•0 comments

DeepMind Models

https://deepmind.google/models/
1•nimsarajay•23m ago•0 comments

How do I self-host a good-looking AI generated website

1•pcblues•24m ago•0 comments

How much memory is needed to render a TrueType font to bitmap

https://nothings.org/gamedev/font_rendering_malloc.txt
1•anitil•26m ago•1 comments

The Strongest El Niño Ever Forecast and the Hunger It Will Leave Behind

https://www.4hunger.org/p/scorched-harvest-the-strongest-el
4•fredski42•27m ago•0 comments

Show HN: LinkShip – Turn any file into a trackable, shareable link

https://linkship.net
1•sunpy•29m ago•0 comments

Show HN: Find the jobs that fit your resume in 60 seconds

https://www.seekerscore.com
3•not_wowinter14•35m ago•0 comments

ChatGPT Desktop (Codex Desktop) for Linux

https://openai.com/codex/
5•allanrbo•39m ago•0 comments

Size and Lifespan

https://xkcd.com/3283/
4•dgudkov•40m ago•0 comments

Vibe Coding Interview

http://funcall.blogspot.com/2026/08/vibe-coding-interview.html
5•zombot•41m ago•2 comments

Ratings Firm Accused of Grade Inflation Vouched for $40B of Insurer Debt

https://www.wsj.com/finance/ratings-firm-accused-of-grade-inflation-vouched-for-40-billion-of-ins...
5•petethomas•49m ago•0 comments

Patterns and problems in emerging multiagent systems

https://www.anthropic.com/research/multiagent-systems
4•ledoge•52m ago•0 comments

BrowserMesh – isolated Playwright sessions for MCP clients

https://github.com/scrollDynasty/multi-agent-browser-mcp
4•scroll11•55m ago•0 comments

Celld: Self-hosted, distributed Durable Objects

https://celld.dev/
5•godisdad•55m ago•0 comments

CFTC Advisory on Self-Certification of Incentive Programs for Prediction Markets

https://www.cftc.gov/PressRoom/PressReleases/9282-26
5•petethomas•56m ago•0 comments

Living with Depression: The Part I Never Say Out Loud

https://medium.com/freedomofthought/living-with-depression-the-part-i-never-say-out-loud-3e9c218b...
6•raynchad•57m ago•0 comments

What Kind of Particularism?

https://medium.com/freedomofthought/what-kind-of-particularism-489c113a8a9c
5•raynchad•58m ago•0 comments

Lossless codec for AI agent messages – 36% fewer tokens, overhead counted

https://github.com/reh8n/a2acompress
5•reh8n•59m ago•0 comments

Who invented the great numerical algorithms? [pdf]

https://math.pku.edu.cn/teachers/litj/notes/numer_anal/inventorstalk.pdf
4•nill0•59m ago•0 comments

My First Post

5•VimalRB•1h ago•0 comments