frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Would you believe try-catch-finally works in plain old C?

4•mf_taria•6mo 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•6mo ago
Finally!

An Abstract Arsenal: Future Tokens in Claude Skills

https://jordanmrubin.substack.com/p/an-abstract-arsenal
1•RhysU•24s ago•0 comments

How to Build Spotify Wrapped Using Spotify API on Emergent

https://emergent.sh/tutorial/how-to-build-spotify-wrapped-using-spotify-api
1•janpio•33s ago•0 comments

Tell HN: Kafkaesque Argentina Facts

1•wvlia5•1m ago•0 comments

Tell HN: The difference between AI computing, and old skool computing

1•keepamovin•1m ago•0 comments

Hank Green and the Fantastical Tales of God AIs

https://www.fromjason.xyz/p/notebook/hank-green-and-the-fantastical-tales-of-god-ais/
2•speckx•1m ago•0 comments

Show HN: RainCheck – Weather-aware running trainer I built in 5 days with Claude

https://raincheck.ankushdixit.com
1•pless•5m ago•1 comments

Show HN: Tuistory – Playwright for terminal user interfaces

https://github.com/remorses/tuistory
1•xmorse•5m ago•0 comments

AI/ML Security Resources?

1•nidme25•6m ago•0 comments

Wan 2.6 – AI video generator with native lip-sync and audio-visual alignment

https://komiko.app/image-animation-generator/wan-26
1•reabsorb•7m ago•0 comments

Take control of your data: How Safebox makes self-hosting easier

https://medium.com/@domjanrebeka2000/take-control-of-your-data-how-safebox-makes-self-hosting-eas...
1•drebora•10m ago•0 comments

We tested Europe's luxurious new 'business-class' sleeper bus

https://www.theguardian.com/travel/2025/dec/04/new-luxury-sleeper-bus-service-europe-twiliner-ams...
2•robin_reala•11m ago•0 comments

Department of Defense Law of War Manual [pdf]

https://media.defense.gov/2023/Jul/31/2003271432/-1/-1/0/DOD-LAW-OF-WAR-MANUAL-JUNE-2015-UPDATED-...
1•reaperducer•12m ago•0 comments

Lessons from the Startup World

https://laksanakan.substack.com/p/lessons-from-the-startup-world
2•kengoa•13m ago•1 comments

Failed software projects are strategic failures

https://deadsimpletech.com/blog/failed_software_projects
1•speckx•15m ago•0 comments

Advent of Writing – Inspired by Advent of Code

https://adventofwriting.com/
1•terezatizkova•15m ago•0 comments

The Curious Notoriety of "Performative Reading" – Now Watch Me Read

https://www.newyorker.com/culture/the-lede/performative-reading
2•pseudolus•16m ago•1 comments

The misery of fitting probabilistic LLMs into rigid SQL schemas

https://byo-x.ai/marketplace
1•Yarden_Bruch_El•16m ago•1 comments

Show HN: ProbeOps Horizon Browser – Test your site from different countries

https://probeops.com/
1•kumaras•17m ago•0 comments

The floating hotel that traveled the Pacific and ended up in North Korea

https://english.elpais.com/opinion/2025-11-18/cyclones-mines-and-a-murder-the-cursed-story-of-the...
1•PaulHoule•18m ago•0 comments

A Eulogy for Little's Law

https://www.allaboutlean.com/littles-law/
1•mpcsb•18m ago•0 comments

Going the Way of the Lithographer

https://ondergetekende.nl/going-the-way-of-the-lithographer
1•kvdveer•19m ago•0 comments

Proton Sheets Launches as Encrypted Alternative to Google Sheets

https://www.macrumors.com/2025/12/04/proton-sheets-launches-encrypted-spreadsheet/
1•prng2021•20m ago•0 comments

Transparent Leadership Beats Servant Leadership

https://entropicthoughts.com/transparent-leadership-beats-servant-leadership
1•ibobev•20m ago•0 comments

How to Run Jenkins on Kubernetes

https://spacelift.io/blog/jenkins-kubernetes
1•mariuszm•20m ago•0 comments

Mandelbrot's Evil Twin [video]

https://www.youtube.com/watch?v=Ed1gsyxxwM0
1•EPendragon•24m ago•0 comments

Taking Thiel Seriously on the Antichrist

https://blog.joelonsdale.com/p/taking-thiel-seriously-on-the-antichrist
2•RickJWagner•24m ago•1 comments

Vitamin C shields lung cells from common air-pollution damage

https://newatlas.com/diet-nutrition/vitamin-c-air-pollution-damage/
1•breve•25m ago•0 comments

The Bitcoin Ultras vs. Broken Britain

https://dispatch-media.com/the-bitcoin-ultras-vs-broken-britain/
5•comradino123•25m ago•0 comments

The 'Trump Phone' Is an Unsurprising No Show Months After Promised Launch Date

https://www.techdirt.com/2025/12/04/the-trump-phone-is-an-unsurprising-no-show-months-after-promi...
3•speckx•25m ago•0 comments

The Age-Gated Internet Is Sweeping the US. Activists Are Fighting Back

https://www.wired.com/story/age-verification-is-sweeping-the-us-activists-are-fighting-back/
7•geox•26m ago•0 comments