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!

Take-Two Battles Unofficial GTA 6 PC Port Work

https://www.ign.com/articles/take-two-appears-to-be-trying-to-scrub-gta-6-pc-ports-from-the-inter...
1•Skyfall106•17s ago•0 comments

The Singularity Clock

https://www.singularityclock.ai/
1•iamanatom•40s ago•0 comments

Google will show solo Android developers' phone numbers and addresses

https://support.google.com/googleplay/android-developer/answer/17594752?hl=en
2•nreece•2m ago•0 comments

Riemann home reaches 41 independent validators

https://riemann-at-home.github.io/riemann-at-home/#@titojankowski
1•tito•4m ago•0 comments

Citroën Hydraulic System

https://www.citroenet.org.uk/miscellaneous/hydraulics/hydraulics-1.html
1•o4c•4m ago•0 comments

World records six straight days above 2C warming threshold

https://www.guardian.co.tt/news/world-records-six-straight-days-above-2c-warming-threshold-6.2.27...
1•asphodele•8m ago•0 comments

Necrometer – Zero-back end Rust/WASM audit for GitHub repo decay

https://necrometer.dev
1•jeryd•21m ago•0 comments

Show HN: Sqrin – A better screen share for Mac

https://sqrin.app
1•stichoza•21m ago•0 comments

Melbourne’s safe injecting room is one of the world’s busiest.

https://theconversation.com/melbournes-safe-injecting-room-is-one-of-the-worlds-busiest-the-liber...
1•defrost•22m ago•0 comments

Trying /Swarm in Google Antigravity

https://flaviocopes.com/antigravity-swarm/
1•gmays•23m ago•0 comments

Jakarta EE 11 No Longer Has an Umbrella Jar

https://foojay.io/today/jakarta-ee-11-umbrella-jar/
1•lprimak•24m ago•0 comments

No-Boilerplate, Warning-Free and Reproducible Builds on Maven 4

https://foojay.io/today/no-boilerplate-maven-4-builds/
1•lprimak•24m ago•0 comments

Upgraded Immich to Postgres 19 and VectorChord 1.5.0, works great

https://www.reddit.com/r/immich/comments/1y4ulvq/upgraded_immich_to_postgres_19_and_vectorchord/
2•lprimak•25m ago•0 comments

Gleam Case Exhaustiveness, as a Fan

https://oyster.pckt.blog/gleam-case-exhaustiveness-as-a-fan-fd4whyp
1•TheWiggles•27m ago•0 comments

Linus Torvalds: "Tell Your AI Companion to Get Its Act Together"

https://www.phoronix.com/news/Linus-Torvalds-EXT4-AI-Big
10•droidjj•28m ago•0 comments

New AI research suggests AI bubble bursting and to expect major market collapse

https://www.london.edu/think/ai-bubble-about-to-burst
1•nreece•30m ago•0 comments

Ask HN: What do you think of AI powered universal mind control?

1•analog8374•41m ago•3 comments

Sleep (Album)

https://en.wikipedia.org/wiki/Sleep_(album)
2•Ariarule•45m ago•0 comments

My context engineering changed for Gemini 4 Neon

https://www.philschmid.de/gemini-4-neon-context-engineering
3•gmays•52m ago•1 comments

Ayn Rand Scores the Alexander-Pinker Brawl

https://hollisrobbinsanecdotal.substack.com/p/ayn-rand-scores-the-alexander-pinker
2•HR01•55m ago•0 comments

Have they solved p vs. NP?

https://havetheysolvedpvsnp.com/?lang=en
3•akliemke•56m ago•0 comments

Every Layer Removes a Reading

https://aguilar-pelaez.co.uk/every-layer-removes-a-reading.html
1•pombo•1h ago•0 comments

Safe Studio: Visual Basic for the Web in 2027. (Happy Thanksgiving Everyone)

https://github.com/SafeScript/studio
2•EGreg•1h ago•1 comments

Show HN: EarthCiv – Civ-style maps of real countries, on one world map

https://earthciv.org
1•manpreetsgarha•1h ago•0 comments

Show HN: Brand logos as SVG/PNG with CDN links and light/dark variants

https://radianui.com/resources/brand-logos
1•Ashmit72•1h ago•0 comments

An Agentic Driven Operating System Source Code

https://github.com/vahmoh/Veda
1•saeedmh10k•1h ago•0 comments

Against the International Oligarchy

https://parismanifesto.world/en/
5•HotGarbage•1h ago•0 comments

Show HN: GravityFinder – Explore Exoplanets and More

https://gravityfinder.com
3•Trommsdorff•1h ago•0 comments

Measuring and mitigating agent sandbox escape with Siren

https://safeguards.anthropic.com/2026/siren/
2•gmays•1h ago•0 comments

Omarchy 4.6 Released with More Local AI Integration, Its Own File Manager

https://www.phoronix.com/news/Omarchy-4.6-Released
6•mikece•1h ago•0 comments