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!

How to Block Some of the Bots

https://nochan.net/b/Internet-Crap/20260606-How-To-Block-Some-Of-The-Bots/
1•Bender•11s ago•0 comments

Southpay Ledger – self-serve double-entry ledger API for fintech products

https://www.southpay.io/ledger/
1•tommyrsd•33s ago•0 comments

Show HN: Multi Agent World Cup Simulator

https://github.com/tantara/worldcup-sim
1•tantara•34s ago•0 comments

First tablet version of weight-loss jabs to be available in UK in weeks

https://news.sky.com/story/first-tablet-version-of-weight-loss-jabs-to-be-available-in-uk-in-week...
1•austinallegro•56s ago•0 comments

Don't Conflate Intelligence with Value

https://www.christianitytoday.com/2025/07/dont-conflate-intelligence-with-value/
1•thatoneengineer•1m ago•0 comments

Samsung's SSD warranty policy scammed me so I'm taking them to court [video]

https://www.youtube.com/watch?v=WpPIW4aeeag
1•richardboegli•2m ago•0 comments

Ask HN: How do you get into a flow state when using AI to code?

1•kilroy123•2m ago•0 comments

Claude Code's statusLineHook: read rate limits locally without any API calls

https://headroom.walls.sh/hook
1•patwalls•2m ago•0 comments

Scoped Blob Storage

https://blog.val.town/scoped-blob-storage
1•stevekrouse•3m ago•0 comments

Brain Floating-Point

https://en.wikipedia.org/wiki/Bfloat16_floating-point_format
1•tosh•3m ago•0 comments

ECB raises interest rates for first time since 2023

https://www.ft.com/content/95ec93a9-1153-4837-be82-32a87eaabe1d
1•JumpCrisscross•4m ago•0 comments

Show HN: JediMock – Mock API responses in DevTools by wrapping fetch and XHR

https://jedimock.com
1•machopicchu•4m ago•0 comments

AltiVerse

https://github.com/LeoTheAIDev/Altiverse
5•leoTheCoderrr•5m ago•0 comments

Encrypted Spaces – Signal Alums' System for Making Private Collaboration Apps

https://www.wired.com/story/signal-alums-release-encrypted-spaces-a-new-system-for-building-priva...
3•jakemauer•6m ago•0 comments

Adix. Rock-paper-scissors on a 9x9 board, real-time 1v1

https://adix.games
1•hoxydav•7m ago•0 comments

Show HN: Kikubot – Each AI agent is an inbox

https://github.com/mxaiorg/kikubot
1•asp68•7m ago•0 comments

ServiceNow Mass Layoffs [Reddit Thread]

https://old.reddit.com/r/servicenow/comments/1u2c5dq/june_layoffs_its_a_blood_bath/
1•scapecast•8m ago•0 comments

Adaptive Screen Brightness from Content

https://rubarb.bar/
1•ericbigguy•8m ago•0 comments

Thomas Bayes

https://en.wikipedia.org/wiki/Thomas_Bayes
1•davedx•9m ago•0 comments

Opendoor fires all Indian employees, shuts India operations

https://economictimes.indiatimes.com/nri/latest-updates/opendoor-fires-all-indian-employees-shuts...
1•amalfra•10m ago•0 comments

Has the lakehouse battle shifted from table formats to catalogs?

https://www.onehouse.ai/blog/databricks-iceberg-support-has-a-catch-its-called-unity-catalog
1•sivabalan•10m ago•0 comments

Pokemon PWA

https://pokemon.gksander.com/
1•zi_•11m ago•1 comments

Resurrecting a Soaked, corroded, and damaged Commodore SX‑64 (2025)

https://jerrylparker.com/blogs/posts/sx-64.html
1•hggh•12m ago•0 comments

The Platypus Affiliated Society

https://platypus1917.org/
1•jruohonen•12m ago•0 comments

GM is betting on battery cells that don't use lithium

https://electrek.co/2026/06/10/gm-sodium-ion-battery-peak-energy/
2•Brajeshwar•12m ago•0 comments

When is detecting AI-generated text worthwhile?

https://statmodeling.stat.columbia.edu/2026/06/06/when-is-detecting-ai-generated-text-worthwhile/
1•sebg•13m ago•0 comments

Office 2019 for Apple to become useless from July

https://www.theregister.com/applications/2026/06/11/apple-version-of-office-2019-becomes-useless-...
3•rippeltippel•14m ago•1 comments

Kagi Privacy Redirects – Automatic Alternative Front Ends

https://github.com/elia-orsini/kagi-privacy-redirects
1•mysticaltech-•14m ago•0 comments

CLI that scores Terraform change risk and stores your team's infra fixes

https://fixdoc.dev
1•FixDoc•14m ago•0 comments

Show HN: Mimirs – persistent local memory for AI coding agents (MCP)

https://github.com/TheWinci/mimirs
2•winci•16m ago•0 comments