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!

LED bulbs can damage paintings

https://www.vrt.be/vrtnws/en/2013/01/04/led_bulbs_can_damagepaintings-1-1518123/
2•CGMthrowaway•2m ago•0 comments

Moving Averages

https://gregorygundersen.com/blog/2022/06/04/moving-averages/
2•tosh•2m ago•0 comments

Sorry kid, drones are for war now

https://www.theverge.com/news/906306/fcc-drone-ban-who-will-replace-dji-in-us-antigravity-hoverai...
2•royal__•3m ago•0 comments

Ask HN: Are You Using Finetuning?

2•nate•4m ago•0 comments

ShadowStrike Phantom: Open-Source EDR/XDR Platform

2•Soocile•6m ago•0 comments

Trump is 'calling for a nuclear strike,' former White House comms director says

https://www.irishstar.com/news/politics/breaking-trumps-former-comms-director-36980303
3•ndsipa_pomu•6m ago•2 comments

Show HN: Marimo pair – reactive Python notebooks as environments for agents

https://github.com/marimo-team/marimo-pair
6•manzt•6m ago•0 comments

Making of Words.zip (Infinite Word Search)

https://luke.zip/posts/making-of-words/
2•yathern•6m ago•0 comments

Agentic development aspirations: build, run, observe – without more Markdown

https://devblogs.microsoft.com/aspire/agentic-dev-aspirations/
3•vyrotek•7m ago•0 comments

Say no to a 'camera on your face', says Meta smart glasses rival

https://www.ft.com/content/30390769-2dc1-4573-8d2e-2e8359b2ee39
2•bookofjoe•8m ago•1 comments

Got Bored due to endless scrolling on ChatGPT and Gemini

https://www.trydraft.app/
2•0xNishchit•9m ago•0 comments

What we learned about TEE security from auditing WhatsApp's Private Inference

https://blog.trailofbits.com/2026/04/07/what-we-learned-about-tee-security-from-auditing-whatsapp...
2•wslh•14m ago•0 comments

My Attempt on AI Workflow

https://github.com/jialic/pilot
2•jialic•14m ago•0 comments

This Spillway Failed on Purpose [video]

https://www.youtube.com/watch?v=UF63eFJmbrQ
5•Wilsoniumite•15m ago•0 comments

Show HN: Maintenance OS – AI-powered property maintenance for landlords

https://ifbids.com
2•arishec•15m ago•0 comments

BQN: Primitive Overloading

https://mlochbaum.github.io/BQN/commentary/overload.html
1•tosh•15m ago•0 comments

Open-Source Cannabis Price Index – Methodology, SQL, and Sample Data

https://github.com/TheoV823/cannabis-price-index
1•Tval•15m ago•0 comments

The Fermenter's Guide to Launching a Product

https://vibeagentmaking.com/blog/fermenters-guide-to-launching-a-product/
1•vibeagentmaking•15m ago•0 comments

The Building Block Economy

https://mitchellh.com/writing/building-block-economy
1•cdrnsf•18m ago•0 comments

Show HN: A reasoning hierarchical robotics pipeline you can run in the browser

https://avikde.github.io/vla-pipeline/
2•avikde•18m ago•0 comments

How good is Opus 4.6 at vuln detection?

https://zeropath.com/blog/benchmarking-opus-4-6-vuln-detection
1•NonStopOyster•19m ago•0 comments

The Building Block Economy

https://twitter.com/mitchellh/status/2041566958681014418
1•tosh•19m ago•0 comments

OpenNOW: An open-source desktop client for GeForce NOW

https://github.com/OpenCloudGaming/OpenNOW
1•takoid•20m ago•0 comments

Six (and a half) intuitions for KL divergence

https://www.perfectlynormal.co.uk/blog-kl-divergence
1•jxmorris12•20m ago•0 comments

Security versus Interoperability: Real Tension or False Dichotomy?

https://www.lawfaremedia.org/article/security-versus-interoperability--real-tension-or-false-dich...
2•hn_acker•21m ago•0 comments

Vibe Coding Tools Are a BattleMech

https://alexmeub.com/vibe-coding-tools-are-a-battlemech/
2•meub•21m ago•0 comments

A whole civilization might die tonight

https://www.nbcnews.com/politics/white-house/trump-threat-whole-civilization-will-die-iran-war-de...
20•hedayet•22m ago•9 comments

Ask HN: Why does it look like everyone is abandoning GitHub Copilot?

3•fabev•23m ago•2 comments

Get more done with new vertical tabs and immersive reading mode in Chrome

https://blog.google/products-and-platforms/products/chrome/new-chrome-productivity-features/
2•xnx•23m ago•1 comments

Show HN: Ollama-client-rs, a Rust client for Ollama

https://github.com/anperrone/ollama-client-rs
2•fushji•24m ago•0 comments