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!

Fork-and-Flush: Escaping Idea Basins in Autoresearch Agents

https://arxiv.org/abs/2610.07447
1•matt_d•27s ago•0 comments

Stateless Language Agents: Scaling Long-Horizon Automated Research

https://arxiv.org/abs/2610.07625
2•matt_d•6m ago•0 comments

When should an agent own the control flow?

https://www.calm.rocks/blog/pipeline-vs-agent/
1•calmrocks•7m ago•1 comments

Trader Nets $1.28M on Papertrade as 1,000x Leverage Raises Risk Questions

https://coinmarketcap.com/community/post/380070089/
1•joeymabia1•8m ago•0 comments

PhoneBot: A Low-Cost Open Humanoid Robot Platform Reusing Smartphones

https://arxiv.org/abs/2610.08737
1•geox•8m ago•0 comments

Eliminating a gut microbe could slash gastric cancers (2024)

https://www.science.org/content/article/eliminating-gut-microbe-could-slash-gastric-cancers
1•rzk•8m ago•0 comments

J Spalletta Convicted for Defrauding Crypto Exchange of $50M in Hacks

https://www.justice.gov/usao-sdny/pr/jonathan-spalletta-convicted-defrauding-crypto-exchange-over...
1•Gaishan•9m ago•0 comments

AI Mentions Checker: Track Your Brand Visibility in AI Search

1•Scarlett5•12m ago•0 comments

NFL Big Data Bowl 2027

https://www.kaggle.com/c/nfl-big-data-bowl-2027
1•duck•14m ago•0 comments

Harpie – A local SSH key manager for Windows

https://github.com/HarpieDev/SSHKeyManager
1•Harpie•16m ago•0 comments

Why the Nobel Prize in Economics Went to Robert Hall and Michael Woodford

https://finshots.in/archive/why-the-nobel-prize-in-economics-went-to-robert-hall-and-michael-wood...
1•vismit2000•20m ago•0 comments

Show HN: Search for AI agents with usefulness score built in

https://github.com/Ayobamiu/usefulness-search
2•Ayobamiu•22m ago•0 comments

Subagents, Forks and Collapsing Context

https://arthur.place/subagents-forks-collapsing-context
1•arthurfiorette•22m ago•0 comments

dont Show HN:we made betr Moltbook alt thecollectives.dev social media/AI agents

https://www.thecollectives.dev/
2•nirav_rohra•30m ago•0 comments

OpenCode 2.0

https://anoma.ly/notes/opencode-2-0/
2•luispa•32m ago•1 comments

Can we change an AI model's architecture without retraining it from scratch?

https://www.amazon.science/blog/can-we-change-an-ai-models-architecture-without-retraining-it-fro...
1•qtqtqt•32m ago•0 comments

Barbed Wire Telephone: How Farmers Turned Fences into Phone Lines

https://commonplacefacts.com/2026/03/22/barbed-wire-telephone-network/
1•datas•32m ago•0 comments

Show HN: Malleable video editor that adapts to your workflow

https://github.com/iterative-computer/powermove
1•judekim0507•34m ago•0 comments

Show HN: vne – .env util for agents

https://github.com/pro-vi/vne
1•pro-vi•34m ago•1 comments

Show HN: ClaudeGuard – fixes the MSIX bug that nukes your Claude Code history

https://sidheart.gumroad.com/l/claudeguard
1•SifatAhmed•37m ago•1 comments

Show HN: RL environment for complex ML Development

https://blazerops.ai
1•jiminseo•42m ago•1 comments

Show HN: Askdown – A plain-text format for forms

https://askdown.dev/
4•treve•45m ago•3 comments

Cometlink: An old-school chat room you sign on to in the browser

https://cometlink.rip/
3•AfterHrsBuild•48m ago•0 comments

Leave your (Apple) watch at the door

https://jamespember.substack.com/p/leave-your-apple-watch-at-the-door
2•jep888•49m ago•0 comments

China's Weakening Economy Is Creating a Lost Generation

https://www.wsj.com/world/china-economy-gen-z-f9058941
4•kaycebasques•55m ago•2 comments

I used an AI QA agent to test Hacker News

https://hitest.ai/blog/demo-hacker-news
1•easilyjs•57m ago•0 comments

Show HN: Planning software for startup teams

https://weeklywe.com
1•aminaghakazemi•1h ago•0 comments

Ask HN: Now that AI makes the execution easy, do ideas matter more?

1•amichail•1h ago•1 comments

Is AI the End of Math as We Know It?

https://www.quantamagazine.org/is-ai-the-end-of-math-as-we-know-it-20261005/
1•maxall4•1h ago•1 comments

Leading Chinese mathematicians unite behind use of AI in research

https://www.scmp.com/news/china/science/article/3370492/leading-chinese-mathematicians-unite-behi...
3•E-Reverance•1h ago•0 comments