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!

House Prices Are Falling and We Haven't Solved the Problem of Restrictive Zoning

https://cepr.net/publications/house-prices-are-falling-and-we-havent-solved-the-problem-of-restri...
1•miguelazo•1m ago•0 comments

A Russian phone number, WhatsApp, and 140 outbound SSH alerts

https://nox.sh/posts/whatsapp-tunnel-out/
1•mattredact•2m ago•0 comments

Run the AI Studio deletion test to show the chat isn't deleted

https://discuss.ai.google.dev/t/please-help-do-the-ai-studio-delete-test-so-we-can-prove-that-goo...
1•Bitu79•4m ago•0 comments

Hope and Defeat: John Berger

https://newleftreview.org/sidecar/posts/hope-and-defeat
1•apollinaire•5m ago•0 comments

T-Mobile down for users in US

https://www.reuters.com/business/media-telecom/t-mobile-down-thousands-users-us-downdetector-show...
1•alacritas0•6m ago•0 comments

Is human writing obsolete in the age of LLMs?

http://gtowey.blogspot.com/2026/07/is-human-writing-obsolete-in-age-of-llms.html
1•gtowey•6m ago•0 comments

WorldFrame – Local-first worldbuilding in Markdown

https://tryworldframe.com/
1•SturdyRobot•7m ago•0 comments

JSON vs. PROMPT distinction – Google's misleading claim

https://discuss.ai.google.dev/t/json-vs-prompt-distinction-google-s-misleading-claim/170679
1•Bitu79•7m ago•0 comments

Private Credit State Backstop How Private Equity Socializes Risk Through Insure

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=7152239
1•senshan•7m ago•1 comments

Claude no longer shows full thinking

https://old.reddit.com/r/ClaudeAI/comments/1v3u707/no_longer_shows_full_thinking/
1•rzk•8m ago•0 comments

Google illegally retains customer data,and I am taking legal action against them

https://discuss.ai.google.dev/t/google-illegally-retains-customer-data-and-i-am-taking-legal-acti...
1•Bitu79•10m ago•1 comments

Show HN: Open-sourcing my personal market research

https://research.oguzbilgic.com
1•obilgic•13m ago•0 comments

X Money

https://money.x.com
1•acmnrs•14m ago•0 comments

Attention Decode on AMD MI450 GPUs: A Gluon Kernel Optimization Guide

https://rocm.blogs.amd.com/software-tools-optimization/gluon-attention-decode-mi450/README.html
1•matt_d•14m ago•0 comments

Google search API replacement costs minimum $30k/year

https://old.reddit.com/r/googlecloud/comments/1qilhrg/is_googles_custom_search_api_being_disconti...
1•meltyness•14m ago•0 comments

From GPT2 to Kimi3

https://twitter.com/waterloo_intern/status/2081762065392541951
1•haritha1313•17m ago•0 comments

OpenOTP – Your email verification codes, autofilled on your Mac

https://github.com/jeninh/openotp
1•jeninh•21m ago•1 comments

Redact a PDF in the browser: the text is removed, not covered

https://still-wildflower-dc6f.akdmediax.workers.dev/vaultpdf/
1•akdvault•21m ago•0 comments

The State of Simulation for Physical AI: An Overview

https://huggingface.co/blog/nvidia/state-of-simulation-for-physical-ai
1•gmays•23m ago•0 comments

New York City Halts Construction at Another Office-to-Residential Conversion

https://www.wsj.com/real-estate/new-york-city-halts-construction-at-another-office-to-residential...
1•RestlessMind•24m ago•0 comments

Gemini was on the list of tools Google engineers are banned from using

https://timesofindia.indiatimes.com/technology/tech-news/google-founder-sergey-brin-found-out-usi...
2•Cider9986•26m ago•0 comments

Show HN: PromptTrace – Free hands-on labs to practice hacking LLMs

https://prompttrace.airedlab.com
1•k4r1it0•27m ago•0 comments

Lattice Semiconductor Completes Acquisition of BIOS Maker AMI

https://www.techpowerup.com/351114/lattice-semiconductor-completes-acquisition-of-ami
1•throw0101a•31m ago•0 comments

OpenAI, Google, and Anthropic Absent from Nvidia-Led Open Secure AI Alliance

https://www.tomshardware.com/tech-industry/artificial-intelligence/openai-google-and-anthropic-ab...
1•sbulaev•34m ago•0 comments

Don't ask an LLM for a confidence score

https://justinflick.com/2026/07/27/llm-confidence-scores.html
1•pamplemeese•34m ago•0 comments

Surveillance Is Trying to Be Sexy

https://www.hardresetmedia.com/p/surveillance-is-trying-to-be-sexy
3•theworkeragency•35m ago•0 comments

Admiral cloudberg: New article coming soon, and a teaser

https://admiralcloudberg.medium.com/progress-update-new-article-coming-soon-and-a-teaser-24f9093c...
1•mathgenius•38m ago•0 comments

Did an AI Really Hack Hugging Face? [video]

https://www.youtube.com/watch?v=q2KCrmQz9WE
1•marvinborner•40m ago•0 comments

Where USB Memory Sticks Are Born

https://www.bunniestudios.com/blog/2013/where-usb-memory-sticks-are-born/
1•jacquesm•41m ago•0 comments

An Angry Spark, or a Triangle in Disguise?

https://medium.com/@billmarczak/an-angry-spark-or-a-triangle-in-disguise-ac32852a1be3
1•campuscodi•43m ago•0 comments