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

New map shows where electric truck charging is scaling

https://electrek.co/2026/05/08/new-map-electric-truck-charging-is-scaling/
1•Bender•2m ago•0 comments

¡Hola, soy DORA. Why hasn't AI improved my metrics?

https://www.vaines.org/posts/2026-05-09-why-hasnt-ai-improved-my-metrics/
1•gpi•4m ago•0 comments

UK wants fresh fingerprints on £300M biometrics platform

https://www.theregister.com/public-sector/2026/05/09/uk-wants-fresh-fingerprints-on-300m-biometri...
1•Bender•12m ago•0 comments

The new Wild West of AI kids' toys

https://www.wired.com/story/the-new-wild-west-of-ai-kids-toys/
1•Bender•12m ago•0 comments

AI Productivity Fails

https://blog.sshh.io/p/how-ai-productivity-fails
3•sshh12•22m ago•0 comments

You Need AI That Reduces Maintenance Costs

https://www.jamesshore.com/v2/blog/2026/you-need-ai-that-reduces-your-maintenance-costs
1•cratermoon•25m ago•0 comments

PS3 Emulator Devs Politely Ask That People Stop Flooding It with AI PRs

https://kotaku.com/playstation-3-emulator-devs-politely-ask-that-people-stop-flooding-it-with-ai-...
12•stalfosknight•28m ago•0 comments

Usein

1•USEIN•30m ago•0 comments

Rep. Crane Introduces Legislation to Pause and Reform the Broken H-1B Visa

https://crane.house.gov/2026/04/22/rep-crane-introduces-legislation-to-pause-and-reform-the-broke...
3•rawgabbit•32m ago•0 comments

Zero-native by Vercel: Build tiny desktop and mobile apps with Zig and web UI

https://github.com/vercel-labs/zero-native
1•maxloh•44m ago•0 comments

Antikythera Mechanism (oldest known analogue computer)

https://www.historyofinformation.com/detail.php?id=120
2•p0u4a•47m ago•0 comments

Show HN: Gawk Dev – live feed tracking what's happening across AI tools

https://gawk.dev
1•Srinathprasanna•48m ago•0 comments

You can have your composer.lock and not make others eat it too

https://kevinullyott.com/blog/2026-05-05-composer-lock-gitattributes/
1•orrison•55m ago•0 comments

Riding the D in Los Angeles: city hopes new subway stations will be game changer

https://www.theguardian.com/us-news/2026/may/09/los-angeles-subway-public-transportation
4•raybb•55m ago•0 comments

Running local models on an M4 with 24GB memory

https://jola.dev/posts/running-local-models-on-m4
25•shintoist•56m ago•9 comments

The Mythology of Rice and Beans

https://economistwritingeveryday.com/2024/12/13/the-mythology-of-rice-and-beans/
1•ksymph•59m ago•0 comments

How Fast Does Claude, Acting as a User Space IP Stack, Respond to Pings?

https://dunkels.com/adam/claude-user-space-ip-stack-ping/
2•adunk•1h ago•0 comments

ReactOS ARM64-port finally boots to desktop and even works

https://www.youtube.com/watch?v=c1LjnFKGDhQ
2•jeditobe•1h ago•1 comments

Canada admits bill C-22 would allow govt to secretly order microphone activation

https://xcancel.com/rebelprazz/status/2053606378238009832#m
7•CGMthrowaway•1h ago•1 comments

Time Lock Encryption Oracle

https://timelock.sh
3•leishman•1h ago•1 comments

Proprioception

https://en.wikipedia.org/wiki/Proprioception
3•andsoitis•1h ago•0 comments

Why DC's Metro Wants to Automate Its Trains

https://www.bloomberg.com/news/articles/2026-05-07/dc-s-metro-makes-a-case-for-driverless-red-lin...
2•raybb•1h ago•0 comments

I'm Leaving Gemini for Tax Reasons

3•liamOR•1h ago•2 comments

Ask HN: Can you make money from writing short stories with the help of AI?

2•amichail•1h ago•3 comments

ELIZA: A Computer Program for the Study of Natural Language Communication [pdf]

https://hackaday.com/wp-content/uploads/2024/02/WEIZENBAUM-1966-ELIZA-A-Computer-Program-For-the-...
3•tcp_handshaker•1h ago•1 comments

Ask HN: What are some good resources on AI Engineering and Prompting

6•mraza007•1h ago•3 comments

Show HN: I trained a chess engine to play like humans

6•hazard•1h ago•0 comments

I run a company with 30 engineers. Built this app with AI and none of them

https://footbeen.com/blog/i-built-a-production-app-with-ai-no-developers
3•dmgmyza•1h ago•0 comments

Frankfurt expands commercial EV fleet with 10 new vocational trucks

https://electrek.co/2026/05/10/frankfurt-expands-commercial-ev-fleet-with-10-new-vocational-trucks/
2•breve•1h ago•0 comments

Large-Scale Photogrammetric Documentation of St. John's Co-Cathedral [pdf]

https://mkenely.com/publications/preprints/large-scale-photogrammetric-st-johns.pdf
2•andsoitis•1h ago•0 comments