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!

MathEconLib – Machine-checked mathematical economics

https://mathecon.dev/
1•the-mitr•1m ago•0 comments

Cherry Processing

https://sftw.substack.com/p/the-second-most-photographed-fruit
1•mhb•3m ago•0 comments

FreeToolkit – 384 client-side dev utilities (regex, SQL, cron, cURL, more)

https://freetoolkit.dev/
1•scottymal•3m ago•0 comments

Syntax-Highlighting for Word, PowerPoint, Google Docs, Google Sheet, Keynote

https://onlineimageoptimizer.com/code-to-image.html?cols=80&size=24&scale=2&font=Courier+Prime&la...
1•ImageOptimizer•7m ago•0 comments

Show HN: What LLM fits my GPU? – VRAM measured on real hardware for 117 models

https://quantized.uk/
1•sheephess44•10m ago•0 comments

The Customer Is the Builder: how AI coding agents change software economics

https://arxiv.org/abs/2610.30307
1•riponcm•11m ago•0 comments

Show HN: Median product "lifespan" has fallen from ~4y down to ~1.5y

1•stanislavb•15m ago•0 comments

Beyond tree cover: mapping the forest types

https://deepmind.google/blog/beyond-tree-cover-mapping-the-worlds-forest-types/
1•loughnane•16m ago•0 comments

Building Event-Driven Microservices with Python and Kafka

https://rsbh.dev/blogs/python-kafka-microservices
1•rishabh09•17m ago•0 comments

Ask HN: Are half the Ask HN posts leading to "Sorry." for you too?

1•hahnchen•17m ago•0 comments

Virtual3D – Now has Nanie like "Flux" LOD system

https://starsigndev.itch.io/virtual3d
1•antonyrobwells•19m ago•0 comments

The Signal Chats That Cost OpenAI Researchers Their Jobs

https://www.wsj.com/tech/ai/the-signal-chats-that-cost-openai-researchers-their-jobs-594c5853
1•elffjs•21m ago•0 comments

Agent Compute Engine deep dive

https://cloud.google.com/blog/topics/ai-infrastructure/agent-compute-engine-deep-dive
1•simonpure•23m ago•0 comments

FrontierCS 2: A Benchmark for Computer Science R&D

https://frontier-cs.org/?v=2
1•matt_d•28m ago•0 comments

Low-cost, evasive malware for benchmarking reverse engineering capabilities

https://malwarebench.com
1•rexpository•34m ago•0 comments

Japan: Scientists develop autonomously swarming robodogs for anti-bear patrols

https://soranews24.com/2026/10/22/japanese-scientists-developing-cute-autonomously-swarming-robo-...
1•snarky-comments•35m ago•1 comments

AI RSS reader with summaries – Brew beta

https://testflight.apple.com/join/CgRdkqc4
1•getbrewapp•35m ago•0 comments

Agent Evals Considered Harmful

https://twitter.com/noriagent/status/2113338229470441579
3•theahura•36m ago•0 comments

Attention people who think UB is fine

https://blog.habets.se/2026/10/Attention-people-who-think-UB-is-fine.html
2•aszlig•37m ago•1 comments

Show HN: TenseMem – deterministic memory for AI agents

https://github.com/tensemem/tensemem
1•shubh-singh•38m ago•0 comments

Robinson vs. Meta Platforms and the Cdafa Consent Defense

https://captaincompliance.com/education/robinson-v-meta-platforms-and-the-cdafa-consent-defense-a...
1•richartruddie•39m ago•0 comments

Show HN: Sudoku, Wordle and Lights Out solvers – hints instead of answers

https://iqiqgame.com/tags/tool-solver
1•fang3651•39m ago•0 comments

HyperCache – Distributed KV-cache quantization and relative RoPE reuse

https://github.com/SamGanYX/HyperCache
2•samganyx•39m ago•0 comments

Esperanto: Most widely spoken constructed auxiliary language

https://en.wikipedia.org/wiki/Esperanto
3•gurjeet•42m ago•0 comments

See how Big Tech is transforming Spain's landscape

https://text.npr.org/nx-s1-5991641
2•mooreds•43m ago•0 comments

I built a social calendar app – be ther social calendar

https://play.google.com/store/apps/details?id=com.bether.app&hl=en_IN
1•gomathamkalidas•48m ago•1 comments

Common PKCS#11 Issues

https://keymirror.io/pkcs11-in-practice-p1.html
1•i2km•49m ago•1 comments

The Token Exchange

https://fusionauth.io/blog/token-exchange-thoughts
1•mooreds•49m ago•0 comments

I Worship Crunch (2017)

https://www.polygon.com/2017/8/23/16184068/why-i-worship-crunch/
2•mooreds•50m ago•0 comments

Introducing TorchTPU

https://pytorch.org/blog/introducing-torchtpu/
2•gmays•58m ago•2 comments