frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

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

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

Welcome to the World of Machine Audiences

https://economist.com/by-invitation/2026/04/16/welcome-to-the-world-of-machine-audiencesfromTheEc...
1•andsoitis•27s ago•0 comments

AgileLog: A Forkable Shared Log for Agents on Data Streams

https://arxiv.org/abs/2604.14590
1•yingjunwu•1m ago•0 comments

Autoharness: Self-Improving Agents

https://www.neosigma.ai/blog/self-improving-agentic-systems
1•dujuku•4m ago•0 comments

Rock carving facts – Tanum Sweden

https://www.tanumworldheritage.se/rock-carving-facts/?lang=en
1•janandonly•7m ago•0 comments

The Art of Craftsmanship (Monozukuri) in the Age of AI

https://rapha.land/the-art-of-craftsmanship-monozukuri-in-the-age-of-ai/
1•signa11•17m ago•0 comments

Show HN: FeralHq – The funniest AI driven content generation engine

https://feralhq.com/
1•creature_x•20m ago•0 comments

Stripe's Payment APIs: the first 10 years (2020)

https://stripe.dev/blog/payment-api-design
2•tibbar•22m ago•0 comments

NSA using Anthropic's Mythos despite blacklist

https://www.axios.com/2026/04/19/nsa-anthropic-mythos-pentagon
2•rayval•23m ago•0 comments

Theoretical physicist explains why humanity likely won't see all forces unified

https://www.livescience.com/space/cosmology/the-chances-of-you-living-50-years-are-very-small-the...
1•mikhael•25m ago•0 comments

How to Wage Economic Warfare

https://engelsbergideas.com/essays/how-to-wage-economic-warfare/
2•bryanrasmussen•25m ago•0 comments

Vale: A fast, safe, and easy programming language

https://vale.dev/
2•tosh•26m ago•0 comments

Glyph Protocol for Terminals

https://rapha.land/introducing-glyph-protocol-for-terminals/
2•signa11•27m ago•0 comments

Boston Dynamics and Google DeepMind Teach Spot to Reason

https://spectrum.ieee.org/boston-dynamics-spot-google-deepmind
2•geox•28m ago•0 comments

Real estate investors are buying up long-term care facilities

https://www.npr.org/2026/04/19/nx-s1-5786242/profit-landlord-real-estate-investment-trust-nursing...
2•mikhael•29m ago•0 comments

Can your AI rewrite your code in assembly?

https://lemire.me/blog/2026/04/05/can-your-ai-rewrite-your-code-in-assembly/
3•signa11•29m ago•0 comments

DIDs Are Cool. We Didn't Need Them

https://www.inamoon.com/blog/dids-vs-subjects
9•mankins•31m ago•1 comments

Ask HN: Why is splitting bills still so painful in 2026?

1•allenalux•33m ago•0 comments

The shape of Vision – a cognitive architecture for AI agents

https://iampneuma.com/the-shape-of-vision/
1•barronai•33m ago•1 comments

Robot smashes human record in half-marathon – as another self-destructed

https://newatlas.com/ai-humanoids/robots-outrun-humans-half-marathon/
1•omer_k•37m ago•0 comments

Robots Are Quietly Building the Future of Renewable Energy

https://oilprice.com/Energy/Energy-General/Robots-Are-Quietly-Building-the-Future-of-Renewable-En...
2•thelastgallon•1h ago•0 comments

OSS agents that kill idle cloud clusters before they eat your budget

https://github.com/CruiseAI/digitaltap-oss
2•digitaltap•1h ago•0 comments

Luanjo

1•luanjo•1h ago•0 comments

AI is about to make the global e-waste crisis worse

https://restofworld.org/2026/global-ewaste-crisis/
4•i7l•1h ago•1 comments

Show HN: Lfk – a yazi inspired, Vim-like keyboard focused fast Kubernetes TUI

https://github.com/janosmiko/lfk
1•mixe3y•1h ago•0 comments

Washington DC on track for most volatile temperature year since 1959

https://www.williamangel.net/blog/2026/04/19/Washington_DC_On_Track_For_Stormy_2026.html
1•datadrivenangel•1h ago•0 comments

Theseus, a Static Windows Emulator

https://neugierig.org/software/blog/2026/04/theseus.html
2•zdw•1h ago•0 comments

Choice Against Cost: Sparse Autoencoder Findings in Three Small Language Models

https://substack.com/home/post/p-194758516
3•sourdoughbob•1h ago•0 comments

SoK: Security of Autonomous LLM Agents in Agentic Commerce

https://arxiv.org/abs/2604.15367
3•omer_k•1h ago•0 comments

Avoiding a Culture of Emergencies

https://blog.staysaasy.com/p/avoiding-a-culture-of-emergencies
1•walterbell•1h ago•0 comments

Debate grows over memory semiconductor bonuses

https://koreajoongangdaily.joins.com/news/2026-04-20/opinion/columns/Debate-grows-over-semiconduc...
1•walterbell•1h ago•1 comments