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!

Google Weather Lab 2

https://deepmind.google.com/science/weatherlab
2•xnx•3m ago•0 comments

Show HN: Tests.ws – WebSocket testing tools, language guides, Chrome extension

https://tests.ws/
1•gingermanymph•3m ago•0 comments

Aurora DSQL: Scalable, Multi-Region OLTP

https://arxiv.org/abs/2607.13276
1•shenli3514•3m ago•0 comments

Sliding into Silence? We Are Speaking 300 Daily Words Fewer Every Year

https://journals.sagepub.com/doi/10.1177/17456916261425131
1•Pamar•5m ago•0 comments

China's Latest A.I. Breakthrough Threatens America's Lead

https://www.nytimes.com/2026/07/17/business/china-ai-moonshot-kimi.html
1•petilon•6m ago•0 comments

Grumpy Website

https://grumpy.website/
2•Gecko4072•7m ago•0 comments

The first patch is a price check, not the product

https://github.blog/engineering/the-cost-of-saying-yes-has-changed/
1•logickkk1•7m ago•0 comments

Static search trees: 40x faster than binary search (2024)

https://curiouscoding.nl/posts/static-search-tree/
1•lalitmaganti•10m ago•0 comments

China's Xi Jinping launches new AI alliance, WAICO

https://www.aljazeera.com/news/2026/7/17/chinas-xi-jinping-launches-new-ai-alliance-what-is-it
2•culi•10m ago•2 comments

Recreating the best engineering zine from the 90s

https://circazine.hackclub.com/
2•lsanchezz•11m ago•0 comments

France blocks access to Polymarket website

https://www.reuters.com/technology/french-internet-service-providers-told-block-access-polymarket...
2•1659447091•11m ago•1 comments

Ask HN: Did you try Nordstjernen Web Browser 1.0.19 yet?

2•roschdal•12m ago•1 comments

MLB restricts using dugout iPads for AI-assisted in-game strategy

https://www.espn.com/mlb/story/_/id/49385415/mlb-restricts-dugout-ipad-use-prevent-artificial-int...
1•HardwareLust•15m ago•0 comments

Linus Torvalds to critics of AI coding in Linux: "Fork it. Or just walk away."

https://arstechnica.com/ai/2026/07/linus-torvalds-to-critics-of-ai-coding-in-linux-fork-it-or-jus...
5•baal80spam•15m ago•0 comments

Google Earth Pro for desktop will no longer be available to download soon

https://www.techradar.com/computing/the-impact-to-thousands-of-companies-across-industries-will-b...
1•asoberbeck•16m ago•0 comments

Chemical Onshoring of All Kinds

https://www.science.org/content/blog-post/chemical-onshoring-all-kinds
1•EA-3167•17m ago•0 comments

CollpaseOS: Program microcontrollers through civilizational collapse

https://collapseos.org/
1•Gecko4072•17m ago•0 comments

Apple Passed Nvidia to Become Most Valuable Company Again

https://www.macrumors.com/2026/07/17/apple-passed-nvidia-most-valuable-company/
1•tosh•20m ago•0 comments

Talking Postgres: Working on Postgres After 13 Years on SQL Server

https://talkingpostgres.com/episodes/working-on-postgres-after-13-years-on-sql-server-with-panagi...
2•clairegiordano•21m ago•0 comments

Painting the sides of railroad rails white to reduce derailment

https://www.up.com/news/safety/Tracking-Rail-Heat-260608
2•zdw•22m ago•0 comments

How to Make a Triode Yourself

https://simplifier.neocities.org/triode2
2•Gecko4072•22m ago•0 comments

Show HN: Argument duello game with your friend – AI judge decides who's right

https://wram.chat
1•revolt2tech•23m ago•0 comments

Tech note: making your own V-I plots at home

https://lcamtuf.substack.com/p/tech-note-making-your-own-v-i-plots
1•zdw•25m ago•0 comments

Pre-Authentication RCE in WordPress Core

https://wp2shell.com/
3•patrikg•27m ago•0 comments

When you give a Nix Developer in charge of a website

https://twitter.com/Malix_Labs/status/2077521369663742252
2•eveeifyeve•31m ago•0 comments

We Built Sandbox Infrastructure for Autonomous Agents

https://neosigma.ai/blog/agent-workspaces
2•AdityaBilawar•31m ago•0 comments

T-Mobile's billing-system migration made free lines billable

https://arstechnica.com/tech-policy/2026/07/t-mobile-bungled-forced-plan-migration-canceling-some...
2•logickkk1•32m ago•0 comments

Cabure: Small Gitops Operator

https://github.com/GreedyKomodoDragon/cabure
1•greedykomodo•32m ago•0 comments

Automated job application system, sponsored by the American Mathematical Society

https://www.mathjobs.org/jobs
2•Eridanus2•33m ago•0 comments

Free tool to download Reddit data from community dumps

https://github.com/Tryhard-cs/reddit-download-tool
2•Tryhard3141•34m ago•0 comments