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!

Turn and Face the Strange

https://fly.io/blog/kurt-scott-money-sprites/
1•karimf•2m ago•0 comments

Show HN: PartSense – Smart inventory and BOM management for hardware labs

https://partsense.app
1•loicd31•5m ago•0 comments

Show HN: AI Meter – Local token usage with energy and water estimates

https://ai-meter.app
1•zeko1195•5m ago•0 comments

Names with the largest count in their first appearance on the national list

https://nobodynamed.com/viz/debut-of-the-year
1•michaelcolenso•5m ago•1 comments

Can AI Run a Food Truck Business?

https://foodtruckbench.com
1•handfuloflight•6m ago•0 comments

Kimi K3's Design Secret May Be in Its Thinking Traces

https://notes.designarena.ai/kimi-k3s-design-secret-may-be-in-its-thinking-traces/
2•giuliomagnifico•7m ago•0 comments

Classical Acceptance Is Not Hybrid Authentication: Measuring X.509 Verifier

https://arxiv.org/abs/2607.20800
1•sbulaev•10m ago•0 comments

Black Perl

https://en.wikipedia.org/wiki/Black_Perl
1•thunderbong•10m ago•0 comments

Japanese Firm to Train Robot with AI to Reproduce Runners' Movements

https://japannews.yomiuri.co.jp/science-nature/technology/20260403-320199/
1•mushstory•12m ago•0 comments

Setting up a remote environment for agentic coding on a VPS

https://ma.ttias.be/remote-coding-environment-vps/
1•nreece•14m ago•0 comments

Cut Token Costs in Half

https://tokenkits.vercel.app
1•mattmerrick•23m ago•0 comments

IT Atlas

https://www.levels.fyi/atlas
2•trekhleb•28m ago•0 comments

Show HN: RMCP.dev – An MCP server that finds other MCP servers

https://rmcp.dev/
1•garazy•29m ago•0 comments

Fountible: Agentic Figma

https://fountible.com/
1•handfuloflight•30m ago•0 comments

Reddit Calls Anthropic a 'Freeriding Pirate'

https://runtimewire.com/article/reddit-calls-anthropic-a-freeriding-pirate-and-cites-ruling-behin...
2•ryanmerket•31m ago•0 comments

Starship's Thirteenth Test Flight

https://www.spacex.com/launches/starship-flight-13v
1•JumpCrisscross•32m ago•0 comments

Hannah Fry Wins the Leelavati Prize in 2026 for Mathematics Outreach

https://www.maths.cam.ac.uk/features/professor-hannah-fry-wins-leelavati-prize
2•agnishom•33m ago•0 comments

US moves to regulate hidden car handles

https://www.semafor.com/article/07/23/2026/us-moves-to-regulate-hidden-car-handles
2•jmsflknr•36m ago•0 comments

Show HN: Maps of >100 theories for how society works inc. Graham / Thiel / Smith

https://society.clearerthinking.org/
1•bestOfSocrates•37m ago•0 comments

IBM Acquiring HRL Laboratories

https://newsroom.ibm.com/2026-07-23-ibm-to-acquire-hrl-laboratories-to-power-the-future-of-quantum
1•osnium123•38m ago•2 comments

Midjourney Releasing v8.2

1•endmund•46m ago•1 comments

Pliny the Liberator claims universal jailbreak of models

https://twitter.com/elder_plinius/status/2080767011614015543
2•dnw•49m ago•1 comments

Trump's Plan for Science: More Money for A.I., Less for Universities

https://www.nytimes.com/2026/07/22/us/politics/trump-research-funding-artificial-intelligence.html
4•cratermoon•55m ago•1 comments

22 Years of Rails

https://twitter.com/rails/status/2080580838530355432
1•vinnyglennon•1h ago•0 comments

Show HN: Codebeat – turn any function into a song (no signup)

https://www.codedswitch.com/codebeat
1•Asume21•1h ago•0 comments

A Great Deal of Information About Hacker News

https://vale.rocks/posts/hacker-news
2•OuterVale•1h ago•0 comments

Show HN: Jolta – Automatic per-project JDK switching (like Volta, for Java)

https://oneappplatform.github.io/jolta/
1•pdxdave•1h ago•0 comments

Ukraine' Simple But Effective Protection Against Russian Starlink Jamming (2023)

https://www.technology.org/2023/08/01/did-russia-learn-to-jam-starlink-satellites-ukraine-is-alre...
5•pinkmuffinere•1h ago•0 comments

Exercise Erased Half the Molecular Signature of Muscle Aging

https://www.gethealthspan.com/research/article/exercise-molecular-signature-muscle-aging?zp_type=...
2•bilsbie•1h ago•1 comments

Evaluation of a pentapropellant upper stage (1970) [pdf]

https://ntrs.nasa.gov/api/citations/19700022572/downloads/19700022572.pdf
3•Eridanus2•1h ago•0 comments