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

Find a pub that needs you

https://www.ismypubfucked.com/
1•thinkingemote•1m ago•0 comments

DoS Vulnerability in Node.js for React, Next.js, and APM Users

https://nodejs.org/en/blog/vulnerability/january-2026-dos-mitigation-async-hooks
1•glenjamin•1m ago•0 comments

Show HN: AI Mode API – Turn Big G's AI Mode into an API

https://aimodeapi.com/
1•Patt_•3m ago•0 comments

The ARM64 memory tagging extension in Linux

https://lwn.net/Articles/834289/
1•fanf2•3m ago•0 comments

Verifying State and Reconciliation in Collaborative Web Apps

https://midspiral.com/blog/verifying-state-reconciliation-in-collaborative-web-apps/
1•namin•4m ago•0 comments

How AI Saved Me 30 Minutes

https://rozumem.xyz/posts/11
1•rozumem•5m ago•0 comments

Open Security Controls Assessment Language (OSCAL)

https://github.com/usnistgov/OSCAL
1•saikatsg•6m ago•0 comments

How Iran Switched Off the Internet

https://www.ft.com/content/5d848323-84a9-4512-abd2-dd09e0a786a3
7•ViktorRay•7m ago•1 comments

Show HN: SheetsToLabels – Visual label designer for Google Sheets

https://sheetstolabels.com/
1•cvbox•8m ago•1 comments

OpenAI Codex team refuses to add hooks to Codex CLI

https://github.com/openai/codex/pull/2904
1•behnamoh•8m ago•0 comments

How to lose Western Allies in the Arctic 101

https://www.thearcticinstitute.org/how-lose-western-allies-arctic-101/
2•mooreds•8m ago•0 comments

Trump administration sends letter wiping out addiction, mental health grants

https://www.npr.org/2026/01/14/nx-s1-5677104/trump-administration-letter-terminating-addiction-me...
3•dpcx•9m ago•0 comments

Show HN: Dgdoc – Go Office Templating

https://github.com/dgmosdev/dgdoc
1•parevo•11m ago•0 comments

Ask HN: Amazon Robotics SDE new grad expectations

1•aroy21•12m ago•0 comments

Show HN: Yearly Calendar recap. Google and Outlook calendars only

https://actordo.com/yearly-calendar-recap/
1•websku•12m ago•0 comments

Show HN: Melker – Terminal UIs you can read before you run

https://melker.sh
1•ymodulo•13m ago•0 comments

UK's Open Cosmos beats Thiel-backed Rivada to European satellite licence

https://www.ft.com/content/8262dff8-38da-4230-855d-9b7da1bc1c36
1•alephnerd•16m ago•0 comments

Government drops plans for mandatory digital ID to work in UK

https://www.bbc.com/news/articles/c3385zrrx73o
3•FridayoLeary•16m ago•0 comments

I was placed in the "retarded" class in first grade

https://perens.com/2025/10/26/my-experience-with-being-handicapped-in-the-early-60s/
2•ogogmad•16m ago•1 comments

Show HN: YASP – Open-source, modern status page with full CMS control

https://yasp.io
9•soaringmonchi•18m ago•0 comments

Smelter: Babashka but for Coalton and Common Lisp

https://github.com/abacusnoir/smelter
2•wild_egg•19m ago•0 comments

Denmark sends military reinforcements to Greenland

https://www.dr.dk/nyheder/indland/groenland/efter-pres-fra-usa-danmark-er-nu-begyndt-sende-milita...
27•mooreds•19m ago•17 comments

Show HN: Browser extension to LeetCode easily on mobile

https://github.com/seancze/leetcode-on-the-go
1•seancze•19m ago•0 comments

We are living in a time of polycrisis. If you feel trapped – you're not alone

https://www.theguardian.com/wellness/2026/jan/14/new-year-polycrisis-psychology-feeling-trapped
1•n1b0m•20m ago•0 comments

Event-Mode Neutron Imaging Enables Isotope-Resolved, Time-of-Flight Radiography

https://www.lanl.gov/media/publications/1663/crystal-clear
1•LAsteNERD•20m ago•1 comments

When AI Procurement Fails, What Evidence Exists?

https://www.aivojournal.org/when-ai-procurement-fails-what-evidence-exists/
2•businessmate•21m ago•1 comments

Show HN: Control local CLI agents (Claude, Gemini, Copilot) via email

https://mailpilot.chat
1•keepamovin•21m ago•1 comments

Optimizing data throughput for Postgres snapshots with batch size auto-tuning

https://xata.io/blog/postgres-snapshots-with-batch-size-auto-tuning
1•eminano•22m ago•0 comments

A Rant About Stuttering Apps

https://datadriven.wrbl.xyz/pocket-supercomputer/
1•wrbl•22m ago•0 comments

Show HN: NeuroHTTP – AI HTTP server written in C/َAssembly

https://github.com/okba14/NeuroHTTP
1•oqba•22m ago•0 comments