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: HackerBa – Hacker News with a Baidu Tieba UI

https://github.com/sha2kyou/HackerBa
1•sha2kyou•28s ago•0 comments

Ask HN: How do you handle iOS app submissions?

1•tedmundy•1m ago•0 comments

Suggestions on how to develop a tech recruitment platform using Claude?

1•zerodollar•2m ago•0 comments

Context Engineering in an LLM Harness

https://udnes.dev/posts/context-engineering-harness-part-1-ontology/
2•udnes•2m ago•0 comments

Mark Zuckerberg Blasts Centralization of A.I. Power

https://www.nytimes.com/2026/07/28/technology/mark-zuckerberg-meta-ai.html
1•danielcallahan•5m ago•0 comments

Show HN: Clark code – open-source IDE for OSS coding and free tier

https://github.com/clark-labs-inc/clark-code
1•stan_kirdey•5m ago•1 comments

The Code Review Paradox

https://dromeas.ai/blog/pr-vs-trunk-what-code-review-actually-looks-like
1•manos-saratsis•5m ago•1 comments

AMD Instinct Coder

https://www.amd.com/en/ecosystem/oem/supermicro/amd-instinct-coder.html
1•narism•6m ago•0 comments

Test

https://www.google.com/
1•snikolaev•6m ago•1 comments

The Three-Stroke Problem

https://penpot.app/blog/the-three-stroke-problem/
1•elenathor•10m ago•0 comments

How can a junior dev get better when they have to use AI in their job?

1•yogesharc•13m ago•1 comments

Finding the right price for a weather API

https://www.meteosource.com/blog/weather-api-pricing
1•Thunder_rumbles•14m ago•0 comments

Kikuha – A privacy-first, zero-tracking social network built with Flask and Htmx

https://kikuha.com/
1•koniakAra•22m ago•0 comments

Grokipedia stopped updating three months ago

https://www.lawfaremedia.org/article/grokipedia-stopped-reviewing-edits-in-april.-it-didn-t-tell-...
2•BlueBerry2001•24m ago•0 comments

Servers can be backdoored by exploiting buggy motherboard controll

https://arstechnica.com/security/2026/08/thousands-of-servers-can-be-backdoored-by-exploiting-bug...
1•joozio•25m ago•0 comments

Fedora Approves a Smaller Grub

https://lwn.net/Articles/1085609/
2•pykello•30m ago•0 comments

A Vision for Cargo

https://epage.github.io/blog/2026/08/cargo-vision/
1•ingve•30m ago•0 comments

Mathematicians make a breakthrough on Gauss's riddle, unsolved for 200 years

https://www.scientificamerican.com/article/mathematicians-make-a-breakthrough-on-gausss-riddle-un...
1•pykello•31m ago•0 comments

For Chinese LLMs, do you care about mainland-hosted vs. overseas endpoints?

https://api.realitypatch.net/
1•yangzhou-tech•34m ago•0 comments

Meta's Mac Coding Agent Costs Up to 20x Less If You Let It Train on Your Data

https://www.macrumors.com/2026/08/05/meta-muse-code-for-mac/
1•thm•35m ago•0 comments

Journey to Robbers Cave – Behavioral Scientist

https://behavioralscientist.org/journey-to-robbers-cave/
1•pulkonet•37m ago•0 comments

I built a postpartum recovery app after reading many stories from new mothers

https://play.google.com/store/apps/details?id=com.matrabloom.app&hl=en_IN
1•rahulsinghhh•40m ago•0 comments

Obsidian debuts Airtable to local Markdown file importer rescue tool

https://obsidian.md/help/import/airtable
1•thoughtpeddler•42m ago•0 comments

Dissection of Flock Safety Camera

https://www.cehrp.org/dissection-of-flock-safety-camera/
1•sandebert•42m ago•0 comments

Let's all meet up in the Y2K

https://blog.gingerbeardman.com/2026/08/06/lets-all-meet-up-in-the-y2k/
2•msephton•44m ago•0 comments

Design Test

1•ccbakla•45m ago•0 comments

You Can't Optimize for Rest (2021)

https://theconvivialsociety.substack.com/p/you-cant-optimize-for-rest
1•downbad_•45m ago•0 comments

Own-Goal Football (2022)

https://generalist.academy/2022/06/07/own-goal-football/
2•downbad_•45m ago•0 comments

The American Age in the Persian Gulf Is Over

https://phillipspobrien.substack.com/p/midweek-update-22-the-american-age
2•JumpCrisscross•47m ago•0 comments

Britain will soon be Europe's energy powerhouse

https://www.telegraph.co.uk/business/2026/08/04/britain-will-soon-be-europes-energy-powerhouse/
1•sbyse•52m ago•1 comments