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•6mo 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•6mo ago
Finally!

When Apple's Terms and Conditions Ambushed Me on the Toilet

https://victorantos.com/posts/when-apples-terms-and-conditions-ambushed-me-on-the-toilet/
1•victorbuilds•1m ago•0 comments

RubyGems 4.0.1 and Bundler 4.0.1 Released

https://blog.rubygems.org/2025/12/09/4.0.1-released.html
1•unripe_syntax•1m ago•0 comments

The Eternal Return of Abstraction: Why Programming Was Never About Code

https://medium.com/generative-ai/the-eternal-return-of-abstraction-why-programming-was-never-abou...
1•d2clon•2m ago•0 comments

Building an Audio Player with StimulusJS

https://avohq.io/blog/building-an-audio-player-with-stimulusjs
2•adrianthedev•3m ago•0 comments

Cursed circuits #2: switched capacitor lowpass

https://lcamtuf.substack.com/p/cursed-circuits-2-switched-capacitor
2•signa11•5m ago•0 comments

'creepy' digital billboards that can track viewers' responses

https://www.theguardian.com/world/2025/dec/09/uk-campaigners-condemn-digital-billboards-track-vie...
4•bloke_zero•8m ago•0 comments

Expanding Age Assurance to Australia

https://old.reddit.com/r/RedditSafety/comments/1phjf63/expanding_age_assurance_to_australia/
2•nomilk•9m ago•0 comments

Xkcd 1313: Regex Golf (2014)

https://nbviewer.org/url/norvig.com/ipython/xkcd1313.ipynb
1•todsacerdoti•10m ago•0 comments

Show HN: DeChecker – Detect AI-generated text

https://dechecker.ai
1•GrammarChecker•13m ago•0 comments

How to Scale Development Without Hiring Full-Time Engineers?

https://www.indiehackers.com/post/how-to-scale-development-without-hiring-full-time-engineers-O23...
2•plakhlani2•13m ago•0 comments

Madison Beer and Justin Herbert Timeline

https://figyj.blogspot.com/2025/12/madison-beer-justin-herbert-timeline.html
1•FIGYJ•14m ago•0 comments

The rise of AI and why it's freaking me out

https://paeulini.com/so/20PhQi9nY
1•saeedesmaili•14m ago•0 comments

Rewriting our documentation using Coding Agents

https://endor.dev/blog/rebuilding-our-docs
2•ridruejo•15m ago•0 comments

Ao3dle

https://ao3dle.com/
1•quchao•16m ago•2 comments

LiveView in Django is easy now

https://django-liveview.andros.dev/quick-start/
2•andros•16m ago•0 comments

A prototype of an event driven JavaScript framework

https://github.com/patrickjh/ForeignKeyFramework
2•pianopatrick•17m ago•1 comments

Is Scaled Agile the Problem, or Are We Implementing It Wrong?

https://agileglow.io/
2•thetruthinside•19m ago•2 comments

Dagger: Define software delivery workflows and dev environments

https://dagger.io/
1•ahamez•20m ago•0 comments

Composite metal foam could lead to safer hazmat transportation

https://techxplore.com/news/2025-11-composite-metal-foam-safer-hazmat.html
1•PaulHoule•21m ago•0 comments

The RAMpocalypse Is Nigh

https://taoofmac.com/space/links/2025/12/05/1330
2•rcarmo•22m ago•0 comments

Notes for November 23–December 8

https://taoofmac.com/space/notes/2025/12/08/2000
1•rcarmo•23m ago•0 comments

The Decline of the Software Drafter?

https://benjamincongdon.me/blog/2025/12/08/The-Decline-of-the-Software-Drafter/
1•ingve•25m ago•0 comments

ICEBlock Was Purged from the App Store. Now Its Creator Is Suing Trump

https://slate.com/technology/2025/12/iceblock-app-lawsuit-pam-bondi-trump-joshua-aaron-ice.html
3•aestetix•29m ago•0 comments

Show HN: Starsalign.eu

https://starsalign.eu
1•pheelicks•30m ago•0 comments

When Good /Bins Go Bad: Remote Pre-Authentication Overflow in LLDB's Debugserver

https://objective-see.org/blog/blog_0x83.html
2•ingve•35m ago•0 comments

I built FeedBugs.com – a simple security scanner for solo devs

https://www.feedbugs.com/
1•vignzviki•36m ago•2 comments

Podcast: Interview with Kent Overstreet (Bcachefs)

https://linuxunplugged.com/644
1•teekert•41m ago•0 comments

Spiromorph Port to WebGL

https://github.com/ReVHeaDRaZ/webgl-Spiromorph
1•mickjc750•47m ago•1 comments

All 187,460 Miles of Road That Led to Rome, Mapped

https://www.nytimes.com/2025/12/09/science/archaeology-roman-empire-roads.html
2•quapster•47m ago•0 comments

The runaway drone that caused a Cold War air battle (2016)

https://www.bbc.com/future/article/20160811-the-runaway-drone-that-caused-a-cold-war-air-battle
3•1659447091•53m ago•0 comments