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!

Investment risk for energy highest for nuclear plants, lowest for solar

https://www.sciencedaily.com/releases/2025/05/250519204507.htm
1•Zigurd•1m ago•0 comments

Generate and edit videos with Gemini Omni Flash

https://ai.google.dev/gemini-api/docs/omni
1•adithyaharish•1m ago•0 comments

Companies Are Throttling Employees' AI Use Because It's Too Expensive

https://www.404media.co/companies-are-throttling-employees-ai-use-because-its-too-expensive/
1•_tk_•1m ago•0 comments

Hackers shoveled snow for company, were rewarded with network admin access

https://www.theregister.com/security/2026/07/02/hackers-shoveled-snow-for-company-were-rewarded-w...
1•geekinchief•2m ago•1 comments

SAP Restricts Hiring, Travel to Fund 'Significant' AI Push

https://www.bloomberg.com/news/articles/2026-07-02/sap-restricts-hiring-travel-to-fund-significan...
1•root-parent•3m ago•0 comments

Many laundromats, food trucks, or gyms exist in any US county (free tool)

https://valtr.xyz/check
1•berkleyn•4m ago•0 comments

Dockframe – modular USB hub compatible with Framework Expansion Cards

https://www.crowdsupply.com/hw-media-lab/dockframe
1•matthiaswh•4m ago•0 comments

I visited the infamous HS2 'Bat Tunnel'

https://martinrobbins.substack.com/p/i-visited-the-infamous-hs2-bat-tunnel
1•rwmj•5m ago•0 comments

Show HN: Row to Glory, a Viking rhythm game to row your way to World Cup 2026

https://www.rowtoglory.com
1•kman_85•6m ago•0 comments

Germany's Infineon opens $5.7B chip plant as EU seeks tech autonomy

https://www.rfi.fr/en/international-news/20260702-germany-s-infineon-opens-major-chip-plant-as-eu...
2•giuliomagnifico•6m ago•0 comments

Foreign Influence in the Campaign Against American AI

https://www.btcpolicy.org/articles/foreign-influence-campaign-against-american-ai-part-ii-singham...
2•gmays•7m ago•0 comments

What Should We Optimize Away?

https://www.autodidacts.io/holistic-optimization/
1•surprisetalk•7m ago•0 comments

The Economy Is K-Shaped

https://moai.studio/blog/posts/economy-is-k-shaped.html
2•ionwake•9m ago•0 comments

Closed class hierarchies in .NET 11

https://andrewlock.net/exploring-the-dotnet-11-preview-4-closed-class-hierarchies/
1•ingve•9m ago•0 comments

Building a Passive Ethernet Tap

https://blog.lvmbdv.dev/posts/building-a-passive-ethernet-tap/
2•birdculture•11m ago•0 comments

Show HN: DevTUI – A Swiss-army app for developers

https://devtui.com/
2•lunaticman•12m ago•0 comments

AI fake news complaining about how AI fake news is the death of real news

https://www.niemanlab.org/2026/07/now-were-getting-ai-fake-news-complaining-about-how-ai-fake-new...
2•thm•12m ago•0 comments

Glyph – Generate app icons for every platform from a text description

https://useglyphapp.com
1•useglyphapp•14m ago•0 comments

Japan study finds coffee taste changes with cup texture

https://mainichi.jp/english/articles/20260629/p2a/00m/0na/020000c
2•giuliomagnifico•14m ago•0 comments

Show HN: Open-Source AI Native IDE Cursor Alternative

https://github.com/neuralinverse/neuralinverse
4•vakeeshmoorthy•16m ago•0 comments

LLM Fine-Tuning and Model Iteration Loop: Improve AI Apps in Production

https://www.youtube.com/watch?v=Um7sjLEhaQM
1•astro_09•16m ago•0 comments

Island Imagined

https://islandimagined.ca/
1•xattt•17m ago•0 comments

Qt Bridges: Public Beta for the Rust Bridge Is Out

https://www.qt.io/blog/qt-bridges-public-beta-for-rust
1•pjmlp•18m ago•0 comments

Vipassana for Hackers

https://github.com/deobald/vipassana-for-hackers
1•rishikeshs•19m ago•0 comments

The proper way to verify age & other attributes without revealing identity [pdf]

https://magarshak.com/papers/privacy/Personal.pdf
1•EGreg•19m ago•0 comments

NSA tries to weaken mlkem standardisation

https://nsa.2026.action.cr.yp.to
2•SuperSandro2000•20m ago•0 comments

Electricity demand is set to pass GDP in growth for first time

https://finance.yahoo.com/energy/article/electricity-demand-is-set-to-grow-faster-than-the-global...
1•m-hodges•20m ago•0 comments

Show HN: Navia Dratp – an online version of an out-of-print Bandai strategy game

https://naviadratp.com/
2•explosionpunch•21m ago•0 comments

US companies are losing 2.4% of revenue on failed AI projects

https://www.ciodive.com/news/wasted-tech-spend-AI-governance/824275/
4•redsymbol•21m ago•0 comments

SIMD Vectors in the HotSpot JVM – Auto Vectorization and the Vector API

https://www.youtube.com/watch?v=KpCz6UtViEo
1•pron•21m ago•0 comments