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!

Inflation is being driven up by investment in artificial intelligence

https://www.washingtonpost.com/technology/2026/06/06/inflation-is-being-driven-up-by-huge-investm...
1•reaperducer•43s ago•0 comments

Demystifying phone unlocking tools: A technical overview

https://osservatorionessuno.org/blog/2026/05/demystifying-phone-unlocking-tools-a-technical-overv...
1•boroaldo•1m ago•0 comments

"Sad to see Ted Chiang resorting to such bad arguments in this piece."

https://twitter.com/robertwiblin/status/2062479838879826387
1•Ariarule•4m ago•0 comments

Using Clause for Moodle content creation

https://ilite.substack.com/p/i-built-a-university-course-in-10
1•seanmarx69•4m ago•0 comments

The Largest Floating Dry Dock Was Towed Across the Atlantic to Bermuda in 1869

https://mastermariners.org.au/stories-from-the-past/6481-the-world-s-largest-floating-dry-dock-wa...
1•dtj1123•5m ago•0 comments

Trackr Bar – a macOS menu bar app for tracking AI usage and costs

https://www.trackr.bar/
2•jonaskamner•6m ago•0 comments

Average cost of living, anywhere on Earth

https://www.averagecostof.living/
3•azeemkafridi•10m ago•0 comments

Arc v0.0.2-alpha – Release Notes

https://github.com/VxidDev/Arc/releases/tag/v0.0.2-alpha
4•VoidDev•10m ago•0 comments

Are you there Grok?: AI as a centralizing technology

https://www.theargumentmag.com/p/are-you-there-grok-its-me-margaret
3•firasd•11m ago•0 comments

Running Python code in a sandbox with MicroPython and WASM

https://simonwillison.net/2026/Jun/6/micropython-in-a-sandbox/
4•theanonymousone•12m ago•1 comments

The Hardware Behind AI

https://www.pathtostaff.com/p/unpacking-ai-the-hardware-behind
3•sidwyn•16m ago•0 comments

Roblox Released the Biggest AI World Model in Gaming. Everyone Hates It

https://kuber.studio/blog/AI/Roblox-Released-the-Biggest-AI-World-Model-in-Gaming.-Everyone-Hates...
3•kuberwastaken•21m ago•0 comments

Multi-Robot Cooperative Spatial Reasoning with Multimodal Large Language Models

https://arxiv.org/abs/2605.18431
2•yogthos•22m ago•0 comments

Revenge of the AI Bubble

https://www.axios.com/2026/06/06/ai-bubble-economy-growth
3•1vuio0pswjnm7•25m ago•0 comments

If LLMs Have Human-Like Attributes, Then So Does Age of Empires II

https://arxiv.org/abs/2605.31514
2•gekoxyz•25m ago•0 comments

Auburn college student missing in Japan argued with mom over ChatGPT usage

https://www.cbsnews.com/news/james-weston-higginbotham-missing-japan-mom-chatgpt/
2•llboston•26m ago•0 comments

Benchmarks in Leipzig

https://arxiv.org/abs/2606.05818
19•root-parent•27m ago•9 comments

Arc Fusion Power Plant Physics Basis

https://www.cambridge.org/core/journals/journal-of-plasma-physics/collections/arc-fusion-power-pl...
2•mpweiher•27m ago•0 comments

Ask HN: Were CS profs right to look down on programming in light of modern AI?

3•amichail•28m ago•1 comments

The First SMS Message

https://spacedaily.com/d-on-december-3-1992-a-22-year-old-british-software-engineer-named-neil-pa...
3•ultratalk•31m ago•0 comments

CreatorL.ink Now Live

https://creatorl.ink
3•BiltlyAdm•33m ago•1 comments

Fooling Go's X.509 Certificate Verification

https://danielmangum.com/posts/fooling-go-x509-certificate-verification/
3•hasheddan•35m ago•0 comments

Better Prompting LLMs Through Analogies

https://thecodeartist.github.io/better-prompting-llms-using-analogies/
3•cvs268•38m ago•0 comments

Show HN: Facebook cover photo resizer that shows the mobile crop before upload

https://allimgtools.app/resize/for-facebook-cover
2•samidurbar•38m ago•0 comments

Smack – AI personas that run UX tests on any URL local

https://smck.ai/
2•adiv_maimon•42m ago•0 comments

FokosDB: Strongly consistent storage DB ontop of Cloudflare Durable Objects

https://www.lambrospetrou.com/articles/fokosdb/
2•jicea•42m ago•0 comments

I built a black-and-white e-ink display to stop checking my phone 60 times a day

https://old.reddit.com/r/webdev/comments/1tyabcg/i_built_a_blackandwhite_eink_display_so_id_stop/
4•taubek•46m ago•0 comments

US House lawmakers release draft bill to prohibit state AI rules

https://www.reuters.com/business/us-house-lawmakers-release-draft-bill-regulate-ai-2026-06-04/
5•1vuio0pswjnm7•47m ago•0 comments

Instead of Taking Your Job, A.I. Might Transform It

https://www.newyorker.com/culture/open-questions/instead-of-taking-your-job-ai-might-transform-it
2•fortran77•48m ago•1 comments

SETI Panel Revises Recommendations for Dealing with 'Disclosure Day'

https://www.universetoday.com/articles/seti-panel-revises-recommendations-for-dealing-with-disclo...
2•root-parent•48m ago•1 comments