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!

Curved Crease Folding

https://curved-crease-interactive.vercel.app/
1•coroush•52s ago•0 comments

Don't Be a Meat Proxy

https://gruhn.me/blog/2026-08-03/
3•ngruhn•3m ago•0 comments

R-457 – a 27M-parameter reasoning model running offline across two ESP32-S3

https://github.com/harmansingh4163-ai/R-457
1•harmansingh4163•3m ago•0 comments

Linux 7.2-rc6: The biggest rc6 in years

https://lwn.net/ml/all/CAHk-=whoz5Uy-kmrdzjrpCJCVWW3fni31c-zsHcH7TkOhRhfOA@mail.gmail.com/
1•zdkaster•8m ago•0 comments

Britain's Hikikomori

https://dispatch-media.com/meet-britains-hikikomori/
2•littlexsparkee•9m ago•0 comments

Situational Awareness and the Impending Stock Market Volatility

https://www.emergingtrajectories.com/lh/situational-awareness-bigger-picture/
3•cl42•13m ago•0 comments

How AI Is Reshaping Human Reasoning and the Rise of Cognitive Surrender

https://www.researchgate.net/publication/399711077_Thinking-Fast_Slow_and_Artificial_How_AI_is_Re...
1•akbarnama•15m ago•1 comments

A Wild Netflix Lawsuit Shows Why Drugs and Alcohol Don't Mix with Work

https://www.wsj.com/lifestyle/careers/a-wild-netflix-lawsuit-shows-why-drugs-and-alcohol-dont-mix...
1•petethomas•15m ago•0 comments

How fast is C++26's std:hive?

https://lemire.me/blog/2026/08/02/how-fast-is-c26s-stdhive/
1•ingve•18m ago•0 comments

Foldables are sort of boring now – and that's great news for Apple

https://www.theverge.com/column/972937/foldable-phones-boring-apple
1•ramn7•20m ago•0 comments

More German than many Germans

https://mertbulan.com/more-german-than-many-germans/
2•mertbio•31m ago•0 comments

Japanese Matcha Price Tracker 2026: Live Auction and Wholesale Data

https://onewithtea.com/pages/japanese-matcha-price-tracker
1•vector_spaces•33m ago•0 comments

Company Offering Printed Books to Train AI Stops After 404 Media Coverage

https://www.404media.co/ai-company-training-scanning-books-database-isbndb/
2•HelloUsername•34m ago•0 comments

Show HN: MPEdb a drop in replacement for SQLite3 with concurrency support

https://github.com/punnerud/mpedb
1•punnerud•36m ago•0 comments

The Math Superstar Who's Terrified of AI–and Just Took a Job at OpenAI

https://www.wsj.com/tech/ai/openai-jacob-tsimerman-fields-medal-ai-safety-391d0f79
1•apparent•42m ago•0 comments

Alternative Versioning

https://altver.org/
1•tomodachi94•46m ago•0 comments

Show HN: NoCrap – Gamifying porn addiction recovery

https://nocrap.vercel.app/
1•uioio•53m ago•0 comments

Compile Zod schemas into zero-overhead validation functions at build time

https://github.com/wakita181009/zod-aot
1•ryuuseijin•56m ago•0 comments

Five Takeaways from the Times Investigation into Larry Ellison's A.I. Gamble

https://www.nytimes.com/2026/07/31/magazine/takeaways-larry-ellison-oracle-ai.html
2•achow•59m ago•0 comments

The Ancient Roots of Modern Winemaking

https://nautil.us/the-ancient-roots-of-modern-winemaking-1281970
1•the-mitr•1h ago•0 comments

Return-to-office mandates are killing workplace trust

https://thehill.com/opinion/technology/5992056-office-attendance-backlash/
2•dmitrygr•1h ago•0 comments

Only 1/8 turbines in Hungarian Paks NPP still operational, shutdown imminent

https://index.hu/gazdasag/2026/08/03/paksi-atomeromu-leallas-kormany-atomenergia-energia-veszelyh...
2•Markoff•1h ago•2 comments

Go json/v2

https://pkg.go.dev/encoding/json/v2
1•tosh•1h ago•0 comments

Dijkstra: The End of Computing Science (2000) [pdf]

https://www.cs.utexas.edu/~EWD/ewd13xx/EWD1304.PDF
2•emptybits•1h ago•0 comments

Show HN: Open-sourcing my market mental map

https://research.oguzbilgic.com
1•obilgic•1h ago•1 comments

lexicon of computing (2001)

https://web.archive.org/web/20011128152100/http://www.cs.washington.edu/homes/klee/misc/lexicon.html
1•jruohonen•1h ago•0 comments

Netflix sued for $105M after unreleased Nicolas Cage movie is stolen

https://www.nbcnews.com/pop-culture/pop-culture-news/netflix-sued-105-million-unreleased-nicolas-...
2•xvxvx•1h ago•3 comments

Show HN: Kwayk – Reimplementing Quake in Qt Quick3D with Jolt Physics

https://github.com/glazunov999/Kwayk
1•glazunov999•1h ago•0 comments

How Go Players Disempower Themselves to AI

https://www.lesswrong.com/posts/nR3DkyivzF4ve97oM/how-go-players-disempower-themselves-to-ai
2•zetalyrae•1h ago•1 comments

How Cursor sets up their cloud agent environment

https://cursor.com/blog/cloud-agent-environment
2•inferhaven•1h ago•0 comments