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!

RecLayer – Multi-track screen recording for macOS

https://apps.apple.com/us/app/reclayer/id6771830948?mt=12
1•apostylee•3m ago•0 comments

Italy warns against Chat Control mass surveillance, but votes in favour of it

https://digitalcourage.social/@echo_pbreyer/116860372306942641
1•latexr•6m ago•0 comments

Don't Train the Model, Evolve the Harness

https://huggingface.co/spaces/joelniklaus/harness-optimization
1•mau•6m ago•0 comments

Fourth of July

https://twitter.com/renhumansystems/status/2073302179268468969
1•aasthembolt•20m ago•0 comments

Show HN: Windows Auto Profiles – WinGet wrapper that adds app profiles

https://github.com/lahcim/WindowsAutoProfiles/blob/main/docs/examples.md
1•lahcim2000•20m ago•0 comments

A device that revives eyeballs from dead donors could make eye transplants poss

https://www.technologyreview.com/2026/07/03/1140148/a-device-that-revives-eyeballs-from-dead-dono...
2•joozio•24m ago•0 comments

Show HN: FlipFlow FlipFlow turns PDF, Word, and images into flipbooks

https://flippingbooks.org
1•ceaserwang•25m ago•0 comments

Fable 5. Safety Taken to an Extreme

1•sergeysmirnov•25m ago•0 comments

HTML Is the New PowerPoint

https://sproutmarkup.com/
1•ginooliver•26m ago•0 comments

More Tailscale tricks for your jailbroken Kindle

https://tailscale.com/blog/jailbroken-kindle-proxy-tun-modes
2•Quizzical4230•27m ago•0 comments

Running Qwen 3.6 Locally on a Mac Mini M4 with 16GB RAM

https://maloyan.xyz/blog/running-qwen-locally-mac-mini-m4
1•mpweiher•29m ago•0 comments

What's new in Claude Sonnet 5

https://platform.claude.com/docs/en/about-claude/models/whats-new-sonnet-5
1•tosh•30m ago•0 comments

Is DentaBiome Legit? Full Oral Postbiotic Review 2026

https://gamma.app/embed/Is-DentaBiome-Legit-Full-Oral-Postbiotic-Review-2026-ngcts4rx0fndxw5?mode...
1•prepostseo•34m ago•0 comments

Accessible Math in PDF [video]

https://www.youtube.com/watch?v=yb5QElBAr-Q
1•anewhnaccount2•43m ago•0 comments

The LLVM Compiler Infrastructure

https://cacm.acm.org/federal-funding-of-academic-research/the-llvm-compiler-infrastructure/
1•tosh•45m ago•0 comments

Open source project for evaluating two models on specific task

1•mzubairtahir•48m ago•0 comments

Mir Little Mathematics Library

https://mirtitles.org/2011/06/02/little-mathematics-library/
1•vismit2000•49m ago•0 comments

Show HN: On99 – a no-signup Hong Kong Mark Six checker and stats explorer

https://on99.life/en/lottery
1•alex_foolsmart•52m ago•0 comments

Godot bans "vibe-coded" code contributions

https://theguptalog.blogspot.com/2026/07/godot-bans-ai-generated-code.html
2•guptalog•55m ago•1 comments

Show HN: Much – Local-first AI workspace with in-browser Python (WASM) sandbox

1•srinivasthalada•56m ago•0 comments

The bottleneck might be the air in the room

https://blog.mikebowler.ca/2026/07/03/co2-and-decision-making/
53•gslin•56m ago•13 comments

Borrowed Confidence

https://zhavaedhaemaed.substack.com/p/borrowed-confidence
1•vismit2000•1h ago•0 comments

The feature in OxCaml that more languages should steal

https://theconsensus.dev/p/2026/06/27/the-feature-in-oxcaml-more-languages-should-steal.html
1•tosh•1h ago•0 comments

Now at $50M: Ro Khanna "Why I Support a Billionaire Wealth Tax"

https://rokhannausa.substack.com/p/why-i-support-a-billionaire-wealth
3•g42gregory•1h ago•0 comments

OpenClaw just launched an official app for iPhone

https://9to5mac.com/2026/06/29/openclaw-just-launched-an-official-app-for-iphone-details-here/
1•TMWNN•1h ago•0 comments

I Helped Fact-Check the 1619 Project. The Times Ignored Me. (2020)

https://www.politico.com/news/magazine/2020/03/06/1619-project-new-york-times-mistake-122248
1•Tomte•1h ago•0 comments

Help Us Save MeshCore

https://blog.meshcore.io/2026/07/04/help-us-save-meshcore
1•ilreb•1h ago•0 comments

Berikut cara perubahan tiket AGODA

https://drive.google.com/file/d/1jtjTxNKMww-bAiMbr1SqRwrP7Kwn5wk8/view?usp=drivesdk
1•akupadamu•1h ago•0 comments

Bloomberg Terminal Is Ugly and Clunky–Everyone Still Uses It

https://oztalking.com/en/issues/bloomberg-terminal-lock-in
10•haebom•1h ago•2 comments

Alibaba bans Claude Code as a security risk

https://www.scmp.com/tech/big-tech/article/3359375/alibaba-bans-staff-using-claude-code-over-anth...
2•5701652400•1h ago•0 comments