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•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!

TheArchiveBase – A Lightweight Distributed Search Engine

https://thearchivebase.com/
1•tanvirredwan•32s ago•0 comments

Trillions of miles of data: Your car is spying on you

https://www.bbc.com/future/article/20260513-your-car-is-spying-on-you-its-about-to-get-worse
1•1659447091•1m ago•0 comments

Fly.io is getting rid of GPU-accelerated machines

https://fly.io/docs/gpus/
1•abound•3m ago•1 comments

I Rewrote My Project from Clojure to Gleam [video]

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

SF vibes are frenetic over the divide in outcomes and career uncertainty

https://www.techmeme.com/260516/p9
2•danorama•16m ago•1 comments

SeeFlow – Architecture diagrams that run

https://seeflow.dev
1•tuongaz•18m ago•0 comments

Lord of the Flies: A Harmful Distortion of Children's Nature

https://petergray.substack.com/p/114-lord-of-the-flies-a-harmful-distortion
1•Ariarule•20m ago•0 comments

Unmanned lab opens with robots at work as researchers push AI, automation

https://japantoday.com/category/tech/unmanned-lab-opens-with-robots-at-work-as-researchers-push-a...
1•pseudolus•24m ago•0 comments

Eric Weinstein: "I Was Wrong About UFOs " [video]

https://www.youtube.com/watch?v=ZBjJTj_ZFXU
1•keepamovin•34m ago•0 comments

Ccstory – Weekly recap of what you did in Claude Code

https://github.com/atomchung/ccstory
1•atomtw•39m ago•0 comments

Bear spray is exploding in the trash near Yellowstone National Park

https://www.sfgate.com/national-parks/article/exploding-bear-spray-yellowstone-22244713.php
3•turtlegrids•40m ago•2 comments

2026 will be a HVAC contractor bloodbath

https://www.reddit.com/r/heatpumps/s/APgJ68ZSyz
2•ssuds•44m ago•0 comments

LLMs and the Epistemic Apocalypse

https://haversine.substack.com/p/the-slow-creep-of-epistemic-apocalypse
1•MakeAJiraTicket•47m ago•1 comments

How to buy cheap Claude tokens in China

https://www.chinatalk.media/p/how-to-buy-cheap-claude-tokens-in
2•RyanShook•52m ago•0 comments

Science Behind Too Much Homework for Lower School Kids

https://restingrichface.substack.com/p/im-quitting-my-third-graders-homework
2•_RRF•54m ago•1 comments

Ascetic Computing

https://ratfactor.com/ascetic-computing
2•RohanAdwankar•58m ago•0 comments

Zhengkid/AutoTTS: Agentic Discovery for Test-Time Scaling

https://github.com/zhengkid/AutoTTS
2•gmays•1h ago•0 comments

Monero Stats: An aggregate of payment data by businesses that accept Monero

https://monerostats.org/
2•Cider9986•1h ago•2 comments

Four Decisions: The Divergent Choices That Define a Life

https://gadallon.substack.com/p/four-decisions-the-divergent-choices
1•Murskautuminen•1h ago•0 comments

Basalt could be the key to greener and cheaper cement

https://news.ucsb.edu/2026/022568/basalt-could-be-key-greener-and-cheaper-cement
1•littlexsparkee•1h ago•0 comments

Don't Outsource the Learning

https://addyosmani.com/blog/dont-outsource-learning/
2•cdrnsf•1h ago•0 comments

Show HN: SoccQR – Lost and Found Labels for Soccer Balls / Gamified Training Log

https://soccqr.com
1•zarie•1h ago•0 comments

The Left Hand of Darkness (1969)

https://en.wikipedia.org/wiki/The_Left_Hand_of_Darkness
2•maxall4•1h ago•0 comments

An Inexpensive Schlieren System

https://petapixel.com/2020/01/18/a-simple-and-inexpensive-schlieren-optical-system-using-a-fresne...
2•Eridanus2•1h ago•0 comments

Prepare your "no" and keep it handy

https://sive.rs/n0
2•Curiositry•1h ago•0 comments

Hosting a website on an 8-bit microcontroller

https://maurycyz.com/projects/mcusite/
28•zdw•1h ago•1 comments

The lasting influence of Netscape Time

https://thehistoryoftheweb.com/the-lasting-influence-of-netscape-time/
2•zdw•1h ago•0 comments

Self-Distillation Enables Continual Learning [pdf]

https://arxiv.org/abs/2601.19897
9•teleforce•1h ago•1 comments

Ask HN: Pre-agentic Google would restrict a search query to only 10 words

1•Eridanus2•1h ago•0 comments

AI Poised to Tilt Job Market Leverage Toward Older Workers

https://www.bloomberg.com/news/articles/2026-05-16/ai-poised-to-tilt-job-market-leverage-toward-o...
5•littlexsparkee•1h ago•2 comments