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!

Explain this to me like im 5 years old

https://laymans.vercel.app
1•wwolfson97•2m ago•0 comments

Client-side developer security tools that run with zero telemetry

https://envforge.aventinelabs.com
1•markbgilbert•3m ago•0 comments

Orionx Shutdown Raises Fresh Questions on Trust, Custody and Crypto Risk

https://predx-article.fika.bar/orionx-shutdown-raises-fresh-questions-about-trust-custody-01M1ZAE...
1•joeymabia1•11m ago•0 comments

Codex silently begs agents to make arbitrary web requests

https://spader.zone/wtf/
2•dboon•12m ago•0 comments

Cerebras's Laser Focus on Latency and Throughput

https://www.whatrunsai.com/research/cerebras
1•hmichaelson24•13m ago•1 comments

Wrangling blockchain RPC nodes, for dummies: Introducing Lasso

https://lasso.sh/
1•jaxernst•13m ago•1 comments

I Resigned from Anthropic Today

https://xcancel.com/hilbertspaess/status/2097476196791709843#m
10•yurivish•13m ago•0 comments

Source code for small iOS app to show real-time charge rate, thermals, etc.

https://github.com/gregsramblings/ios-charging-monitor
1•gw5815•14m ago•1 comments

Bessent Dares Traders to Bet Against Yen: 'I Am the House Now'

https://www.bloomberg.com/news/articles/2026-09-08/bessent-dares-traders-to-bet-against-yen-i-am-...
1•petethomas•17m ago•0 comments

Ask HN: Would you hire a new engineer, or get 300k worth of tokens for the team?

2•websap•18m ago•0 comments

A Harvard PhD Is Designing Schizophrenia Drugs in His Garage with ChatGPT and A

1•wslh•18m ago•0 comments

Show HN: Browser-based Nginx config generator with live preview

https://tools.techtransit.org/nginx-generator
2•techgpt•31m ago•0 comments

MCP for Official Wildfire Incidents

https://docs.deepfire.co/ai/connect-to-ai
2•louiscb•34m ago•0 comments

The universal language of space is Star Trek? Mais oui

https://arstechnica.com/space/2026/09/astronaut-on-iss-celebrates-60-years-of-star-trek-with-prop...
2•rbanffy•34m ago•0 comments

The Growing Push to Ban Superintelligent AI

https://time.com/article/2026/09/08/ban-superintelligence-ai-uk-us-lawmakers/
3•lf88•35m ago•2 comments

What I learned gathering nootropic ratings

https://web.archive.org/web/20260313002349/https://troof.blog/posts/nootropics/#most-famous-nootr...
1•bilsbie•35m ago•0 comments

Where Understanding Stops Scaling

https://medium.com/@gurvinder372/article-12-where-understanding-stops-scaling-59cf85b17875
1•gps372•40m ago•0 comments

ChatGPT Voice has been brutally nerfed

https://www.reddit.com/r/ChatGPT/s/J2nPKbPeQq
1•wslh•42m ago•0 comments

Bullshit arguments about AI (not) replacing jobs (2023)

https://imadrahmoune.com/bullshit-ai-argument/
2•imadr•43m ago•1 comments

Show HN: VolAnti – Open-source acoustic detector for fibre-optic FPV drones

https://github.com/agamrossen/VolAnti
3•agamrossen•46m ago•0 comments

The paradox at the heart of AI and science [video]

https://www.youtube.com/watch?v=svl_1upFpQo
1•jonbaer•46m ago•0 comments

iTerm2 v3.7.0 new iOS companion app, it2* utilities, Session Status API and more

https://iterm2.com/downloads.html
2•guessmyname•47m ago•0 comments

AI Has Solved One of Math's $1M Millennium Prize Problems

https://www.quantamagazine.org/ai-has-solved-one-of-maths-1-million-millennium-prize-problems-202...
2•sbulaev•47m ago•0 comments

Service Connectivity Issues in Canberra – Cloudflare Status

https://www.cloudflarestatus.com/incidents/htwds1qczkzd
2•kyisaiah47•52m ago•0 comments

Y-Chromosomal Adam

https://en.wikipedia.org/wiki/Y-chromosomal_Adam
1•mtdewcmu•53m ago•0 comments

Sloc Cloc and Code – Did I Just Get Buster Scrugged?

https://boyter.org/posts/did-i-just-get-buster-scrugged/
1•boyter•54m ago•0 comments

Do Durable Market Power Characteristics Predict Future Fundamentals and Returns? [pdf]

https://mplymoat.com/research/durable-market-power-stock-returns/paper.pdf
1•Heshamus•54m ago•0 comments

Chrome 153 ships camera and microphone HTML elements

https://webiterate.dev/capability-elements-camera-126/
2•twapi•58m ago•0 comments

Show HN: AI Stack Selector Tool

https://augmentorlabs.com/manifest
1•rohit0x04•1h ago•0 comments

Gradient.dog

https://gradient.dog
1•jobsstevesux•1h ago•0 comments