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!

We Get AI Costs Under Control

https://fwdnow.io/en/blog/finops_ai_kosten_optimieren/
1•ayoisaiah•56s ago•0 comments

ClassicQ – A QuakeWorld client for the 30th anniversary of Quake

https://github.com/classicq/classicq
1•VimEscapeArtist•4m ago•0 comments

Scientist creates 'mini‑universe' to measure time without a clock

https://phys.org/news/2026-06-scientist-miniuniverse-clock.html
1•wjSgoWPm5bWAhXB•8m ago•0 comments

AWS rolls the dice for faster, more efficient networking

https://www.theregister.com/networks/2026/06/13/aws-rolls-the-dice-for-faster-more-efficient-netw...
1•TowerTall•9m ago•0 comments

USD by the Numbers

https://taylor.town/money-supply
1•tosh•12m ago•0 comments

Programming the ZX Spectrum's Bitmap Display

https://bumbershootsoft.wordpress.com/2026/06/13/programming-the-zx-spectrums-bitmap-display/
2•ibobev•15m ago•0 comments

How can I schedule work on a thread pool with low latency?

https://devblogs.microsoft.com/oldnewthing/20260612-00/?p=112417
1•ibobev•15m ago•0 comments

Upgrading my Apple II serial setup

https://www.colino.net/wordpress/archives/2026/06/14/upgrading-my-apple-ii-serial-setup/
2•ibobev•16m ago•0 comments

Are we asking the right questions?

1•redipascov•16m ago•0 comments

IISU Frontend final alpha (v0.0.7) released

https://github.com/iisu-network/iiSU/releases/tag/0.0.7.2
1•chromehearts•18m ago•0 comments

When the Event Is the Prompt

https://go-micro.dev/blog/21
1•asim•18m ago•1 comments

Why Mechanical Sympathy? (2011)

https://mechanical-sympathy.blogspot.com/2011/07/why-mechanical-sympathy.html
2•tosh•21m ago•0 comments

Zhynx on X: "Your AI could die tomorrow." / X

https://twitter.com/onlyzhynx/status/2066178507449721277
2•bilsbie•21m ago•0 comments

New SDK Available for AmigaOS 4.1 Final Edition

https://amiga-news.de/en/news/AN-2026-06-00067-EN.html
1•codewiz•22m ago•0 comments

Surpassing Frontier Performance with a Fusion of multiple models

https://openrouter.ai/blog/announcements/fusion-beats-frontier/
3•chr15m•22m ago•0 comments

Data-Parallel Thinking (2024) [pdf]

https://gfxcourses.stanford.edu/cs149/fall24content/media/dataparallel/08_dataparallel_uvO76Qr.pdf
1•tosh•24m ago•0 comments

Prime Minister Sir Keir Starmer has announced a social media ban for under-16s

https://twitter.com/SkyNews/status/2066420074265661746
2•bbayer•24m ago•0 comments

Hetzner Cloud prices are up 120%

https://www.hetzner.com/de/pressroom/standardization-and-price-adjustment-of-our-server-products/
3•mitjam•29m ago•2 comments

Chrome had the highest idle CPU and RAM usage in a 5-browser benchmark

https://gopeek-lovat.vercel.app/blog-chrome-best-browser-2026.html
2•GeorgeWoff25•30m ago•2 comments

"They screwed us": Personality clashes sent Anthropic's models offline

https://www.axios.com/2026/06/15/anthropic-white-house-fable-mythos
1•The_Gray•31m ago•0 comments

New solid-state ACs promise a cool future. Scientists aren't so sure

https://www.technologyreview.com/2026/06/15/1138552/solid-state-acs-promise-cool-future/
2•joozio•35m ago•0 comments

Coding Agent Sandboxes Don't Solve Credential Authorization

https://www.permit.io/blog/coding-agent-sandboxes-credentials
1•gemanor•35m ago•0 comments

Frontier teams are reinventing AI-native development

https://aws.amazon.com/blogs/machine-learning/how-frontier-teams-are-reinventing-ai-native-develo...
1•kator•37m ago•0 comments

Manufacturer bloatware is finally becoming optional – and this app is proof

https://www.makeuseof.com/manufacturer-bloatware-optional-app-proof-never-needed/
1•ripe•37m ago•0 comments

Show HN: 1000 C++ problems, every solution compiled and tested on g++

https://hatemwave.gumroad.com/l/ffenif
1•HatemDabet•38m ago•0 comments

The Web We Know Is Going to Disappear

https://www.minid.net/2026/6/15/the-web-is-going-to-dissapear
4•meerita•39m ago•2 comments

Show HN: Unique Gemstones for Your Strings

https://seedstone.xyz/
2•mdrfi•40m ago•0 comments

Triple Shockwave from Sun Crossing Rocket

https://apod.nasa.gov/apod/ap260615.html
3•xnx•41m ago•1 comments

Show HN: Sweepr – Daily Minesweeper with a guess-free board generator

https://sweepr.online/
2•youreawizerdhar•42m ago•1 comments

Metaspec: The dpANS3 Common Lisp Specification in s-expr format

https://metaspec.dev/
1•dlowe-net•43m ago•1 comments