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!

I Built the Most AI-Pilled Company in the World

https://twitter.com/jsnnsa/status/2115623382721126826
1•achow•6m ago•0 comments

The test that deleted my home folder

https://www.shuffle-on.com/blog/the-test-that-deleted-my-home-folder
1•lisneanucristia•7m ago•0 comments

Rust based firmware for (old) Sonos speakers removes junk and frees memory

https://twitter.com/doodlestein/status/2118049241058664738
1•oger•8m ago•0 comments

New Research Tests Whether AI Models Know Their Own Thoughts

https://www.quantamagazine.org/new-research-tests-whether-ai-models-know-their-own-thoughts-20261...
1•rbanffy•8m ago•0 comments

Escaping Firecracker from Guest Userspace

https://www.coinspect.com/blog/firecracker-escape/
1•achille•10m ago•0 comments

Generating 2k Consistent AI Images: The House Method

http://blog.lockboxx.org/2026/11/generating-2k-consistent-ai-images.html
1•aaaok•11m ago•0 comments

Eisenhower got Q2 and Q1 exactly backwards

https://nekolucifer.substack.com/p/someday-the-thief-of-dreams
1•andai•16m ago•0 comments

Stop Multicasting Slop

https://sam-morrow.com/blog/stop-multicasting-slop
1•hirsin•19m ago•0 comments

Ovipositor

https://en.wikipedia.org/wiki/Ovipositor
1•thunderbong•20m ago•0 comments

Show HN: I made a tool to share website growth without screenshots

https://pagzi.online/
1•sohaill•22m ago•0 comments

My Agentic Coding Setup, July 2026 – Domenic Denicola

https://domenic.me/agentic-coding-setup/
1•fagnerbrack•22m ago•0 comments

T-Unit, the Spotify founders' new startup, aims to defend European democracies

https://www.swedishtechnews.com/t-unit-the-spotify-founders-new-startup-secures-eur50m-in-funding...
2•imartin2k•23m ago•0 comments

Quandoom – A port of DOOM for a quantum computer

https://github.com/Lumorti/Quandoom
2•aggrrrh•25m ago•0 comments

Render Sandboxes

https://render.com/blog/introducing-render-sandboxes
2•bjhess•28m ago•0 comments

CVE-2026-93389: LiteSpeed Cache serves WordPress/WooCommerce data to anyone

https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/litespeed-cache/litespee...
1•drimphgol•31m ago•0 comments

Tell HN: Google Play will public-share your address and phone if you sell in EU

3•cmdr2•50m ago•0 comments

[HU-90%] Introducing Slop-O-Meter - my attempt of being up-front with readers

https://blog.jacq.cc/notes/slop-o-meter/
3•xx__yy•50m ago•1 comments

CVE-2026-109518: Debian, Ubuntu APT

https://nvd.nist.gov/vuln/detail/cve-2026-109518
3•zdkaster•55m ago•0 comments

Ask HN: Is it possible for a residential proxy provider to exist ethically?

1•walrus01•58m ago•0 comments

Tariff Walls and the Unified Context: On the Structural Logic

https://medium.com/@smoking2man/tariff-walls-and-the-unified-context-on-the-structural-logic-of-t...
1•Aldus551•1h ago•0 comments

Australia's Canva to restructure, affecting 22% of workforce

https://www.reuters.com/business/world-at-work/australias-canva-cut-22-jobs-growth-slows-first-ti...
1•vismit2000•1h ago•0 comments

A Heart Means Recursion: Exploring Visual Meaning and Communication in VLMs

https://arxiv.org/abs/2610.36449
2•matt_d•1h ago•0 comments

Adversarial Speculative Reasoning Improves Long Horizon Agents

https://www.alphaxiv.org/abs/2611.05345
1•matt_d•1h ago•0 comments

Steampipe: Zero-ETL way to query APIs and services

https://github.com/turbot/steampipe
1•saikatsg•1h ago•0 comments

Iqraa Tech

https://iqraa.tech/
1•amart90•1h ago•0 comments

When ML is just a query, every webshop screen gets one

https://aito.ai/blog/every-screen-a-decision/
1•arauhala•1h ago•0 comments

Tencent Hy4 Intelligence, Performance and Price Analysis

https://artificialanalysis.ai/models/tencent-hy4
3•theanonymousone•1h ago•0 comments

Larger Tokenizers Suffer More Multi-Epoch Regret

https://wenhaochai.com/blogs/vocab-multi-epoch.html
2•matt_d•1h ago•0 comments

Audio Judgment Models Are Jagged

https://camden.sh/posts/audio-decision-models/
2•camdenclark•1h ago•0 comments

Did the World Just Gain Hundreds of Millions of Alzheimer’s Patients?

https://www.newyorker.com/magazine/2026/11/09/did-the-world-just-gain-hundreds-of-millions-of-alz...
2•littlexsparkee•1h ago•0 comments