frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Would you believe try-catch-finally works in plain old C?

4•mf_taria•2mo 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•2mo ago
Finally!

Survival of the Greediest

https://thenoosphere.substack.com/p/survival-of-the-greediest
1•hermitcrab•43s ago•0 comments

Read GitHub repos in one second in VSCode

https://github.com/conwnet/github1s
2•MattSayar•3m ago•0 comments

SF Bay Area Aging Demographics

https://www.sfchronicle.com/projects/2025/sf-bay-area-aging-demographics/
1•skmurphy•3m ago•0 comments

Energy expenditure and obesity across the economic spectrum

https://www.pnas.org/doi/full/10.1073/pnas.2420902122
1•domofutu•5m ago•0 comments

AI Breaking into Higher Dimension to Mimic Human Brain and Achieve Intelligence

https://www.popularmechanics.com/science/a65397906/human-brain-ai/
3•Bluestein•6m ago•0 comments

Show HN: Tell the world why you unfollowed/muted a social media account

https://tinmute.com/
1•abzgupta•7m ago•0 comments

Is AI the end of coding as we know it, or just another tool?

https://www.aha.io/engineering/articles/is-ai-the-end-of-coding-or-just-another-tool
3•FigurativeVoid•7m ago•1 comments

WordPress Turmoil and the Fair Package Manager

https://thenewstack.io/wordpress-turmoil-and-the-fair-package-manager/
1•CrankyBear•9m ago•0 comments

The Pragmatic Engineer 2025 Survey: What's in your tech stack?

https://newsletter.pragmaticengineer.com/p/the-pragmatic-engineer-2025-survey
3•iLemming•10m ago•1 comments

Graph Continuous Thought Machines

1•Sai-dewa•13m ago•2 comments

Show HN: McClane – Done-for-you lead drops from Facebook group conversations

https://mcclane.super.site/
1•nickalex•14m ago•1 comments

Silicon Valley, à la Française

https://semiwiki.com/artificial-intelligence/358042-silicon-valley-a-la-francaise/
1•rbanffy•15m ago•0 comments

Energy expenditure and obesity across the economic spectrum

https://www.pnas.org/doi/10.1073/pnas.2420902122
1•bookofjoe•17m ago•0 comments

TikTok Creator Sued by Sylvanian Doll Maker over Brand Promotions

https://www.independent.ie/business/irish/sylvanian-families-toy-firm-in-settlement-talks-with-kildare-tiktok-star-over-parody-videos-featuring-japanese-companys-dolls/a1813361842.html
1•valgaze•17m ago•0 comments

Ask HN: Time to Pivot Out of Engineering?

1•bdnsj•18m ago•0 comments

Where's Firefox Going Next?

https://connect.mozilla.org/t5/discussions/where-s-firefox-going-next-you-tell-us/m-p/100698#M39094
2•ReadCarlBarks•19m ago•0 comments

Views of the U.S. have worsened while opinions of China have improved in surveys

https://www.pewresearch.org/short-reads/2025/07/15/views-of-the-us-have-worsened-while-opinions-of-china-have-improved-in-many-surveyed-countries/
6•alphabetatango•21m ago•1 comments

BlackRock hit by $52B withdrawal from single client

https://www.thetimes.com/business-money/companies/article/blackrock-hit-by-52bn-withdrawal-from-single-client-kmsmg87jc
3•alexcos•22m ago•1 comments

Tried Comet: Impressive AI Tool with Concerns About Future Risks

https://twitter.com/TenZorroAI/status/1945224617859113401
1•paulo20223•23m ago•1 comments

Power-seeking, by any person, may be equivalent to minimizing uncertainty

https://www.lesswrong.com/posts/KYxpkoh8ppnPfmuF3/power-seeking-minimising-free-energy
1•OgsyedIE•24m ago•0 comments

Ask HN: Why Marketing Software Hasn't Had Its 'Cursor Moment' Yet

1•richbelt•26m ago•2 comments

Fighting Brandolini's Law with Sampling

https://brady.fyi/fact-checking/
1•h-bradio•26m ago•0 comments

Differential geometry of ML: a geometric interpretation of gradient descent

https://research.fal.ai/blog/differential-geometry-of-ml/
1•felineflock•27m ago•0 comments

Sci-Fi, Fantasy, Fandom in the Norman vs. Lamb Gothic Fantasy Collection

https://internetarchivecanada.org/2025/07/15/science-fiction-fantasy-and-fandom-in-the-norman-v-lamb-gothic-fantasy-collection/
2•lintalist•29m ago•1 comments

Hacker Residency in Da Nang Vietnam with Tony Dinh

https://www.hackerresidencygroup.com
1•transitivebs•31m ago•1 comments

Cambridge academic James Orr: England should be ethnically English [video]

https://www.youtube.com/watch?v=UngibqLwJ34
2•donsupreme•32m ago•1 comments

Product Innovation is Discovery not Creation

https://boz.com/articles/product-discovery
1•pizzathyme•33m ago•0 comments

Mastodon 4.4 Is Here

https://www.patreon.com/posts/mastodon-4-4-is-134090971
3•doener•35m ago•0 comments

After a Decade of Chaos, Google Is Finally Getting Its Act Together

https://gizmodo.com/after-a-decade-of-chaos-google-is-finally-getting-its-act-together-2000629697
1•mikece•35m ago•1 comments

How to Cool Down Computers Inside of an A320 [video]

https://www.youtube.com/watch?v=HQuc_HhW6VA
1•sarimkx•37m ago•0 comments