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 Evaluation-Industrial Complex

https://twitter.com/xeophon/status/2119563291412578575
1•nlpnerd•1m ago•0 comments

0rwx Framework for AI Usage

https://0rwx.com/
3•mzhaase•14m ago•0 comments

Ask HN: Would you retry this timed-out job?

2•realavdulmouhd•18m ago•0 comments

ChatGPT Desktop forwards your SSH agent to remote machines

3•DenGorbachev•24m ago•0 comments

"What Good Is a New-Born Baby?"

https://www.americanheritage.com/what-good-new-born-baby
1•Betelbuddy•24m ago•0 comments

My Idea of a New Web

https://demo.bonbonweb.org/
2•tosh•26m ago•0 comments

Show HN: Nearby Share:I built a browser-based file transfer tool

https://nearbyshare.app
2•jumpdong•27m ago•0 comments

Anthropic IPO meets AI backlash

https://www.cnbc.com/2026/11/07/anthropic-ipo-ai-data-center-backlash.html
2•Betelbuddy•29m ago•0 comments

Show HN: A 40MB TTS model hand-ported to run in the browser (TS and WGSL)

https://ttslab.dev
1•MbBrainz•33m ago•0 comments

Stock market casino: the rising stakes of 'gamified' investing

https://www.ft.com/content/47831fae-3ecd-4fc0-9921-fd1933d75cd4
2•porridgeraisin•35m ago•0 comments

European governmental DNSSEC: policy and promotion drive adoption

https://internetcleanup.foundation/2026/11/european-governmental-dnssec-policy-and-promotion-driv...
1•aequitas•40m ago•0 comments

Ask HN: Will Humans Become Useless?

2•misano•43m ago•2 comments

Endlessly self-injection-locked photonic integrated lasers (2026)

https://www.nature.com/articles/s41566-026-01985-1
1•peter_d_sherman•46m ago•0 comments

OpenConche: Modern engine for Chocolatier games (2007-2009)

https://github.com/open-conche/OpenConche
1•openconche•50m ago•1 comments

Turn text or photos into 360° panoramas with AI

https://ai360generator.com
1•terrybeer24•52m ago•0 comments

Tech giant Nvidia to investigate CEO's affair with suspected Chinese spy

https://www.bbc.co.uk/news/live/cm78p221e313t
3•iamflimflam1•53m ago•0 comments

The Tragedy of the Oxide Root of Trust

https://danielmangum.com/posts/tragedy-oxide-rot/
2•hasheddan•55m ago•0 comments

Stop Measuring Developer Productivity

https://leaddev.com/reporting/stop-measuring-developer-productivity
2•theanonymousone•59m ago•0 comments

'A new age of climate extremes': Earth accumulating heat at accelerating rate

https://www.theguardian.com/environment/2026/nov/09/cop31-climate-extremes-earth-global-heating
2•ljf•1h ago•0 comments

I made an ESP32 Tailscale gateway with WoL and other recovery functions

https://mattboxx.github.io/esp32-tailnet-gateway/
2•Mattboxx•1h ago•1 comments

Show HN: CodeHub – Turning release notes into pictures so that it is fun to read

https://www.nadary.com/codehub
2•forza2026•1h ago•0 comments

Asahi Linux forbids using AI to contribute

https://asahilinux.org/llm-policy/
1•jiwidi•1h ago•0 comments

IAL Paper Tracker – free tracker for Edexcel IAL students

https://www.ialpapertracker.com/
1•elvanlatief•1h ago•0 comments

PixelOS

https://pixelos.net/
2•emilburzo•1h ago•0 comments

500 Lines or Less: A Simple Object Model

https://aosabook.org/en/500L/a-simple-object-model.html
2•signa11•1h ago•0 comments

The Dose Makes the Poison

https://en.wikipedia.org/wiki/The_dose_makes_the_poison
1•num42•1h ago•0 comments

Making the Iron Giant Live

https://animationobsessive.substack.com/p/making-the-iron-giant-live
2•vinhnx•1h ago•0 comments

370 Books in 20 months: South African author defends her use of AI

https://www.enca.com/lifestyle/370-books-20-months-sa-author-defends-her-use-ai
2•theanonymousone•1h ago•0 comments

Tracking AI's Real-Time Footprint on the Labor Market

https://hai.stanford.edu/news/tracking-ais-real-time-footprint-on-the-labor-market
2•T-A•1h ago•0 comments

Next-Concept Modeling: Fast, Parallel Coarse-to-Fine Text Generation

https://arxiv.org/abs/2610.14162
30•theanonymousone•1h ago•3 comments