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!

Customs asked for his phone passcode. Now he faces a felony

https://www.ajc.com/news/2026/08/stop-cop-city-activist-in-atlanta-mired-in-federal-case-after-ai...
1•senshan•11s ago•1 comments

AI Boosted Homework Scores by 18% – Then Exam Scores Dropped 20%, Study Shows

https://canews24.online/?p=71
1•Edymilson•21s ago•0 comments

Rust – Enabling the next-generation trait solver on nightly

https://blog.rust-lang.org/2026/08/21/enabling-next-solver-on-nightly/
1•afdbcreid•1m ago•0 comments

AGY Memory Engine: Zero-dependency SQLite FTS5 fact store and MCP server

https://github.com/sbolten/agy-memory-engine
1•sbolten•1m ago•0 comments

Cancer-Related Mortality Among US Pilots and Flight Attendants

https://jamanetwork.com/journals/jamainternalmedicine/article-abstract/2852504
2•jader201•2m ago•0 comments

Skill: JSON-LD Schema Generator: schema.org structured data markup

https://www.skills.sh/onlineinference/json-ld-schema-generator/json-ld-schema-generator
1•OnlineInference•3m ago•0 comments

Generating .nfo Files

https://cleberg.net/blog/nfogen.html
1•emmettbt•3m ago•0 comments

The Last 20%

https://vpetersson.com/2026/08/21/the-last-20-percent/
2•mvip•4m ago•0 comments

Show HN: AgentSight – eBPF observability for AI agents, no code changes

https://github.com/alibaba/anolisa/blob/main/docs/user-guide/en/agent-observability/agentsight.md
1•forrestly•4m ago•0 comments

The B-right/V R2 Operating System

http://tronweb.super-nova.co.jp/b-right-vr2intro.html
2•Bluestein•5m ago•0 comments

The Quest for Caffeine You Can Have at Night

https://www.astralcodexten.com/p/the-quest-for-caffeine-you-can-have
1•surprisetalk•5m ago•0 comments

Show HN: A desktop fly drawn to the scent of vibecode

https://github.com/kulikov0/desktop-vibe-fly
2•kulikov0•7m ago•0 comments

TRON Keyboard

https://en.wikipedia.org/wiki/BTRON
1•Bluestein•7m ago•0 comments

I ran Photoshop on a £0.60 computer chip

https://pointinthecloud.com/2026-08-19-144600.html
1•colinprince•8m ago•0 comments

First complete songbird genome reveals hidden biology

https://www.rockefeller.edu/news/40239-first-complete-songbird-genome-reveals-hidden-biology/
1•gmays•8m ago•0 comments

Felony Bench

https://www.felonybench.com/
1•colinprince•8m ago•0 comments

Programming Language Semantics and Memory Safety

https://burakemir.ch/post/formal-semantics/
1•burakemir•9m ago•0 comments

Coding Agents killed my identity. How do you feel?

3•bah9•10m ago•0 comments

c100

https://caligra.com/c100/
4•tosh•11m ago•0 comments

Show HN: MindShield v1.1.5 – Local AI guardrails tuned to reduce false positives

https://github.com/fluryjanis/Mind-Shield
1•Frog1230•12m ago•0 comments

The Productivity Panic

https://jamesjboyer.substack.com/p/beautiful-irrelevant-things
1•aesthetics1•12m ago•0 comments

You're Not a Universal Mosquito Magnet

https://nautil.us/youre-not-a-universal-mosquito-magnet-1284049
1•Brajeshwar•12m ago•0 comments

(Rust) Type System Chess

https://github.com/Dragon-Hatcher/type-system-chess
1•aarestad•13m ago•0 comments

Mid-90s E3 and CES Trade Show Tapes

https://brianpeek.com/e3-ces-tapes/
2•speckx•13m ago•0 comments

A single well aimed cosmic ray can demolish a LLM

https://spock.is/writing/simulating-cosmic-rays-to-lobotomize-llms
1•BenediktHolm•14m ago•0 comments

Code Obfuscation via Local Mixing

https://vitalik.eth.limo/general/2026/08/21/obfuscation_part_iii_local_mixing.html
2•fbrusch•14m ago•0 comments

Show HN: Tosynch – reconnect with your friends and meet often

https://tosynch.com
2•sunjain•15m ago•0 comments

The AI boom: rational enthusiasm or the next dot-com bubble?

https://www.ecb.europa.eu/press/blog/date/2026/html/ecb.blog20260817~754a8a4418.en.html
2•PhilippGille•18m ago•1 comments

AVO: Agentic Variation Operators for Autonomous Evolutionary Search

https://arxiv.org/abs/2603.24517
1•ijidak•21m ago•0 comments

From Sensor Watch to Open Book Touch:A Framework for Creativity by Joey Castillo

https://www.crowdsupply.com/oddly-specific-objects/open-book-touch/updates/from-sensor-watch-to-o...
1•raffael_de•21m ago•0 comments