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: Parsimony – an open-source benchmark for how much code AI models add

https://parsimony.lasu.dev/
2•lasu•46s ago•0 comments

Show HN: Watch RL-trained squads play a 2D battle royale (full match replay)

https://123wwwa.github.io/survevbot-demo/
1•123wwwa•1m ago•0 comments

How Reddit Was Born, Sold, Broken and Rebuilt: Steve Huffman and Chris Slowe

https://play.megaphone.fm/xxbaawcrql6ovsvqmhxz-g
1•drusenko•2m ago•0 comments

Tell Me I'm Wrong

https://tellmeimwrong.formr.org/
1•jruohonen•2m ago•0 comments

Xbox Labs

https://news.xbox.com/en-us/2026/10/13/introducing-xbox-labs/
5•astlouis44•3m ago•0 comments

Show HN: I made a hockey web game with Opus 5.5, and Gemini Argon optimized it

https://playblueline.pages.dev/
4•astlouis44•4m ago•0 comments

CS 1.6 Inside of Twitter

https://twitter.com/idanbeck/status/2110085435368329667
1•idanb•5m ago•0 comments

The Quiet Math Revolution

https://workflows-of-ai.com/blog/the-quiet-math-revolution
1•marcus_johansso•8m ago•0 comments

Show HN: go-git2 – 10-100x faster than go-git for reads, libgit2 as pure Go

https://github.com/msuozzo/go-git2
1•msuozzo•9m ago•0 comments

The Bawdy Graffiti of Pompeii and Herculaneum (2017)

https://kashgar.com.au/blogs/history/the-bawdy-graffiti-of-pompeii-and-herculaneu
1•fittingopposite•10m ago•0 comments

Rewinding the exponential: How we keep hardware usage down

https://blog.cloudflare.com/rewinding-the-exponential/
1•kagitac•13m ago•0 comments

Show HN: Rhythm – a skimmable TUI for your GitHub repos

https://github.com/problemsdev/rhythm
1•joeyparsons•13m ago•0 comments

Show HN: Tern – Native macOS SSH Client in Rust/GPUI (76 MB vs. Tabby's 580 MB)

https://github.com/your-moon/tern
2•moon11s•13m ago•0 comments

How many shots are in the average movie today?

https://stephenfollows.com/p/how-many-shots-are-in-the-average
1•rdmuser•15m ago•0 comments

What do you actually do after getting RCE in a Kuberenetes pod?

https://github.com/k8scout/k8scout
1•Tomlmmrs•15m ago•0 comments

A Modern Primer on Processing in Memory

https://arxiv.org/abs/2012.03112
1•Anon84•16m ago•0 comments

Show HN: Faster, Cheaper Databricks Spark with Real-Time ML Config Management

https://espresso.ai/post/databricks-spark
1•karamazov•16m ago•1 comments

The UAE embraces AI for kindergartners

https://restofworld.org/2026/uae-mandates-k12-ai-education-schools/
1•herbertl•17m ago•0 comments

Can research gleaned from a hibernating snail save a human heart?

https://www.ualberta.ca/en/folio/2026/08/can-research-gleaned-from-hibernating-snail-save-human-h...
2•gmays•18m ago•0 comments

2026 AMS Committee on Education Workshop Report

https://terrytao.wordpress.com/2026/10/13/2026-ams-committee-on-education-workshop-report/
1•smilelamp•18m ago•0 comments

The Tao of Tao

https://newsroom.ucla.edu/magazine/terence-tao-math-artificial-intelligence-alpha-research
3•saikatsg•19m ago•0 comments

Loneliness can rewire the brain to drive alcohol consumption

https://news.northwestern.edu/stories/2026/08-2/loneliness-rewires-the-brain-to-drive-alcohol-con...
3•gmays•20m ago•1 comments

Chabuduo World

https://www.tracingwoodgrains.com/p/chabuduo-world
3•wbobeirne•20m ago•0 comments

Show HN: BitRun – Run 1-bit LLMs on CPU at 98T/s without compiling

https://github.com/IshekKhal/bitrun
2•ishekofficial•23m ago•0 comments

Show HN: My satellite tracker now predicts ISS–Moon transits and UAP archive

https://skylens.yantraai.app/app.html
3•skylensspace•23m ago•0 comments

Delaware jury awards Qualcomm $2 in damages, finds Arm breached agreement

https://www.reuters.com/legal/litigation/qualcomm-says-jury-found-arm-breached-license-agreement-...
2•saikatsg•24m ago•0 comments

(not) solitaire – Massively Passively Multiplayer Solitaire

https://notsolitaire.com/
3•gmjosack•24m ago•0 comments

One-shotting an Unreal Engine plugin from a 3k-line plan

https://www.sourcebot.dev/blog/one-shotting-an-unreal-engine-plugin
3•bshzzle•25m ago•0 comments

Yet another way to invoke functions without parentheses

https://blog.ikaes.de/yet-another-way-to-invoke-functions-without-parentheses/
2•aragonite•25m ago•0 comments

Show HN: CoreXTrader – A cross-platform Trading DSL and Voice AI terminal

https://corextrader.com
2•ask4abusaidu•26m ago•0 comments