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!

Plants Get Wearables to Track Their Health

https://now.tufts.edu/2026/07/08/plants-get-wearables-track-their-health
1•giuliomagnifico•10m ago•0 comments

Building Synapse offline-first with Loro

https://dhovart.tngl.sh/synapse-blog/loro-offline-first/
1•denzen•12m ago•0 comments

AI drove Shopify back to clean code

https://www.theregister.com/devops/2026/07/25/how-ai-drove-shopify-back-to-clean-code/5277901
1•sbulaev•12m ago•0 comments

The Future of American Defense – Y Combinator [video]

https://www.youtube.com/shorts/iOeW40N-1VI
1•xyzsparetimexyz•17m ago•0 comments

No Stack Overflow, No Autocomplete: What Coding Felt Like in the 80s

https://comuniq.xyz/post?t=1439
6•01-_-•21m ago•2 comments

Upd.dev: Free Git hosting, including the freedom to vibe code

https://upd.dev
4•Xlab•26m ago•0 comments

Show HN: A platformer video game using visual representations of functions

https://function-platformer.vercel.app/
1•dbagr•26m ago•0 comments

When the AI bubble bursts, silver is Eric Sprott's play

https://stockhead.com.au/resources/when-the-ai-bubble-bursts-silver-is-eric-sprotts-play/
1•parallel_shell•26m ago•0 comments

Show HN: Sip-exporter – passive eBPF-based SIP/RTP monitoring with Prometheus

https://github.com/aibudaevv/sip-exporter
1•aibudaev•30m ago•0 comments

PaperScreen: Give your Mac's display a softer, paper-like feel

https://github.com/Bearbobs/PaperScreen
1•anuj0070•34m ago•0 comments

Systemd Linger

https://etbe.coker.com.au/2026/07/24/systemd-linger/
2•edward•36m ago•0 comments

Genesis Mission Overview

https://github.com/donutloop/donutloop-genesis/blob/main/README.md
1•donutloop•38m ago•0 comments

France and Spain wildfires: more than 300k people displaced

https://www.cnn.com/2026/07/26/world/live-news/france-spain-wildfires-evacuations
4•tosh•38m ago•0 comments

As Burlington reviews data centre plan, councillors reject moratorium

https://www.cbc.ca/news/canada/hamilton/data-centre-moratorium-burlington-9.7282901
1•01-_-•41m ago•0 comments

Against the System: Rise of the Robots (2001)

https://phrack.org/issues/57/10#article
1•negura•42m ago•0 comments

Show HN: Termic – desktop app for running CLI coding agents (Claude Code, Codex)

https://termic.dev/
1•SimionBaws•43m ago•0 comments

Show HN: Cfbench – A lightweight native CLI for Cloudflare speed tests

https://github.com/fcendesu/cfbench
1•fcen•44m ago•0 comments

Corner Chess

https://cs.nyu.edu/~shasha/drecco/games/2016/cornerchess/
1•tosh•45m ago•0 comments

Emacs Writing Machine

https://chainsawriot.com/postmannheim/2026/07/25/writeredeck.html
1•birdculture•45m ago•0 comments

Robots programmed by kids to speak their Indigenous languages

https://www.npr.org/2026/07/26/nx-s1-5825798/robot-speaks-endangered-native-american-languages
2•defrost•46m ago•1 comments

Apertus 1.5, Swiss open-weight, open-source, open training data model

https://apertus-ai.org/articles/2026-07-apertus-1-5/
1•flaburgan•47m ago•1 comments

Interactive 3D Dice Roller with Custom Physics and Shaders

https://ttrpg.dies.kmcprizmquest.dev/
1•Radversalo•58m ago•0 comments

How to be useful as a software architect

https://swizec.com/blog/how-to-be-useful-as-a-software-architect
2•meetpateltech•1h ago•0 comments

Elevated Errors for Opus 5

https://status.claude.com/incidents/zftg3gqkmv18
2•TimCTRL•1h ago•0 comments

I built a jav data API, need honest feedback

1•javinfo•1h ago•0 comments

Show HN: OpenStrap – use a WHOOP 4.0 band without a subscription

https://openstrap.github.io/edge/
1•abdulsaheel123•1h ago•0 comments

Show HN: Tawrida – Global Trade Tools – Export-Document Generators

https://tawrida.xyz/tools
2•m-zakarya•1h ago•0 comments

Anthropic should learn from those cotton-picking socialists

https://asteriskmag.com/issues/15/rust-and-boll
2•maxall4•1h ago•0 comments

Practice your YC interview against Garry Tan's gstack specialists, on a meeting [video]

https://www.youtube.com/watch?v=PMiIytmoEuk
4•anand_pattern•1h ago•1 comments

High Volume Transaction Processing Without Concurrency Control (1997)

https://www.researchgate.net/publication/2310700_High_Volume_Transaction_Processing_Without_Concu...
1•tosh•1h ago•0 comments