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!

Warp for Desktop and Cloudflare for Teams

https://blog.cloudflare.com/warp-for-desktop/
1•bagana•1m ago•0 comments

Ads and tracking infiltrated TVs. Now they're coming for monitors

https://arstechnica.com/gadgets/2026/08/ads-and-tracking-infiltrated-tvs-now-theyre-coming-for-mo...
1•theanonymousone•3m ago•0 comments

Anthropic Gets Ready to Vie for Defense Contracts Again

https://prospect.org/2026/08/27/anthropic-reenlists-for-war-defense-department-ai/
1•h2si•3m ago•0 comments

Single file apps with Gleam and Bun

https://alistair.sh/gleam-bun-apps
1•crowdhailer•4m ago•0 comments

Why do OpenAI's GPT-2 weights beat mine? Part four: digging into dropout

https://www.gilesthomas.com/2026/08/why-do-openai-gpt2-weights-beat-mine-4-ift-dropout
1•gpjt•4m ago•0 comments

I said Route 53 was a database. Colin took it personally

https://shitposting.ai/r53fs/
1•cperciva•4m ago•0 comments

A philosopher's guide to thinking for yourself in an age built to think for you

https://bigthink.com/series/full-interview/philosophy-of-stupidity/
1•thunderbong•5m ago•0 comments

Ask HN: Was Quad9 ECS down for anyone else today at UTC 1PM?

1•opengrass•6m ago•0 comments

NASA Astronaut Jonny Kim Departs Agency to Continue Military Service

https://www.nasa.gov/news-release/nasa-astronaut-jonny-kim-departs-agency-to-continue-military-se...
1•MarcoDewey•6m ago•0 comments

Liquid Glass and the Mac's low priority

https://ilyabirman.net/meanwhile/all/liquid-glass-on-mac/
1•speckx•7m ago•0 comments

We bought the same "verified" lead list three times

https://verdictonly.com/
1•jonasun147852•8m ago•0 comments

OpenAI's Reboot

https://time.com/article/2026/08/26/openai-sam-altman-interview/
1•giuliomagnifico•9m ago•0 comments

FSF job opportunity: Systems Integration Administrator

https://www.fsf.org/news/2026-job-opportunity-fsf-systems-integration-administrator
1•infognu•9m ago•0 comments

Welcome to Needle Nation

https://www.nytimes.com/2026/08/17/well/needle-injections-peptides-glp1-drugs-botox.html
1•bookofjoe•10m ago•1 comments

The flat-pack skyscraper: how wood can shape the cities of the future

https://www.theguardian.com/news/ng-interactive/2026/aug/27/the-flat-pack-skyscraper-how-wood-can...
1•pseudolus•11m ago•0 comments

Rob Pike's 5 Rules of Programming

https://web.archive.org/web/20260314210910/https://users.ece.utexas.edu/~adnan/pike.html
1•r3trohack3r•11m ago•0 comments

PS1 type rendering in Godot 4

https://calinp.eu/blog/psx-type-rendering/
1•Funes-•12m ago•0 comments

London: Drawn Like a Painting

https://sheets.works/data-viz/london
1•lordbubbles•14m ago•0 comments

How to Deploy Your Model

https://htdym.sailresearch.com/
1•bobstax•16m ago•0 comments

Anthropic Announces Hardware Interface Standard (Model Hardware Standard, MHS)

https://twitter.com/AnthropicAI/status/2093038426140651791
4•zof3•18m ago•0 comments

History of the Atlantic Cable and Undersea Communications

https://atlantic-cable.com/
1•CaesarA•18m ago•0 comments

Poll: Are You Aphantastic

1•andrewla•19m ago•4 comments

A Training Cluster for This Economy

https://derekrodriguez.dev/a-training-cluster-for-this-economy/
1•dwrodri•20m ago•0 comments

Don't use a free iPhone that just turns up at your home

https://appleinsider.com/articles/26/08/27/psa-dont-use-a-free-iphone-that-just-turns-up-at-your-...
3•speckx•22m ago•0 comments

Show HN: Scrub Every Single Mention of Agents from the Browser

1•aihatterer•23m ago•0 comments

CIA Has a Gen Z Problem – Young Spies Are Just Not 'Feeling It'

https://spyscape.com/article/the-cia-has-a-gen-z-problem-young-spies-are-just-not-feeling-it
3•jumpocelot•25m ago•0 comments

Trump signs order to rename Lake Ontario as Lake America

https://www.reuters.com/world/us/trump-signs-order-rename-lake-ontario-lake-america-2026-08-27/
8•cdrnsf•25m ago•7 comments

ClickHouse winning this observability "war"?

https://clickhouse.com/blog/is-clickhouse-winning-the-observability-wars
1•gingenio•27m ago•0 comments

Nvidia Starts Pac as AI Chip Maker Builds DC Influence Force

https://news.bgov.com/bloomberg-government-news/nvidia-starts-a-pac-as-ai-chip-maker-buids-influe...
3•rarisma•28m ago•0 comments

Danrh: A blog won't give you an edge anymore

https://danrh.net/posts/2026-05-18-a-blog-is-not-enough/
2•speckx•28m ago•0 comments