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!

Thomas Wolf thread on the AISI incident

https://twitter.com/Thom_Wolf/status/2085084718320464230
1•cyanbane•9s ago•0 comments

Show HN: Agent-hop – hit a limit, keep the same chat going in another agent

https://github.com/hetpatel-11/agent-hop
1•HetPatel106•3m ago•0 comments

Differential heuristics: learning about a way to optimize the A* heuristic

https://www.redblobgames.com/blog/2026-08-08-differential-heuristics/
1•matt_d•5m ago•0 comments

MCP Server Budgeting Tool

https://www.designshippers.com/work/context-budget.html
1•krm01•5m ago•0 comments

AI and War Is Being Oversold

https://phillipspobrien.substack.com/p/ai-and-war-is-being-oversold-right
2•JumpCrisscross•6m ago•0 comments

New: Create AI marketing games in your brand style

https://refybe.com/en
1•refybe•7m ago•0 comments

Console.log recursively processes format specifiers introduced by %s

https://issues.chromium.org/issues/543972096?pli=1
1•dfranke•8m ago•1 comments

A beginner's guide to improving your digital security

https://hashman.ca/security-101/
2•luu•11m ago•0 comments

Probabilistic Estimation for Localizing a Radioactive Source in an Urban Setting

https://repository.lib.ncsu.edu/items/451b001d-e63a-4968-866d-3fb3a599b1e7
1•toomuchtodo•12m ago•1 comments

LLM-oriented programming – statistically revealed components

1•hyperpallium2•13m ago•0 comments

Sketching with Math and Quasi Physics (2022)

https://kyndinfo.notion.site/Sketching-with-Math-and-Quasi-Physics-837e231967134bb5a8307bb9f41c8ea1
1•sargstuff•13m ago•0 comments

macOS vulnerability: authenticate Screen Sharing without valid credentials

https://twitter.com/calif_io/status/2086022794840793454
1•haxiomic•15m ago•0 comments

Show HN: parakeet-tdt-0.6b-v2 in the browser via WebGPU

https://parakeet.narcotic.sh/
1•hamza_q_•15m ago•0 comments

SNET offline internet Cuba [pdf]

https://michaelannethomas.com/wp-content/uploads/2019/09/snet_cscw_2019_repair_r_r-5.pdf
2•rfmoz•18m ago•1 comments

Oblivious Compute – distributed state progression without history

https://github.com/ObliviousCompute
1•InfiniteMass•20m ago•0 comments

By placing an ad on this site, you can also help Ukrainians earn money

https://serpclix.com/
2•Kizert•22m ago•0 comments

Checked my dashboard mid-launch and saw a referral I've never seen before

https://www.rainydaygc.com
2•mdstrobe•25m ago•0 comments

New Zealand's first free internet service provider

https://zfree.co.nz/
3•ctippett•25m ago•0 comments

How to Setup OpenCode with a Local LM Studio Server

https://shaneperreault.com/blog/opencode-local-lm-studio-server
1•shaneprrlt•26m ago•0 comments

Dirge – The Batteries-Included Rust Coding Agent

https://dirge-code.github.io/
2•tosh•27m ago•0 comments

Neutrinos From Deep Inside Earth Provide a New Picture of the Mantle

https://www.quantamagazine.org/neutrinos-from-deep-inside-earth-provide-a-new-picture-of-the-mant...
1•Brajeshwar•28m ago•0 comments

Grok can escape its sandbox with persistent read/write access

1•holdswarm•31m ago•0 comments

Show HN: Happy 808 Day

https://raygum.com/instruments/roland-tr-808-drum-machine
1•stuartmemo•32m ago•0 comments

One Casualty of Taiwan's War Drills: A Slower Internet

https://www.wsj.com/world/asia/taiwan-war-drills-internet-speed-e4813870
2•impish9208•35m ago•1 comments

Most Expensive Historical Items Ever Sold at Auction

https://thehistoricalinsights.page/2026/03/most-expensive-historical-items.html
2•historical1234•36m ago•0 comments

A Gentle Deep Dive into Quantization

https://cuecloud.substack.com/p/the-fantastic-promise-of-quantization
2•krav-sales•36m ago•0 comments

AI Adoption Is a Myth

https://twitter.com/vasuman/status/2085806422072418632
3•gmays•36m ago•0 comments

8 Out of 10 Banks in Belgium Hate This One Weird EID RCE

https://amibeingpwned.com/blog/8-in-10-banks-in-belgium
1•Doohickey-d•36m ago•0 comments

Spec Driven Development with markdown-den

https://www.markdown-den.com/blog/ai-assisted-dev
2•dguridi•40m ago•0 comments

Does Silicon Valley Dream of Philip K Dick?

https://www.ft.com/content/bdcf7729-3b03-49ec-82fb-b5773fdaa990
3•bookofjoe•40m ago•1 comments