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!

What a read-only Postgres role does and doesn't stop when an AI agent connects

https://vericto.com/blog-post-postgres-read-only-role-ai-agents
1•donkan168•36s ago•0 comments

MDZip (.mdz) File Format – Portable Markdown Package

https://mdzip.org/
1•vanburen•54s ago•0 comments

Grok Bot secrets extraction vulnerability

https://profero.io/blog/the-rootkit-built-into-grok-bot
1•kevin_nisbet•1m ago•1 comments

U.S. highways have 878 stretches of 50+ miles with no fast EV charger (map)

https://chargingnear.me/nevi-charging-gaps
1•parkgraph•1m ago•0 comments

Exploring Exponentially Many Programs at Once with E-Graphs

https://stng.substack.com/p/exploring-exponentially-many-programs
1•matt_d•2m ago•0 comments

Singularity Gate: Benchmark for AI-driven paradigm-shifting scientific discovery

https://singularitygate.org/
1•leumon•3m ago•0 comments

How Do Building Codes Affect the Price of Housing?

https://www.construction-physics.com/p/how-do-building-codes-affect-the
2•aray07•3m ago•0 comments

TimeNet: Open-source data infrastructure for temporal foundation models

https://github.com/OpenTSLM/TimeNet
1•rjakob•5m ago•0 comments

Show HN: Asm Lens – See the assembly of each function in VS Code

https://github.com/IdanShalom/asm-lens
1•idansoccer4•6m ago•0 comments

CSS Sundial Clock

https://imjasonh.github.io/playground/sundial/
1•ImJasonH•6m ago•0 comments

Memory Safety Bugs in Rust Standard Library

https://forge-blog.github.io/posts/rust-std-memory-safety/
1•matt_d•7m ago•0 comments

Testing AI image watermarks: C2PA and SynthID

https://nabraj.com/blog/testing-ai-watermarks
1•coffeecoders•9m ago•0 comments

Greenfield – a short film about the last engineers who write code by hand [video]

https://www.youtube.com/watch?v=_9wf9YdeqPE
1•mhsmith•9m ago•0 comments

Salmon Farmers Deploy Lasers, Robots to Meet Booming Demand

https://www.wsj.com/business/salmon-farmers-deploy-lasers-robots-to-meet-booming-demand-2cad3925
1•sbmthakur•10m ago•0 comments

The 2D Ray Tracing Problem Using ABCD Lenses and Mirrors Is Turing Complete

https://arxiv.org/abs/2606.24218
1•smusamashah•11m ago•0 comments

Keep the Why – Better Decisions for Your Agents

https://www.i-programmer.info/news/105-artificial-intelligence/19273-keep-the-why-better-decision...
2•aquastorm•14m ago•0 comments

AI agents are developing odd dialects humans struggle to follow

https://news.northeastern.edu/2026/11/06/emergence-ai-experiment-language/
2•giuliomagnifico•14m ago•0 comments

What AI gets wrong outside software

https://clach.dev/blog/ai-slop/
1•ClachDev•14m ago•0 comments

Boxes

https://ampcode.com/news/boxes
1•tosh•15m ago•0 comments

Show HN: Retro-gaming interview script for assessing culture fit

https://phnd.net/branwash/
1•_phnd_•15m ago•1 comments

Show HN: Mismo – Share UI and navigation between web, desktop and React Native

https://mismo.dev/
1•xilefcodes•16m ago•0 comments

A quantum breakthrough makes light behave like both a solid and a liquid

https://www.sciencedaily.com/releases/2026/11/261105224536.htm
3•thelastgallon•18m ago•0 comments

Generalist vs. Specialist in the After AI Era

https://www.thepythoncodingstack.com/p/generalists-specialists-ai
1•lumpa•19m ago•0 comments

AMD's Zen 6 Family: Feeding the Beast

https://chipsandcheese.com/p/amds-zen-6-family-feeding-the-beast
8•pixelpoet•19m ago•0 comments

Waze Now Alerts Drivers to Nearby Cyclists Using Garmin LiveTrack

https://www.garmin.com/en-US/garmin-technology/cycling-science/cycling-awareness/your-live-locati...
1•ragu4u•19m ago•0 comments

Show HN: Propylea – Sub-microsecond L7 reverse proxy and active defense in Rust

https://github.com/rmediatech/propylea
2•rickplus•20m ago•0 comments

In a Bengaluru market, vendors hired to train AI systems [video]

https://www.youtube.com/watch?v=yT-iu1kovKg
1•dyzone•21m ago•0 comments

Explainable AI-based disease diagnostics using blockchain technology

https://www.nature.com/articles/s41598-026-64224-1
1•netfortius•21m ago•0 comments

Anthropic IPO Roadshow

https://www.netroadshow.com/custom/IPO/Anthropic/retail/agenda.html
2•iLuddite•22m ago•0 comments

"Six Math Essentials" now available

https://terrytao.wordpress.com/2026/11/10/six-math-essentials-now-available/
1•smilelamp•23m ago•0 comments