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!

The hinge for Apple's new foldable phone was built with AI

https://techcrunch.com/2026/09/09/the-hinge-for-apples-new-foldable-phone-was-built-with-ai/
1•elo2000•1m ago•0 comments

The Association for Human Mathematics

https://www.ahmath.org
1•marvinborner•1m ago•0 comments

Why California Is Reconsidering Its Decision to Shun Nuclear Power

https://www.nytimes.com/2026/09/09/business/energy-environment/california-diablo-canyon-nuclear-e...
1•JumpCrisscross•3m ago•0 comments

Read in Parallel, Reason in Depth for Long-Context LLM Agents

https://academy.dair.ai/papers/parser-read-in-parallel-reason-in-depth-for-long-context-llm-agent...
1•omarsar•4m ago•0 comments

Marvel's Wolverine is a relentlessly bloody game,sincere soap opera at its heart

https://www.cbc.ca/news/entertainment/marvel-wolverine-playstation-review-9.7337132
1•BiraIgnacio•4m ago•0 comments

Manna – Two Views of Humanity's Future

https://web.archive.org/web/20260725174355/https://marshallbrain.com/manna1
1•traverseda•5m ago•0 comments

NASA and IBM open source lunar mapping tools

https://www.theregister.com/ai-and-ml/2026/09/10/nasa-and-ibm-open-source-lunar-mapping-tools/529...
1•ocd•5m ago•0 comments

DeepSeek v4.1 Flash – Artificial Analysis

https://artificialanalysis.ai/models/deepseek-v4-1-flash
1•claudeIsDown•6m ago•0 comments

Can Zoox's 'Toaster on Wheels' Conquer the Self-Driving Car Capital of America?

https://www.nytimes.com/2026/09/09/technology/zoox-waymo-san-francisco.html
1•JumpCrisscross•7m ago•0 comments

Blueferry: iMessage over Bluetooth on Linux

https://blueferry.weirdware.io/
1•erikwb•10m ago•1 comments

The Great Health Plan Replacement

https://www.a16z.news/p/the-great-health-plan-replacement
2•jbredeche•10m ago•0 comments

Can you design a chip? Announcing the protocol emulator ASIC competition

https://blog.janestreet.com/protocol-emulator-asic-competition/
2•dalvrosa•12m ago•0 comments

Why Are Women over 100% of Jobs Gained Under Trump's Second Term?

https://newsletter.mikekonczal.com/p/why-are-women-over-100-of-jobs-gained
1•NomNew•13m ago•0 comments

OpenSSL 4.1 Alpha 1 Released With DTLS 1.3, GREASE and More AVX-512

https://www.phoronix.com/news/OpenSSL-4.1-Alpha-1
1•Bender•13m ago•0 comments

MSVC Build Tools Preview Updates – September 2026

https://devblogs.microsoft.com/cppblog/msvc-build-tools-preview-updates-september-2026/
1•dalvrosa•14m ago•0 comments

Let the CPU Do the Work

https://nodestonanoseconds.substack.com/p/issue-16-let-the-cpu-do-the-work
1•dalvrosa•14m ago•0 comments

DNS Wildcard Detection

https://hkopp.github.io/2024/02/dns-wildcard-detection
1•speckx•16m ago•0 comments

The Irreversibility Budget: Fleet-Level Risk Accounting and Admission Control

https://arxiv.org/abs/2609.00275
1•Jimmc414•18m ago•0 comments

Measuring tactical intelligence targeting and conventional weapons capabilities

https://www.anthropic.com/research/intelligence-targeting-conventional-weapons-capabilities
2•Jimmc414•19m ago•0 comments

Show HN: Natively – comms for agents built by agents

https://natively.io
1•taylorhou•19m ago•0 comments

Show HN: Shine – a terminal Markdown previewer and docs linter

https://github.com/Nithish-Yenaganti/shine
1•nk09•19m ago•1 comments

Farewell, programming

https://staltz.com/farewell-programming
1•staltz•21m ago•1 comments

Serial Microsoft 0-day hunter drops yet another Defender exploit

https://www.theregister.com/security/2026/09/09/serial-microsoft-0-day-hunter-drops-yet-another-d...
4•Bender•21m ago•0 comments

Reasoning models produce fractals when asked to solve hard problems

https://github.com/GilpinLab/loopscape
1•ilnmtlbnm•23m ago•1 comments

AI Evaluation Is Execution

https://jasondoyle.ie/whitepapers/when-ai-evaluations-act-on-the-real-world/
2•jamesblakes•23m ago•0 comments

The Superdark Factory

https://superdark.antikythera.org/
1•phyalow•25m ago•1 comments

Milkman Zero

https://milkmanzero.com/
1•mattromein•26m ago•0 comments

Show HN: LOL Bench – a benchmark for whether LLMs get jokes

https://www.lolbench.lol/
1•yakshithk_•27m ago•2 comments

Nvidia's Openness Promise Leaves Out Hosting, Gating and Licensing

https://topicqueue.substack.com/p/nvidia-is-buying-hugging-face-its
1•DISCURSIVE•27m ago•0 comments

Zasper: JupyterLab Alternative Built for Performance

https://zasper.io/
1•prasunanand•27m ago•0 comments