frontpage.
newsnewestaskshowjobs

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!

Show HN: PortalKinetic – Clear your head and leave with one next move

https://www.portalkinetic.com
1•sprasain•1m ago•0 comments

Congress can but refuses to fix the antibiotic market

https://davidngo1562.substack.com/p/pioneering-antimicrobial-subscriptions
1•illidan1000•2m ago•0 comments

Decade of atmospheric data from Curiosity hints at amounts of surface water

https://phys.org/news/2026-11-decade-atmospheric-nasa-curiosity-rover.html
1•wglb•6m ago•1 comments

The Wong test: how to get agents to do anything, almost anything

https://cryptologie.net/posts/the-wong-test-how-to-get-agents-to-do-anything-almost-anything/
1•baby•7m ago•0 comments

Reflections on Trusting AI: A Virus Inside an LLM

https://phrack.org/issues/73/reflections-on-trusting-ai-a-virus-inside-an-llm_md
1•Alien1Being•8m ago•0 comments

The Terror Inside the AI Labs [video]

https://www.youtube.com/watch?v=MbhZd6s3P34
1•MrBuddyCasino•9m ago•0 comments

Escaping from a Docker container through vDSO

https://phrack.org/issues/73/escaping-from-a-docker-container-through-vdso_md
1•Alien1Being•10m ago•0 comments

Faster type-aware linting with tsrs

https://oxc.rs/blog/2026-11-17-faster-type-aware-linting-with-tsrs
1•bpierre•11m ago•0 comments

Free Quant Interview Practices

https://github.com/MikeLuu99/quant-practice
1•dluuuu•13m ago•0 comments

Atlassian: Young grads using AI can outperform managers

https://www.afr.com/technology/test-shows-graduates-using-ai-can-outperform-some-managers-atlassi...
1•Alien1Being•14m ago•0 comments

Show HN: An ASCII cell aquarium for your terminal

https://github.com/kborer/cells/
1•kborer•14m ago•1 comments

Evolving Infra: Agent-Adaptive LLM Serving at Scale

https://github.com/mit-han-lab/EvolvingInfra
1•fourfire•16m ago•0 comments

Some Nvidia directors push to bring Huang back despite board opposition

https://www.semafor.com/article/11/17/2026/some-nvidia-directors-push-to-bring-huang-back-despite...
2•mfiguiere•17m ago•1 comments

Did IBM originally plan to use the 68000 in the PC? (2020)

https://retrocomputing.stackexchange.com/questions/16912
2•thamiltonsmith•18m ago•0 comments

Can I borrow a lunar rover? (2013)

https://space.stackexchange.com/questions/2095
2•Skyfall106•19m ago•0 comments

In honor of Voyager reaching 1 light-day away

https://voyager-golden-record-virid.vercel.app
1•LinZaw•19m ago•0 comments

New Analysis of Epstein's Autopsy Challenges Official Cause of Death [video]

https://www.youtube.com/watch?v=tl9yUNqVZrQ
2•zug_zug•22m ago•0 comments

Amazon selects Pattinson as the next Bond

http://007.danieldeboulay.com
1•deboulaymxf•29m ago•1 comments

Lockheed Taps OpenAI to Solve F-35 Challenges

https://www.bloomberg.com/news/videos/2026-10-02/lockheed-taps-openai-to-solve-f-35-challenges-video
2•unknown-unknown•34m ago•0 comments

Show HN: I made a site showcasing The Elm Architecture in many other languages

https://tea.rinn7e.com/
1•rinn7e•37m ago•1 comments

HomeView Teardown: A Surprising Step Backward

https://www.ifixit.com/News/120317/homeview-teardown-a-surprising-step-backward
2•gnabgib•41m ago•0 comments

OpenAI is starting to panic [video]

https://www.youtube.com/watch?v=UcEtgDu2t4U
2•Bender•43m ago•1 comments

Show HN: Ferrovec Retrace – semantic search over pages you've read, all local

https://github.com/singhpratech/ferrovec/tree/main/extensions/retrace
3•aiexplore369•44m ago•0 comments

Staged Publishing on Nuget.org

https://devblogs.microsoft.com/dotnet/nuget-staged-publishing/
1•soheilpro•44m ago•0 comments

QuadGate – 4-gate control plane that keeps agent KV prefix caches warm SHow HN

https://github.com/blagoslov333-cloud/quadgate
1•blagoslov333•44m ago•0 comments

Cutting Web Audit Overhead by 92% with Agentic Chrome DevTools

https://developer.chrome.com/blog/policybazaar-agentic-audit
1•bqc•46m ago•0 comments

Bank CEOs, NSA Tell Congress That AI-Driven Patches Are Behind Outages

https://www.washingtonsun.com/technology/bank-ceos-nsa-tell-congress-ai-driven-patches-behind-out...
4•ryeights•47m ago•0 comments

Show HN: A Codenames-style wordgame that benchmarks LLMs

https://wordspies.com/hn
1•hardicecream•50m ago•1 comments

Show HN: Convert EML/MBOX mailboxes to PDF in the browser, no upload

https://mailtopdf.top/en
2•mainliufeng•53m ago•0 comments

Show HN: Spillway – HTTP API load testing on macOS

https://spillwayapp.com/
1•edwardaux•54m ago•0 comments