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: Thyme – A New AI-Based App Reverse Engineering Tool

https://apppipeline.online/
1•neocanable•25s ago•0 comments

Long-Gone Newspaper Was the Best Job I Ever Had

https://tedium.co/2026/10/05/link-newspaper-virginian-pilot-remembrance/
1•rdmuser•3m ago•0 comments

PHPStan 2.3: Leap in Performance, Generics, Detecting Unused Variables

https://phpstan.org/blog/phpstan-2-3-leap-in-performance
1•Y-bar•3m ago•0 comments

Ask HN: Alternatives to NeurIPS, ICLR and ICML

1•john-titor•4m ago•0 comments

New repository settings for configuring pull request access

https://github.blog/changelog/2026-02-13-new-repository-settings-for-configuring-pull-request-acc...
1•Bluestein•4m ago•0 comments

Ask HN: Would you pay for saving AI cost?

1•berdayaai•5m ago•0 comments

Proof-Carrying-BPF Programs for the eBPF Verifier

https://al.radbox.org/doi/10.1145/3837779.3838158
1•matt_d•7m ago•0 comments

Show HN: YardSmart – a simpler way to rent construction equipment locally

https://yardsmart.io
1•oscar417•10m ago•0 comments

Effects of creatine supplementation with and without exercise

https://pubmed.ncbi.nlm.nih.gov/42578920/
1•tosh•12m ago•0 comments

Big Blob of Compute: The Essay That Started the AI Race

https://kevinroose.substack.com/p/the-essay-that-started-the-ai-race
1•danielmorozoff•15m ago•0 comments

Schelling-Based Adjudication on Solana

https://useaccord.xyz/
1•xeroc•16m ago•0 comments

We are going to kill "unalive"

https://www.anildash.com/2026/10/06/kill-unalive/
2•Tomte•17m ago•0 comments

Apple Is Now Fucked

https://www.youtube.com/watch?v=jnQBhiipsQM
2•cable2600•17m ago•0 comments

Autolith: A self-modifiable general purpose Lisp AI agent

https://github.com/lambda-symbolics/autolith
2•long____cat•17m ago•0 comments

Jev vs. Clef

https://twitter.com/sztwiorok/status/2107356946844070190
4•sztwiorok•20m ago•1 comments

Afterr

https://afterr.org
1•CurtisDarzee•23m ago•0 comments

Warren McCollough on Neural Nets [video]

https://www.youtube.com/watch?v=wawMjJUCMVw
1•_doctor_love•29m ago•0 comments

Global diesel crunch sends cost pressures down the supply chain

https://www.oxfordeconomics.com/resource/global-diesel-crunch-sends-cost-pressures-down-the-suppl...
1•geox•33m ago•0 comments

OpenAI Does Not Trust Its Own Models, and Rightly So

https://www.vincentschmalbach.com/openai-does-not-trust-its-own-models/
1•vincent_s•34m ago•0 comments

Show HN: Open-source iPhone app that streams Claude like the Siri app

https://github.com/unionst/swift-chat-ai-starter
1•blsage•35m ago•0 comments

The ride that will bankrupt you

https://melvynschobel.substack.com/p/the-alto-line-the-ride-that-will
1•dorygold•35m ago•0 comments

Sentry: Learning to Recover from LLM Agent Failures at Test Time

https://github.com/nuglifeleoji/Sentry
1•matt_d•40m ago•0 comments

Our minds aren't equipped to handle AI

https://www.theverge.com/ai-artificial-intelligence/1003794/ai-education-computational-model-thought
3•zishha1b0njq•42m ago•1 comments

DeepSeek to Raise at Least $12B in Tencent-Backed Funding

https://www.bloomberg.com/news/articles/2026-10-06/deepseek-to-raise-at-least-12-billion-in-tence...
4•doppp•47m ago•0 comments

We are making Markdown files work natively across Google Drive and Docs

https://twitter.com/ChanduThota/status/2107195115441946850
1•tosh•47m ago•0 comments

RobotUse

https://robotuse-team.github.io/
1•ilreb•48m ago•0 comments

Pace your Claude-code to avoid hitting limits

https://github.com/RahulBalakavi/cc-limit-pacer
1•rahul_ampup•48m ago•0 comments

Hey Micro

https://heymicro.org/
1•asim•51m ago•0 comments

Mulligan: Performance-Guided Data Collection for Efficient On-Robot Learning

https://mulligan.page/
1•ilreb•53m ago•0 comments

Running Monte Carlo Simulations on Prediction Markets

https://www.vivienhenz.com/monte-carlo-pricer
1•signa11•54m ago•0 comments