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!

Caltech mathematicians call for suspension of AI Mathathon

https://proofsandprompts.com/2026/09/10/open-letter-about-the-mathathon/
1•doubledamio•1m ago•0 comments

PrimalLift

https://www.facebook.com/PrimalLiftTry/
1•najudasy•1m ago•0 comments

DeepJIT: Header-Only C++20 JIT Runtime for Nvidia CUDA and Huawei Ascend

https://github.com/deepseek-ai/DeepJIT
1•mehmetoguzderin•7m ago•0 comments

Thanks to Siri Recaps, your Apple Watch is always listening

https://www.techradar.com/health-fitness/smartwatches/thanks-to-siri-recaps-your-apple-watch-is-a...
2•geox•8m ago•0 comments

Pushing Collision Attacks on SHA-2 to 39 Steps

https://eprint.iacr.org/2026/1120
1•gslin•8m ago•0 comments

DeepSeek v4.1-Flash on Openrouter

https://openrouter.ai/deepseek/deepseek-v4.1-flash
1•manoji•8m ago•0 comments

PlayStation cancels Kojima's PHYSINT, Xbox steps in

https://twitter.com/hideo_kojima_en/status/2097877506401681753
3•HatchedLake721•9m ago•0 comments

Sellular – Boost SaaS Visibility

https://Sellular.online
1•Spark88•9m ago•0 comments

React 19.3: View Transitions and Fragment Refs are now stable

https://react.dev/blog/2026/09/09/react-19-3
1•joshcsimmons•10m ago•0 comments

Towards Self-Driving Codebases

https://cursor.com/blog/self-driving-codebases
1•tosh•11m ago•0 comments

Gemini 3.8 Flash passed Claude Fable 5.1 on this bench

https://chessbench.ai
2•soltanov•11m ago•0 comments

Outdoor Signage

https://www.ambert.ae
1•doshopzone•14m ago•0 comments

Scientificfigure

https://scientificfigure.com
1•ahmadrodriguezs•15m ago•0 comments

Nvidia and Palantir want to speed up the AI buildout. Nvidia is first in line

https://www.fastcompany.com/91604370/nvidia-palantir-sovereign-ai-supply-chains
1•johnshades•16m ago•0 comments

From One Horizontal Scaling Controller to Many: Evolving Uber's Compute Platform

https://www.uber.com/mx/en/blog/evolving-ubers-compute-platform/
1•theanonymousone•19m ago•0 comments

Drones Recreate Twin Towers

https://abc7ny.com/post/drone-show-recreates-twin-towers-honors-2977-victims-ahead-25th-anniversa...
2•TechTechTech•20m ago•0 comments

I Go to the Cloud [video]

https://www.youtube.com/watch?v=i5GTwBTCQJI
1•vismit2000•29m ago•0 comments

Show HN: The same nine streaming subscriptions cost $702/year more than in 2021

https://honestlyranked.com/guides/streaming-price-increases/
2•honestlyranked•30m ago•0 comments

Nerve Guard

https://www.facebook.com/NerveGuard/
1•hayzsafu•31m ago•0 comments

Flushing the toilet may release germ plume at adult face height

https://www.cidrap.umn.edu/misc-emerging-topics/flushing-toilet-may-release-germ-plume-adult-face...
5•giuliomagnifico•32m ago•1 comments

Running AMD OpenSIL and Coreboot on the First Available Ryzen AM5 Motherboard

https://www.phoronix.com/review/msi-b850p-coreboot-opensil
2•rbanffy•35m ago•0 comments

CrossLink: Breaking Location Privacy by Linking Device Identifiers Across

https://arxiv.org/abs/2609.09963
3•sbulaev•37m ago•0 comments

Arm's C2-Ultra, G2-Ultra NX, and CSS N4 IP

https://chipsandcheese.com/p/arms-c2-ultra-g2-ultra-nx-and-css
2•rbanffy•38m ago•0 comments

Count me in: how mathematics explains music – Sarah Hart [video]

https://www.youtube.com/watch?v=yS1DFy2SnQ0
2•vismit2000•38m ago•0 comments

Token Officer Bot

https://twitter.com/kiaraplds/status/2097753767579984281
2•tosh•41m ago•0 comments

Automation (2022)

https://blog.bayindirh.io/blog/on-automation/
2•ErenayDev•43m ago•0 comments

Show HN: Community curated list of 310 AI providers offering $4.3k free credits

https://www.uprouter.online/
3•opensrcme•43m ago•0 comments

Europe may have found a space entrepreneur who is meeting the moment

https://arstechnica.com/space/2026/09/as-europe-flounders-in-space-a-rising-french-star-may-show-...
3•rbanffy•45m ago•1 comments

Binary Translation and Its Consequences

https://chipsandcheese.com/p/on-binary-translation-and-its-consequences
2•thushanfernando•46m ago•0 comments

Optimizing a Spin-Lock

https://david.alvarezrosa.com/posts/optimizing-a-spin-lock/
1•birdculture•46m ago•0 comments