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: Flybook – a private, offline flight logbook for Android

https://github.com/Luchowl/flybook
1•ripernverse•26s ago•0 comments

Objective – Tickets, file claims, and proof gates for coding agents

https://github.com/rakeshutekar/Objective
1•rakeshutekar•2m ago•0 comments

Show HN: Martin, A CLI that let's your Agent be your CRM, Built on Jaybase

https://github.com/kyle-visner/martin
1•kvisner•3m ago•0 comments

Show HN: DashClaw

https://www.dashclaw.io
1•ucsandman•4m ago•0 comments

Why China's A.I. Models Could Threaten the Communist Party

https://www.nytimes.com/2026/07/30/world/asia/as-chinas-ai-gets-stronger-it-poses-new-risks-to-be...
1•bookofjoe•5m ago•1 comments

Civilians under siege by Mexican cartel fight back with AK-47s, grenades

https://www.pbs.org/newshour/world/civilians-that-were-under-siege-by-a-mexican-cartel-fight-back...
2•starkparker•6m ago•0 comments

Do It 14,000 Times Slower with This One Trick

https://semi-rad.com/2026/08/do-it-14000-times-slower-with-this-one-trick/
1•frizlab•8m ago•0 comments

Hackers using calls, websites, meticulous tactics targeting US financial firms

https://www.reuters.com/world/hackers-targeted-us-private-equity-other-firms-including-blackstone...
2•Terretta•8m ago•0 comments

Unlimited text chats with GPT-5.6 Luna for everyone

https://twitter.com/openai/status/2085434712429052386
1•wertyk•8m ago•0 comments

Design of 1 TWe Fusion Power Plant

https://medium.com/@alanse/design-of-1-twe-fusion-power-plant-1ed9cea853d8
1•AlanSE•9m ago•0 comments

Astronomers capture highest-resolution image ever of the Sun's surface

https://physicsworld.com/a/astronomers-capture-highest-resolution-image-ever-of-the-suns-surface/
5•layer8•10m ago•0 comments

The Long Tail Gets Longer and Fatter

https://talkshi.com/blog/long-tail-gets-longer-and-fatter
1•greenfish6•12m ago•0 comments

Designing a query system for a Rust compiler

https://bal-e.org/speed/krabby/2026/query-system-design/
2•fanf2•12m ago•0 comments

Anthropic will design its own hardware to power Claude

https://arstechnica.com/ai/2026/08/anthropic-confirms-plans-to-build-an-in-house-silicon-team/
2•wertyk•15m ago•1 comments

Caveman Science Fiction

https://dresdencodak.com/2009/09/22/caveman-science-fiction/
1•erhuve•15m ago•0 comments

The original Quake gets a new DLC 30 years after its release

https://twitter.com/bethesda/status/2085427784210317743
1•aggrrrh•15m ago•1 comments

Some Moral and Technical Consequences of Automation (1960) [pdf]

https://www.cs.umd.edu/users/gasarch/BLOGPAPERS/moral.pdf
1•RGS1811•15m ago•0 comments

Google Gemini seems to expose private Google Docs data

https://www.reddit.com/r/IndieDev/comments/1vfwuf5/a_player_found_out_the_actual_name_of_my_games/
1•mostlysimilar•15m ago•1 comments

AI used to design new viruses

https://www.eurekalert.org/news-releases/1138470
2•DeepLogin•16m ago•0 comments

Should AI labs be treated like the owners of dangerous animals?

https://www.economist.com/science-and-technology/2026/08/06/should-ai-labs-be-treated-like-the-ow...
1•pseudolus•16m ago•1 comments

The End of Google Search—and the Internet—as We Know It

https://www.theringer.com/2026/08/04/tech/google-search-ai-internet
1•CharlesW•17m ago•0 comments

GitHub exposes pub keys at GitHub .com/${username}.keys

https://twitter.com/samhogan/status/2085380716163109265
3•gmays•20m ago•0 comments

ASK HN: Opus 5.0 is more autonomous

1•nunep•20m ago•2 comments

Agent Skills

https://github.com/addyosmani/agent-skills
1•tosh•20m ago•0 comments

Gemma Translator: DIY hardware for offline translation

https://github.com/google-gemma/gemma-translator
1•dmotz•21m ago•0 comments

Win Grep – A visual 3-pane log and text filtering tool for Windows

https://www.sharktime.com/en_WinGrep.html
1•piotrchlebek•21m ago•0 comments

AI Creates Bacteria-Killing Viruses: 'Extreme Caution' Warns Genome Pioneer

https://www.newsweek.com/ai-creates-bacteria-killing-viruses-extreme-caution-warns-genome-pioneer...
2•_____k•22m ago•0 comments

Anomaly

https://anomaly.cnetai.cyou
1•anoqwen•25m ago•0 comments

Show HN:Calibra: Train with Less Data

https://calibra-wulw.vercel.app/
1•omertt27•25m ago•0 comments

The Complexity We Choose

https://frazik.com/blog/2026/the-complexity-we-choose/
1•frazik•25m ago•0 comments