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!

AI Age Manager, Budgeting AI Spending, 10x Revenue by 10x Code?

https://age-of-product.com/food-agile-thought-565-ai-age-manager/
1•swolpers•18s ago•0 comments

Dots vs. Muse for Developers

https://amplifying.ai/research/dots-vs-muse
2•edwin•1m ago•0 comments

Python 3.15.0

https://www.python.org/downloads/release/python-3150/
2•ngoldbaum•2m ago•0 comments

How to Use SHA-256 Checksums to Prove Your Audit Trail Has Not Been Tampered

https://medium.com/@MirArshadTalpur/how-to-use-sha-256-checksums-to-prove-your-audit-trail-has-no...
2•Arshad-Talpur•3m ago•0 comments

Claude was wrong about job impacts

https://foundationproject.net/research/roofing-scenarios
2•adamsand•5m ago•1 comments

US imposes sanctions on ICC hours after former judge wins Nobel Peace Prize

https://www.reuters.com/world/us-imposes-sanctions-international-criminal-court-hours-after-forme...
5•poly2it•6m ago•0 comments

Fun with low-rank vocab matrices (and a bonus test loss reduction?)

https://www.gilesthomas.com/2026/10/low-rank-vocab-matrices
2•gpjt•7m ago•0 comments

Where backtests and live trading part ways: six defects from one intraday system [pdf]

https://alexvidovich.com/papers/backtest-hygiene
3•svidov222•10m ago•0 comments

A new feature for my blog, built using my voice

https://simonwillison.net/2026/Oct/9/built-using-my-voice/
2•raahelb•10m ago•0 comments

AI and the Future of Science

https://sunelehmann.com/blog/ai-and-the-future-of-science/
1•qwerde•11m ago•0 comments

LocalCloud MCP: local cloud workflows for coding agents

https://local.cloud/blog/localcloud-mcp-agent-cloud/
1•jaysen_apache•11m ago•0 comments

Show HN: Ytd – an intuitive, free, simple YouTube downloader for Mac

https://products.n0agi.com/ytd/
1•N0AGI•13m ago•0 comments

A temp email checker I built for myself that now ranks in Google's top five

https://reloop.sh/tools/temp-email-checker
1•pranavp10•15m ago•0 comments

SoftBank seeks $100B from Gulf investors to expand AI bet

https://www.ft.com/content/3bc0eaa5-a8d4-47e8-903c-7dd762d947dd
4•mikhael•15m ago•0 comments

Why Are Coding Agents So Dumb?

https://mtlynch.io/why-are-coding-agents-so-dumb/
2•mtlynch•17m ago•0 comments

Knowing Enough to Read the Code

https://karlkoch.me/writing/on-knowing-enough-to-read-the-code/
1•speckx•17m ago•0 comments

Yandex Takes a Second Data Center Hit in 48 Hours

https://united24media.com/war-in-ukraine/yandex-takes-a-second-data-center-hit-in-48-hours-now-it...
23•ortusdux•18m ago•6 comments

Show HN: Parlaypals group sports parlays with friends: Elixir/Phoenix LiveView

https://parlaypals.bet
1•thedangler•19m ago•0 comments

Why Small CPU Caches Make Such a Big Difference

https://medium.com/hzlms/hzlms-5-why-do-caches-help-even-when-they-are-tiny-53ad53b87942
1•asbassan•19m ago•0 comments

Show HN: eBay sold listings APIs and MCP

https://soldfetch.com
1•qwikhost•19m ago•0 comments

Getting old Macromedia Director Games to run on modern Hardware

https://werwolv.net/posts/macromedia_copy_protection/
2•speckx•20m ago•0 comments

Mac Shipments Fall, but Apple Still Gains Ground in Shrinking Market

https://www.macrumors.com/2026/10/09/mac-shipments-fall-but-apple-gains-ground/
1•tosh•21m ago•0 comments

OwpenGram – open-source messenger that speaks the MTProto protocol

https://owpengram.org/
2•1ark•22m ago•0 comments

Luminum – turn your Raspberry Pi into "focus mode" workstation

https://luminum.tech
2•brisky•23m ago•0 comments

The next-gen borrow checker, a drop-in replacement for Rust borrow checking

https://gist.github.com/FlameyosSnowy/a49a35ba006238be55d8c3e410c31061
2•0x1997•24m ago•0 comments

Court throws out killer's sentence after judge said he loved AI video of victim

https://www.nbcnews.com/news/us-news/sentence-vacated-ai-video-dead-victim-rcna601457
20•rbanffy•24m ago•7 comments

We solved SQLite's single-writer limitation

https://marcobambini.substack.com/p/we-solved-sqlites-single-writer-limitation
3•marcobambini•26m ago•0 comments

American Airlines extends Starlink Wi-Fi roll-out to mainline fleet

https://www.reuters.com/business/aerospace-defense/american-airlines-extends-starlink-wi-fi-roll-...
1•paaloeye•30m ago•0 comments

In Race with U.S., China Struggles to Recruit Foreign A.I. Researchers

https://www.nytimes.com/2026/10/06/science/china-ai-research-recruitment.html
1•rbanffy•30m ago•0 comments

Guess the football player based on their career

https://derabona.club/?lang=en
3•nelson687•32m ago•0 comments