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!

A master class in decorators, patching and tracing

https://grahamdumpleton.me/posts/2026/09/a-master-class-in-decorators-patching-and-tracing/
1•lumpa•1m ago•0 comments

Who Is Open Source About?

https://blog.glyph.im/2026/09/who-is-open-source-about.html
1•lumpa•2m ago•0 comments

The Orient Cables IPO Explained

https://finshots.in/markets/orient-cables-ipo-explained/
1•vismit2000•4m ago•0 comments

HackMIT 2026

https://hackmit.org
2•vismit2000•8m ago•0 comments

The Collie and the Pug – HackMIT 2026 Keynote

https://3blue1brown.substack.com/p/the-collie-and-the-pug
2•vismit2000•8m ago•0 comments

Philosophy Bench

https://philosophybench.org/
3•mellosouls•14m ago•0 comments

Claude's remake of "I'm upping my p(doom)" in 12 hours

https://x.com/donaldjewkes/2102801274173587569
2•newsuser•16m ago•1 comments

BigQuery FinOps Framework

https://www.alvin.ai/blog/bigquery-cost-optimization-the-complete-finops-framework
3•Arimbr•17m ago•0 comments

Unexplained objects in 1950s sky correlate with nuclear tests and UAP reports

https://www.nature.com/articles/s41598-025-21620-3
3•devonsolomon•18m ago•1 comments

SpaceX Pivots Away from Space

https://www.ft.com/content/0fd15797-ac89-4222-a4bb-03a6a1330f48
4•luke5441•19m ago•0 comments

AI for Creativity

https://twitter.com/jeffreykWNDR/status/2102774995315245469
3•tosh•29m ago•0 comments

Astra compressed 600Mb of audio into 20Kb

https://twitter.com/MatternJustus/status/2100706428684304892
3•newsuser•33m ago•1 comments

A Mass. lesbian bar required KN-95 masks. When rules changed, hell broke loose

https://www.bostonglobe.com/2026/09/22/magazine/greenfield-last-ditch-bar-backlash/
3•TMWNN•33m ago•1 comments

OpenAI $500 ProMax plan listed in API

5•GustavHartz•36m ago•1 comments

Musk – Official Trailer – Bleecker Street [video]

https://www.youtube.com/watch?v=eY_8SyndC10
3•vintagedave•37m ago•0 comments

Steppy Fox Browser Game

https://steppyfox.com/
3•fadilbeg•39m ago•0 comments

Legal AI Harvey's margins went from +50% to -50% in 6 months on frontier costs

https://finance.yahoo.com/technology/ai/articles/openai-anthropic-costs-push-more-160523322.html
3•joennlae•40m ago•2 comments

Show HN: IGViewer – Browse public Instagram profiles and stories anonymously

https://www.igrecent.com
2•sx2026•40m ago•0 comments

Real-Time AI Simplification (A2, B1, B2) of BBC World News Live

https://voicefrom.ai/restate/
2•BrandiATMuhkuh•41m ago•0 comments

My First Language Front End with MLIR

https://whereisalan.dev/blog/kaleidoscope-mlir-tutorial/
3•alankarmisra•41m ago•0 comments

Dutch governments builds alternative for Microsoft based on NixOS

https://www.dawo.community/en/
3•fjfaase•41m ago•0 comments

You Cry [video]

https://www.youtube.com/watch?v=rLvUztp7Iog
1•mrroryflint•45m ago•0 comments

Your Language Model Is Already a Decision Model

https://github.com/ntlm1686/Your-language-model-is-already-a-decision-model/tree/master
3•ntlm1686•46m ago•0 comments

Dating a takeoff photo to the second using runway markings as a ruler

https://blog.spuria.app/writeups/angle-of-ascent-billund-klm-takeoff/
1•lost_•53m ago•1 comments

Show HN: Can an AI agent bypass a post-quantum signed authorization policy?

https://github.com/max-russo-com/MAX_AUTHORIZATION_SANDBOX
2•max-russo•53m ago•0 comments

Coming to terms with the end of the Falcon 9

https://www.thespacereview.com/article/5319/1
1•ssernikk•54m ago•0 comments

OpenAI prepares new $500/month Pro Max plan for ChatGPT

https://www.testingcatalog.com/openai-prepares-new-500-month-pro-max-plan-for-chatgpt/
4•yzydserd•57m ago•0 comments

Show HN: Foveon Lab – Compare Sigma Photo Pro Presets on Foveon X3F Files

https://github.com/biopoetic/foveon-lab
2•netless•1h ago•0 comments

Ask HN: Migrating personal email domain from Gmail to iCloud?

1•osener•1h ago•0 comments

Deep Fission ($FISN): A Money Pit

https://iceberg-research.com/2026/09/24/deep-fission-fisn-a-money-pit/
1•ViewTrick1002•1h ago•0 comments