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•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!

How the Library of Congress is using both AI and volunteers to unlock history

https://www.nextgov.com/artificial-intelligence/2026/05/how-library-congress-using-both-ai-and-vo...
1•WaitWaitWha•3m ago•0 comments

The Verification Tree: Turning AI bug report floods into a confidence signal

https://zenodo.org/records/20349904
1•yellow_glovez•6m ago•0 comments

Thousands evacuated in Garden Grove worry toxic chemicals in tank could explode

https://ktla.com/news/orange-county/thousands-evacuated-again-after-toxic-tank-leak-in-garden-grove/
1•Bender•7m ago•1 comments

Systemd 261-Rc1 Released with OS Installer, IMDS Subsystem and New Storagectl

https://www.phoronix.com/news/systemd-261-rc1
1•Bender•10m ago•0 comments

Feds unwittingly leak pilots' pre-crash conversation

https://www.theregister.com/science/2026/05/23/feds-unwittingly-leak-pilots-pre-crash-conversatio...
1•Bender•12m ago•0 comments

Kagi Search API is now in public preview

https://kagi.com/changelog#10622
1•mroche•13m ago•0 comments

A Visual Tour of Classical Electromagnetism (1960)

https://web.mit.edu/8.02t/www/802TEAL3D/visualizations/guidedtour/Tour.htm#_Toc27302365
2•nill0•13m ago•0 comments

My Hermes and Obsidian Setup and Use Cases

https://metedata.substack.com/p/013-my-hermes-and-obsidian-set-up
1•thunderbong•15m ago•0 comments

New rule requires most green-card applicants to apply from outside U.S.

https://www.washingtonpost.com/immigration/2026/05/22/new-rule-requires-most-green-card-applicant...
2•michaelsbradley•18m ago•0 comments

Shocker: Docker implemented in ~300 lines of bash

https://github.com/traceypooh/shocker
1•traceypooh•22m ago•0 comments

Any positive sides of LLM there?

2•artturibyte•23m ago•1 comments

WebFinder for Tailscale

https://zeulewan.github.io/web-finder/index.html
1•zeulewan•26m ago•0 comments

The Web Is About to Get a Second Door

https://medium.com/@vektormemory/the-web-is-about-to-get-a-second-door-5f9fa0fd0d0f
1•vektormemory•30m ago•0 comments

ngn-k tutorial

https://razetime.github.io/ngn-k-tutorial/
1•1vuio0pswjnm7•33m ago•1 comments

The commencement speech that shook the world

https://idiallo.com/blog/the-commencement-speech-that-shook-the-world
1•shaunpud•36m ago•0 comments

Family Abundance | Why Childcare is So Expensive in Silicon Valley

https://proliberal.substack.com/p/family-abundance
1•mtsteiner•39m ago•0 comments

Trying to preserve other peoples code

https://github.com/Essenceia/CRC_generator/tree/main
3•random__duck•43m ago•0 comments

Why Russian Propaganda Works – and How to Stop Falling for It

https://economicsofpower.substack.com/p/why-russian-propaganda-works-and
5•mariuz•50m ago•0 comments

Ask HN: Has anyone solved Amazon's animated GIF captcha programmatically?

3•jrejaud•58m ago•0 comments

Let me AI that for you

https://let-me-ai.com/
2•NordStreamYacht•59m ago•2 comments

Cognitive architecture AI weighted memory, and a falsifiable continuity metric

https://zenodo.org/records/20350249
1•timeless-hayoka•1h ago•0 comments

Authoritative DNS over encrypted transport at OARC 45

https://blog.apnic.net/2026/05/20/authoritative-dns-over-encrypted-transport-at-oarc-45/
1•8organicbits•1h ago•0 comments

I Need Help

https://substack.com/profile/273607136-melissa-mcguckin/note/c-263672437
2•melissamcguckin•1h ago•1 comments

Is AI Profitable Yet?

https://isaiprofitable.com/
118•poyu•1h ago•68 comments

You Only Use 10% of Printf() – Here Are Things They Didn't Teach You [video]

https://www.youtube.com/watch?v=kdnN0kk7MS0
4•bwidlar•1h ago•0 comments

C-style arbitrary precision calculator

https://github.com/lcn2/calc
1•modinfo•1h ago•0 comments

Sci-Hub has created a new AI chatbot. Is it any good?

https://cen.acs.org/policy/publishing/Sci-Hub-created-new-AI/104/web/2026/04
4•scubscub•1h ago•0 comments

You can issue a 15-year SSL certificate today. Why almost nobody does

2•panelica•1h ago•5 comments

What it takes to run an AI coworker on iMessage

https://opencomputer.dev/blog/what-it-takes-to-run-an-ai-coworker-on-imessage/
2•iacguy•1h ago•0 comments

The Bitcoin Governance Event Horizon

https://earthchronicles.substack.com/p/the-bitcoin-governance-event-horizon
2•taguniversalsw•1h ago•0 comments