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

3

https://en.wikipedia.org/wiki/3
1•gone35•1m ago•0 comments

Show HN: Full Signal – Get the signal of Twitter without doomscrolling

https://fullsignal.xyz
1•venkatakshay98•1m ago•0 comments

China is worried about AI job losses

https://www.rand.org/pubs/commentary/2025/12/china-is-worried-about-ai-job-losses.html
1•hhs•2m ago•0 comments

Openfire 5.0.3 Released – Open-Source – Java XMPP/Jabber Server

https://discourse.igniterealtime.org/t/openfire-5-0-3-release/96265
1•neustradamus•3m ago•0 comments

Brown University shooting: At least 2 killed

https://www.dw.com/en/brown-university-shooting-at-least-2-killed/live-75148567
2•wslh•7m ago•0 comments

Show HN: Binaural Beat Player

https://grigio.github.io/binaural-beat-player/
2•grigio•8m ago•0 comments

I miss the old Internet of 10-20 years ago

1•morpheos137•10m ago•0 comments

TeXPen

https://texpen.github.io/
1•cglong•15m ago•0 comments

Copywriters reveal how AI has decimated their industry

https://www.bloodinthemachine.com/p/i-was-forced-to-use-ai-until-the
2•kawera•16m ago•0 comments

Show HN: Vibe coded 3D Scene Animation Studio

https://andact.replit.app/
2•ersinesen•17m ago•0 comments

The Core Misconception That Is Driving American AI Policy

https://garymarcus.substack.com/p/a-deeply-implausible-premise-is-behind
1•skx001•17m ago•1 comments

From Zero to QED: An informal introduction to formality with Lean 4

https://sdiehl.github.io/zero-to-qed/01_introduction.html
1•rwosync•21m ago•0 comments

Closures as Win32 Window Procedures

https://nullprogram.com/blog/2025/12/12/
8•ibobev•23m ago•0 comments

Smooth Scrolling on the Sega Master System

https://bumbershootsoft.wordpress.com/2025/12/13/smooth-scrolling-on-the-sega-master-system/
1•ibobev•24m ago•0 comments

Show HN: I built a service to fix NPM's email flood problem

https://npmdigest.com/
1•dgellow•24m ago•0 comments

What Happens When Pathogens Get Smaller Than Viruses? [video]

https://www.youtube.com/watch?v=KQHRmnTU1jw
1•mofosyne•27m ago•1 comments

Yale Shooting Problem

https://en.wikipedia.org/wiki/Yale_shooting_problem
1•mindcrime•28m ago•0 comments

Thirty Slices/Twenty-Four Days: How Christmas Was Saved by Abandoning Estimation

https://perladvent.org/2025/2025-12-13.html
1•oalders•29m ago•1 comments

What is the most effective way to learn programming?

1•luis_journey•29m ago•1 comments

El Salvador teams up with xAI to bring AI to 5k public schools

https://www.wral.com/story/el-salvador-teams-up-with-elon-musks-xai-to-bring-ai-to-5-000-public-s...
1•geox•32m ago•0 comments

Eliminating Second Seattle Rail Tunnel Could Save $4.5B, but with Major Impacts

https://www.theurbanist.org/2025/12/13/eliminating-second-seattle-rail-tunnel-could-save-4-5b-but...
2•starkparker•33m ago•0 comments

Show HN: LLMatcher – Find your perfect AI through blind voting

https://llmatcher.com/
1•joozio•34m ago•0 comments

Kids Rarely Read Whole Books Anymore. Even in English Class

https://www.nytimes.com/2025/12/12/us/high-school-english-teachers-assigning-books.html
9•signa11•38m ago•11 comments

Twitter Wrapped 2025 – Vibe coded

https://twitter-wrapped-25.vercel.app/
1•jglypt•41m ago•0 comments

Event2Vec – interpretable embeddings for event sequences

https://github.com/sulcantonin/event2vec_public
2•sulcan•43m ago•1 comments

Cyber Essentials Supply Chain Playbook

https://www.ncsc.gov.uk/information/cyber-essentials-supply-chain-playbook
2•mooreds•43m ago•0 comments

DevRel Is Back [video]

https://www.youtube.com/watch?v=eWMM4J_rfDg
1•mooreds•47m ago•0 comments

Claude Code Plugins

https://claude-plugins.dev/
2•mooreds•47m ago•1 comments

What's the point of lightweight code with modern computers?

https://liam-on-linux.dreamwidth.org/97426.html
3•signa11•49m ago•0 comments

The Trmnl (DIY Everything Edition)

https://taoofmac.com/space/reviews/2025/12/13/2200
2•rcarmo•54m ago•0 comments