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•10mo 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•10mo ago
Finally!

Google battles Chinese open-weights models with Gemma 4

https://www.theregister.com/2026/04/02/googles_gemma_4_open_weights/
1•Brajeshwar•34s ago•0 comments

US Patent Office rejects Nintendo's 'summon character and let it fight' patent

https://www.gamesindustry.biz/us-patent-office-rejects-nintendos-summon-subcharacter-and-let-it-f...
1•ThrowawayR2•1m ago•0 comments

Ask HN: When will PC CPUs be able to run LLMs for real?

1•roschdal•1m ago•0 comments

Package Manager Easter Eggs

https://nesbitt.io/2026/04/03/package-manager-easter-eggs.html
1•speckx•2m ago•0 comments

OpenCode Pollinations Plugin –AI tool layer with freetier routing – cost control

https://github.com/fkom13/opencode-pollinations-plugin
2•ericnolo•3m ago•0 comments

Even Artemis II Astronauts Have Microsoft Outlook Problems

https://www.wired.com/story/artemis-ii-microsoft-outlook-problems/
1•TuringNYC•4m ago•0 comments

Big-Endian Testing with QEMU

https://www.hanshq.net/big-endian-qemu.html
2•jandeboevrie•5m ago•0 comments

The Next Moonshot: Universal Basic Income

https://scottsantens.substack.com/p/the-next-moonshot-universal-basic-income-ubi
1•2noame•7m ago•0 comments

Systemd BirthDate Merge Conflicts of Interest

https://tboteproject.com/systemdfindings/
2•npongratz•7m ago•0 comments

We're excited to announce that AXLE is switching from Lean to Rocq

https://axle.axiommath.ai
1•practal•7m ago•1 comments

Claude 4.6 Jailbroken

https://github.com/Nicholas-Kloster/claude-4.6-jailbreak-vulnerability-disclosure-unredacted
2•NuClide•8m ago•1 comments

Ask HN: What Happened to Canirun.ai?

1•amelius•9m ago•0 comments

Maistro

https://blog.jgc.org/2026/04/maistro.html
1•jgrahamc•9m ago•0 comments

AI-2027 forecasters move their timelines 1.5 years earlier

https://blog.aifutures.org/p/q1-2026-timelines-update
2•alcazar•14m ago•0 comments

Surprise fossil discoveries push back the evolution of complex animals

https://www.newscientist.com/article/2521980-surprise-fossil-discoveries-push-back-the-evolution-...
2•Brajeshwar•17m ago•0 comments

F-15E Wreckage Photos Amid Iranian Claims It Shot Down an American Fighter

https://www.twz.com/air/photos-of-f-15e-wreckage-emerge-amid-iranian-claims-it-shot-down-an-ameri...
3•uticus•17m ago•2 comments

Swiss Inflation Rises to Highest Level in a Year on Jump in Oil Costs

https://www.wsj.com/economy/swiss-inflation-rises-to-highest-level-in-a-year-on-jump-in-oil-costs...
1•bookofjoe•17m ago•1 comments

SubLOGIC Flight Simulator II

https://computeradsfromthepast.substack.com/p/plus-post-sublogic-flight-simulator
1•rbanffy•18m ago•0 comments

ATGeo: Places for AT Protocol

https://atgeo.org/
1•Kye•18m ago•0 comments

Fourwords, a free open human and machine friendly global positioning standard

https://yoshimi.space/four/
1•fish43•18m ago•1 comments

Show HN: Free tool to roast your LinkedIn

https://vibe-audit-lab.base44.app
1•gavrielamati•19m ago•0 comments

Making an Interactive Video Model

https://sahirp.com/writing/tap_conditioned_world_models/
1•er1t0•21m ago•0 comments

Magic: The Gathering Is Turing Complete

https://arxiv.org/abs/1904.09828
1•dan-bailey•22m ago•0 comments

Notebooks: SQL Analysis, Reimagined

https://tabularis.dev/blog/notebooks-sql-analysis-reimagined
1•thunderbong•25m ago•0 comments

The more evidence behind a therapy, the less the public trusts it

https://www.statnews.com/2026/04/03/peptides-statins-research-trust-bpc-157/
2•clumsysmurf•26m ago•0 comments

Ask HN: Where can my story live? Everywhere feels like an empty room

1•arc_light•26m ago•2 comments

Figure out the "rules" for each ring in the Venn diagram by playing object cards

https://boardgamegeek.com/boardgame/408547/things-in-rings
1•uticus•26m ago•0 comments

Second Revision of 6502 Laptop

https://codeberg.org/TechPaula/LT6502b
2•uticus•27m ago•0 comments

Building a Plugin Architecture in Spring Boot Without Inventing a Framework

https://medium.com/all-things-software/plugin-architecture-in-spring-boot-without-a-framework-8b8...
1•dknj•28m ago•0 comments

Nintendo's legal fight with Palworld suffers a reversal as USPTO rejects patent

https://www.rockpapershotgun.com/nintendos-legal-fight-with-palworld-suffers-a-reversal-as-the-us...
1•HardwareLust•28m ago•1 comments