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!

Does K3 become a competitor to the Big Three?

https://platform.kimi.ai/docs/guide/kimi-k3-quickstart
1•qiuwu•2m ago•0 comments

Big Tech AI Spree Revives Accounting Devices That Toppled Enron

https://news.bloombergtax.com/financial-accounting/big-tech-ai-spree-revives-accounting-devices-t...
2•1vuio0pswjnm7•2m ago•0 comments

The US Army Is Burning Through Its AI Tokens

https://www.wired.com/story/the-army-is-burning-through-its-ai-tokens/
2•helsinkiandrew•4m ago•0 comments

For Whom the Bull Tolls: Hemingway and Bullfighting

https://www.historytoday.com/archive/natural-histories/whom-bull-tolls-hemingway-and-bullfighting
1•Thevet•9m ago•0 comments

LeelaRookOdds's French Defense

https://lichess.org/@/codysmile11/blog/leelarookoddss-french-defense/IrHe3XFH
1•fzliu•10m ago•0 comments

Bengaluru triple murder: Why cops wanted to make AI chatbot an accomplice

https://www.indiatoday.in/india/karnataka/story/bengaluru-triple-murder-rk-puram-kenneth-ai-chatb...
1•mandliya•10m ago•0 comments

Show HN: A deterministic governance harness for agentic development loops

https://github.com/owulveryck/poc-agentic-platform
1•owulveryck•12m ago•0 comments

Legal Obligations vs. Social Contracts

https://pointieststick.com/2026/07/21/legal-obligations-vs-social-contracts/
1•jandeboevrie•15m ago•0 comments

Why did I, a libertarian anarchist, support the Örebro Party with a donation?

https://dberntsson.info/2026/07/20/orebropartiet/
1•romanzipp•17m ago•0 comments

Show HN: ReadKinetic – a free, local-first speed reader for your own books

https://www.readkinetic.com/app/
4•SamuraiLion•18m ago•1 comments

Prefactoring: Clear the Way for Your New Feature

https://testing.googleblog.com/2026/07/prefactoring-clear-way-for-your-new.html
1•jandeboevrie•18m ago•0 comments

Software glitch allowed nearly 400 non-US citizens to vote in New Jersey

https://gothamist.com/news/software-glitch-allowed-nearly-400-non-us-citizens-to-vote-in-nj-gov-s...
3•geox•23m ago•0 comments

The Conspiracy Against High Temperature Sampling

https://gist.github.com/Hellisotherpeople/71ba712f9f899adcb08b94bce20d5397
2•theanonymousone•23m ago•0 comments

Israel is building a miles-long barrier in Gaza, entrenching its division

https://apnews.com/article/israel-gaza-yellow-line-barrier-ceasefire-941ed80f6d4398ce88916f6b0875...
2•hebelehubele•26m ago•1 comments

Show HN: A new kind of FPS aim trainer

https://openaim.pramit.gg/
2•pmazumder•28m ago•0 comments

AI Cheating happening more and is hard to verify

https://www.theregister.com/ai-and-ml/2026/07/21/ais-cheatin-heart-will-make-you-weep/5275784
1•Gaishan•29m ago•0 comments

The secret Trump administration battle to fight Chinese AI

https://www.axios.com/2026/07/20/ai-us-china-open-source-kimi
1•hentrep•29m ago•0 comments

Ukraine's drone strikes put pressure on Russian economy

https://www.politico.eu/article/ukraine-drone-strikes-russian-economy-pressure/
1•Gaishan•30m ago•0 comments

Librrd Playground

https://systemf.epfl.ch/etc/librrd/
1•E-Reverance•36m ago•0 comments

DeepSeek Search Down

https://status.deepseek.com/incidents/6741259174287
1•Linserin•36m ago•0 comments

Show HN: JavaScript framework where code order matches the UI sequence

https://github.com/livetrails/targetjs
1•ahmadwasfi•37m ago•0 comments

Macaron-V1

https://macaron.im/mindlab/research/introducing-macaron-v1
1•ilreb•42m ago•0 comments

NVIDIA Synthetic Video Detector

https://build.nvidia.com/nvidia/synthetic-video-detector
2•jonbaer•43m ago•0 comments

China's 'AI for All' Offensive Defies US Containment Playbook

https://www.bloomberg.com/news/articles/2026-07-22/china-s-ai-for-all-offensive-defies-us-contain...
2•thm•45m ago•0 comments

CinematicBench, a reproducible benchmark for scroll craft

https://github.com/MustBeSimo/cinematic-scroll-skill
2•mustbesimo•48m ago•0 comments

'Everything I know about evil I learned in that small town': John Carpenter

https://www.theguardian.com/lifeandstyle/2026/jul/20/everything-i-know-about-evil-i-learned-in-th...
2•Michelangelo11•48m ago•0 comments

Samsung in talks to invest in Mistral at €20B valuation

https://www.ft.com/content/67a5d255-c6e9-4269-b8a0-3105db69c1ec
6•petethomas•48m ago•0 comments

Original Apollo 11 Guidance Computer source code for command and lunar modules

https://github.com/chrislgarry/Apollo-11
14•noteness•49m ago•3 comments

App vs. Website: Why Apps Feel Smoother Than Sites

https://lazerg.uz/en/blog/ilova-va-sayt-tezlik-farqi
2•lazerg•50m ago•0 comments

Human-Centered Change and Innovation

https://bradenkelley.com/2026/06/mechanistic-interpretability-ai-trust/
2•mahirsaid•51m ago•0 comments