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!

Accelerating scientific discovery with ChatGPT for Academic Researchers

https://openai.com/index/chatgpt-for-academic-researchers/
1•mks_shuffle•1m ago•0 comments

The Skills AI Stopped Teaching Junior Developers

https://menelaos.vergis.net/posts/The-Skills-AI-Stopped-Teaching-Junior-Developers
1•melenaos•1m ago•0 comments

Adversarial Code Obfuscation for Defending Against LLM-Based Analysis

https://arxiv.org/abs/2606.11755
1•dirkc•2m ago•0 comments

Building an EU-resident family finance app on GCP (schema-per-tenant, KMS)

https://ivmanto.com/blog/eu-resident-family-finance-on-gcp
1•nikolaytonev•2m ago•0 comments

Refusal as Instruction: Equipping Patrons to Resist AI, Data Brokers, Big Tech

https://ital.corejournals.org/index.php/ital/article/view/17653/11960
1•wallflower•5m ago•0 comments

Meta shares tumble as Mark Zuckerberg tries to sell his vision for AI 'agents

https://www.ft.com/content/06d941ed-8136-46a4-a2ec-44bea1b35c3b
3•1vuio0pswjnm7•7m ago•1 comments

Show HN: XQL, a query language for screening market data

https://xcreener.com/xql-playground
1•guzzul•8m ago•0 comments

ABSL – 100% Integer-Only Neural Network Training in Rust

https://github.com/Mojo0869/ABSL
1•Mojo_0869•8m ago•0 comments

AI Scammers Are Better at Building Trust Than Humans

https://www.wired.com/story/ai-scammers-are-better-at-building-trust-than-humans/
2•justworks•9m ago•0 comments

Docker Hub – Tags pushed on July 29th may not be visible in Hub

https://www.dockerstatus.com/
1•opsdisk•10m ago•0 comments

Elena, a library for building Progressive Web Components

https://elenajs.com/
1•brianzelip•11m ago•0 comments

Convert any website to React/Next.js

https://tiny-door.com
1•systemerror•11m ago•0 comments

Great Barrier Reef at risk of 'collapse', scientists warn

https://japantoday.com/category/features/environment/great-barrier-reef-at-risk-of-%27collapse%27...
2•speckx•12m ago•0 comments

Launch HN: Prized (YC S26) – Let non-engineer staff build secure internal tools

https://prized.dev
2•marinoseliades•14m ago•0 comments

Show HN: Skytrace – Self-hosted 3D ADS-B viewer with receiver coverage domes

https://sky.luftaquila.io
1•luftaquila•14m ago•0 comments

Headteacher had the most guessable username-password combo you could imagine

https://www.theregister.com/security/2026/07/30/headteacher-had-the-most-guessable-username-passw...
2•geekinchief•15m ago•1 comments

Why Tokyo's New Shorts Policy Is Sparking Debate in Japan

https://www.nytimes.com/2026/07/19/world/asia/japan-cool-biz-tokyo-shorts-heat.html
1•Markoff•16m ago•1 comments

To Know What Your Customers Think, Just Ask Their A.I. Twins

https://www.nytimes.com/2026/07/30/business/dealbook/simile-ai-agents-funding.html
1•pteetor•17m ago•1 comments

Show HN: Local text, image, video, music and 3D from one CLI, no Python

https://github.com/sawfwair/mere-run
1•sawfwair•18m ago•0 comments

Percent of Leaders Regret AI Layoffs–and a Major Hiring Reversal Has Begun

https://www.inc.com/bruce-crumley/55-percent-of-leaders-regret-ai-layoffs-and-a-major-hiring-reve...
1•speckx•18m ago•1 comments

Navigating Source Code (especially on large projects)

1•thekey•18m ago•0 comments

UK police to arrest people for showing support for Palestine Action

https://twitter.com/metpoliceuk/status/2082527338735005811
8•slowin•20m ago•1 comments

First Contact: The most important question in AI

https://evolutionairy.ai/first-contact/
1•adevalois•20m ago•1 comments

The AI Aesthetic

https://blog.jim-nielsen.com/2026/ai-aesthetic/
1•meetpateltech•21m ago•0 comments

Upper stage impacting the moon on 2026 August 5

https://www.projectpluto.com/25010d.htm
2•ryannevius•21m ago•0 comments

Experimental Drone Hits 699 Km/H in Push Toward High-Speed Interceptors

https://thedefensepost.com/2026/07/09/german-experimental-drone-interceptors/
2•geox•22m ago•0 comments

Show HN: A focused, fullscreen, side-by-side terminal-based Git review tool

https://slobodan.me/hawkshaw/
2•slobodan_•24m ago•0 comments

Back from China: Two Cosmologies, Two AIs, and One Social Soil

https://ottoscharmer.substack.com/p/back-from-china-two-cosmologies-two
1•ColinEberhardt•24m ago•0 comments

Amazon's Zoox wins first US approval for paid robotaxis with no human controls

https://www.reuters.com/world/amazons-zoox-wins-first-us-approval-paid-robotaxis-with-no-human-co...
5•mortenjorck•24m ago•0 comments

Show HN: A self-hostable, distributed, S3-compatible object store on the BEAM

https://github.com/wizenink/aethers3
1•wizenink•25m ago•1 comments