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!

Show HN: I am running 3 coding agents non-stop over the last 3 days. Here is how

1•sermakarevich•35s ago•0 comments

Concepts to Navigate the Second Cold War [video]

https://www.youtube.com/watch?v=hjtlOd2lbWU
1•simonebrunozzi•44s ago•0 comments

Michigan Lawmakers Want to Ban Chinese-Tagged Cars from Even Visiting the State

https://www.techdirt.com/2026/06/12/michigan-lawmakers-want-to-ban-chinese-tagged-vehicles-from-e...
1•hn_acker•4m ago•1 comments

Show HN: Slopsome – a VRAM fit calculator and tok/s database for local LLMs

https://slopsome.com
1•NexAIGuy•4m ago•0 comments

Soccer and Economic Growth

https://www.ourlongwalk.com/p/a-football-is-not-enough-bcf
1•paulpauper•5m ago•0 comments

Can Shakespeare be the best writer?

https://ramblingafter.substack.com/p/can-shakespeare-really-be-the-best
1•paulpauper•5m ago•0 comments

What Is Good Writing?

https://jonasmoman.substack.com/p/what-is-good-writing
1•paulpauper•6m ago•0 comments

Parasitic Engineering's Equinox 100 Minicomputer

https://computeradsfromthepast.substack.com/p/parasitic-engineerings-equinox-100
1•rbanffy•9m ago•0 comments

American Government Takes Down Claude Fable

https://thezvi.substack.com/p/american-government-takes-down-claude
2•7777777phil•10m ago•0 comments

Pi Building Pi, OpenClaw's Minimalist Coding Agent – Mario Zechner, Creator [video]

https://www.youtube.com/watch?v=DPgJjRdQWrg
1•contingencies•12m ago•0 comments

Texas is America Inc's new centre of gravity

https://www.economist.com/business/2026/05/31/texas-is-america-incs-new-centre-of-gravity
2•alephnerd•15m ago•0 comments

Why does paper fold so well?

https://www.bbc.co.uk/programmes/w3ct8k70
3•zeristor•17m ago•1 comments

The YouTube App Is an Authenticator and That's a Problem

https://lowendbox.com/blog/the-youtube-app-is-an-authenticator-and-thats-a-problem/
3•boring_twenties•18m ago•0 comments

!No Pasaran!

https://generalstab.org/wp-content/uploads/no_pasaran-01.jpg
2•jruohonen•20m ago•0 comments

Show HN: Local RAG memory system that AI can write directly to

https://github.com/ptobey/local-memory-mcp
3•ptobey•25m ago•1 comments

Show HN: An exact verifier for one brick in a decades-old quantum math problem

https://zenodo.org/records/20682233
2•nerlwein•28m ago•0 comments

The heck I just stepped into – OpenCode Plans' privacy marketing vs. reality

https://opencode.ai/legal/privacy-policy
3•Frenchwho•30m ago•0 comments

Ramputene DIY

https://www.confuzine.com/2024/09/22/ramputene-diy-donostia-basque-country/
2•jruohonen•31m ago•0 comments

Record Every Meeting

https://rfd.shared.oxide.computer/rfd/0537
3•encodedrose•35m ago•0 comments

AgentGraph – Graph-Based Context Management

https://iancutzu.substack.com/p/agentgraph-graph-based-context-management
2•iancutzul•38m ago•0 comments

Inside Interoception: The hidden sense of how you feel inside

https://www.technologyreview.com/2026/06/12/1138833/inside-interoception-brain-body/
1•bookofjoe•39m ago•1 comments

Kennedy Center board's new bylaws strip funding if center removes Trump's name

https://bsky.app/profile/lizdye.bsky.social/post/3mo4ky6pbgk26
1•hn_acker•42m ago•2 comments

Achieving Pipeline Parallelism on $4 Microcontrollers: Splitting a 42M model

https://github.com/harmansingh4163-ai/ESP-32-s3-Story-maker-LLM
2•Harman-Singh123•44m ago•0 comments

Show HN: Galdor – a Go LLM agent framework with built-in tracing and replay

https://github.com/YasserCR/galdor
3•yassros16•44m ago•0 comments

QuantmLayer – kernel sandbox for coding agents that learns its policy

https://github.com/quantmlayer/quantmlayer
2•mquant•45m ago•0 comments

The Hype Hangover Kicks In

https://www.mikehyland.com/blog/the-developer-mood-june-2026
4•mjhyl•47m ago•1 comments

Show HN: Flashback Booth, A tactile retro photo booth in the browser

https://flashbackbooth.me
1•rairishabh2810•47m ago•0 comments

Metamodernism: The cultural philosophy of the digital age

https://nesslabs.com/metamodernism
1•andsoitis•48m ago•4 comments

How Israel's AI surveillance breakthrough in Iran is reshaping global intel

https://www.calcalistech.com/ctechnews/article/h17rby8bge
5•myth_drannon•49m ago•0 comments

Ask HN: How do you handle billing when event volume exceeds Stripe's limits?

2•badgerino•50m ago•1 comments