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!

Prichard Colon

https://en.wikipedia.org/wiki/Prichard_Col%C3%B3n
1•hahahacorn•22s ago•0 comments

Show HN: AletheionAGI – Grounding enforcement for AI agents

https://www.aletheionagi.com
1•felipemayamuniz•24s ago•0 comments

There Aren't Enough Ships to Handle China's Booming Car Exports

https://www.wsj.com/business/logistics/there-arent-enough-ships-to-handle-chinas-booming-car-expo...
1•ericmay•1m ago•0 comments

Agentic Task Management

https://github.com/myaa2913/agentic-task-management/tree/main
1•mcorrito•3m ago•0 comments

YouTuber Davie504 slapped with ridiculous copyright claim [video]

https://www.youtube.com/watch?v=fIs2JNOUWeU
1•Panoramix•4m ago•0 comments

Show HN: Biasly.ai – Bias detection with historical context

https://biasly.ai/
1•jayubba1•5m ago•0 comments

Don't Wipe Your Phone at the Airport [video]

https://www.youtube.com/watch?v=_2rokxux5cU
1•rectang•6m ago•1 comments

Z.ai Security Disclosure

https://cvd.z.ai
3•Alifatisk•6m ago•0 comments

What You Gain by Building Your Own Game Engine

https://eliasfarhan.ch/gamedev/cpp/2026/08/14/srnative-01-why-a-custom-engine.html
1•kwakwa_cat•8m ago•0 comments

CAKE: Compiler-Agent Co-Design for Frontier Kernel Evolution

https://arxiv.org/abs/2608.12629
1•matt_d•8m ago•0 comments

Niteshift.dev – The full-stack cloud for coding agents

https://niteshift.dev
1•ishener•9m ago•0 comments

Memory failure predicted by attention lapsing and media multitasking

https://www.nature.com/articles/s41586-020-2870-z
1•u1hcw9nx•9m ago•0 comments

Jason Arday Found Dead

https://www.telegraph.co.uk/gift/9d2ca09b7c07688a
2•theanonymousone•9m ago•0 comments

The Mysterious Syndrome Destroying Endurance Athletes

https://www.outsideonline.com/health/training-performance/running-empty/
1•cwwc•10m ago•0 comments

Ontario Launches Data Centre Playbook

https://news.ontario.ca/en/release/1007871/ontario-launches-data-centre-playbook
1•ChrisArchitect•11m ago•0 comments

Trump administration cancels Biden-era power line construction efforts

https://thehill.com/policy/energy-environment/6028881-energy-dept-scraps-transmission-corridors/
1•gok•11m ago•0 comments

How to Get Rich in America

https://kyla.substack.com/p/how-to-get-rich-in-america
1•cwwc•11m ago•0 comments

How Claude's text watermarking works

https://www.anthropic.com/news/claude-text-watermark
1•surprisetalk•12m ago•0 comments

Agentic OT system for plant operations

https://app.valak.ai
1•mickymultani•13m ago•2 comments

Bluehouse: Ingesting a social network and getting the vibe

https://oleander.dev/bluehouse
1•phixMe•14m ago•0 comments

Tescreal

https://en.wikipedia.org/wiki/Main_Page
1•dgellow•14m ago•0 comments

Counting push-ups live with iOS: brightness, Apple pose, then an LSTM

https://www.bdywrk.app/blog/blind-at-the-bottom
1•studiobokehai•14m ago•0 comments

I know how to talk to God and Hear them, too

https://www.CosmicGovernmentsAmbassador.com/
1•Lbesecker195•15m ago•1 comments

Mama Saturn's Virtual Concert [video]

https://www.youtube.com/watch?v=i2XUrySbdUE
1•consumer451•16m ago•1 comments

High-Performance Array-Backed LRU Hash Table

https://github.com/adanil-code/LRUHashTable
2•adanil_•17m ago•0 comments

Data-eng-bench, Snowflake's data engineering benchmark for agents

https://github.com/Snowflake-Labs/data-eng-bench
1•marcociavarella•18m ago•0 comments

The Great Logistics Mosaic: Who Is Truly Constructing the US ECom Parcel Network

https://chinesellers.substack.com/p/the-great-logistics-mosaic-who-is
1•iamnothere•18m ago•0 comments

Demo for Parameter Sniffing and Memory Grant Feedback

https://marlonribunal.com/demo-for-parameter-sniffing-and-memory-grant-feedback/
1•MarlonPro•19m ago•0 comments

ActivityPub Won by Being Boring

https://o.ee/blog/activitypub-won-by-being-boring/
2•speckx•20m ago•2 comments

The Waldo Moment

https://en.wikipedia.org/wiki/The_Waldo_Moment
1•cs702•20m ago•0 comments