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: Drift

https://samuria.online/drift/
1•samuria•1m ago•0 comments

Tutorial: Python MCP Internal API > LLM

https://www.devclubhouse.com/a/ship-an-mcp-server-in-python-that-exposes-your-internal-api-to-llms
1•marcpope1•6m ago•0 comments

An Embedded Linux on a Single Floppy

https://github.com/w84death/floppinux
4•modinfo•10m ago•0 comments

How the US vs. Anthropic Standoff on Claude Fable Will End

https://futuresearch.ai/claude-fable-ban-forecast/
1•ddp26•13m ago•0 comments

Everyone got replaced [video][23 mins]

https://www.youtube.com/watch?v=WQyMujc7Vik
1•Bender•14m ago•1 comments

Show HN: BeamWeaver – LangChain/DeepAgents-style agents and workflows for Elixir

https://github.com/caudena/beam_weaver
1•caudena•14m ago•0 comments

Amazon Workers Say They're Under Investigation for Speaking About Data Centers

https://www.wired.com/story/amazon-workers-under-internal-investigation-after-speaking-out-about-...
3•1vuio0pswjnm7•18m ago•0 comments

Show HN: Mrs-Hybride-PQC – Hybrid Kyber1024 KEM 5-6x Faster Than HKDF-SHA256

https://github.com/A19dammer91/MRS-Hybride-PQC
1•A19dammer91•21m ago•0 comments

GLM-5.2: The Most Powerful Open Model yet and the Brutal Reality of Running It

https://vettedconsumer.com/glm-5-2-the-most-powerful-open-weight-model-yet-and-the-brutal-reality...
11•ermantrout•22m ago•0 comments

A modest proposal: Reformat everything to make documents more palatable to AI

https://www.theregister.com/ai-and-ml/2026/06/16/a-modest-proposal-reformat-everything-to-make-do...
2•gmays•23m ago•1 comments

Plop Linux

https://www.plop.at/en/ploplinux/index.html
1•modinfo•25m ago•0 comments

Prospective clinical study assumes one trial. What if there are two?

https://pubpeer.com/publications/A4D2D6AD194572CFA62BACD99C46D1
1•appleridge•26m ago•0 comments

Ask HN: Multi-LLM orchestration frameworks that collaborate?

1•ch3coohlink•28m ago•0 comments

CBC to stop airing NHL games after 74 years, end of free hockey on Canadian TV

https://www.theglobeandmail.com/sports/hockey/article-cbc-to-no-longer-air-nhl-hockey-ending-74-y...
3•1vuio0pswjnm7•33m ago•0 comments

Russian Dandelion plant offers solution to global rubber shortage

https://www.theguardian.com/science/2026/jun/17/plantwatch-russian-dandelion-solution-global-rubb...
1•oliculipolicula•36m ago•0 comments

Olympic Cyclist vs. Toaster: Can He Power It? [video]

https://www.youtube.com/watch?v=S4O5voOCqAQ
1•thunderbong•44m ago•0 comments

Apple allows alternative app stores, payments in Brazil

https://www.reuters.com/world/americas/apple-allows-alternative-app-stores-payments-brazil-after-...
1•virgulino•46m ago•0 comments

Coding Theory

https://en.wikipedia.org/wiki/Coding_theory
3•binyu•48m ago•0 comments

Went from zero interviews this year to landing 3 interviews this week

https://resume.metashark.io/
3•grantespo•48m ago•0 comments

AI has granted America new power

https://www.economist.com/leaders/2026/06/18/ai-has-granted-america-vast-new-power
2•andsoitis•50m ago•1 comments

Finally MCP's Tool Poisoning Gap Solved: A Protocol-Level Defense

https://github.com/modelcontextprotocol/modelcontextprotocol/discussions/2913
1•Raj_Sidwadkar•56m ago•0 comments

From Dream Job to 'The Gulag': Inside Staff Revolt Zuckerberg's Brutal AI Push

https://www.inc.com/bruce-crumley/from-dream-job-to-the-gulag-inside-the-meta-staff-revolt-over-z...
2•1vuio0pswjnm7•57m ago•1 comments

Datasette-apps: Apps that live inside Datasette

https://github.com/datasette/datasette-apps
2•doppp•1h ago•0 comments

Meta's AI agent for WhatsApp Business is now available globally

https://techcrunch.com/2026/06/03/metas-ai-agent-for-whatsapp-business-is-now-available-globally/
1•doppp•1h ago•0 comments

Datasette Apps: Host custom HTML applications inside Datasette

https://simonwillison.net/2026/Jun/18/datasette-apps/
23•lumpa•1h ago•6 comments

Observation is the layer under taste. We built it for AI runtime

https://twitter.com/damnventures/status/2067394719756251468
14•Cherepukhin•1h ago•0 comments

How to Build ChatGPT from Scratch: Understanding LLMs Step by Step

https://nextweekai.com/blog/build-chatgpt-from-scratch-guide/
1•javatuts•1h ago•0 comments

AI Governance Cannot Be a Tool Call

https://tenureai.dev/writing/ai-governance-cannot-be-a-tool-call/
5•jflynt76•1h ago•0 comments

Captcha audio going nuts (concerning) [video]

https://www.youtube.com/shorts/lbPwZyNsCR0
1•threaderr•1h ago•1 comments

What I Learned from Being Burned Alive

https://www.wsj.com/lifestyle/what-i-learned-from-being-burned-alive-95e91c88
4•Anon84•1h ago•1 comments