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!

My agent inflated its own state file to 49MB. Every check passed for three days

https://wisplu.com/blog/en/status-file-blew-up/
1•dustinchu•42s ago•0 comments

Show HN: Turn a Sandbox into an MCP Server

https://github.com/substructureai/mcpd
1•xwil•1m ago•0 comments

Ask HN: Best LLM Subscription as of Now?

1•Simon2712•2m ago•0 comments

React Compiler Linting Just Got a Rust-Native Speedup in Oxlint

https://blog.master.dev/react-compiler-linting-just-got-a-rust-native-speedup-in-oxlint/
1•ibobev•2m ago•0 comments

25 August 1991: "Hello everybody out there using minix"

https://web.archive.org/web/20130509134305/http://groups.google.com/group/comp.os.minix/msg/b813d...
1•theanonymousone•2m ago•0 comments

AI for Peace Workshop – ICLR 2026

https://www.youtube.com/watch?v=KHzzf0tIwDM
1•eggy•2m ago•1 comments

Tech (Or Political?) Choices

https://manualdousuario.net/en/tech-choices-macstories/
1•rpgbr•3m ago•0 comments

A curmudgeon tries a language server

https://entropicthoughts.com/curmudgeon-tries-language-server
1•ibobev•3m ago•0 comments

Thomson: Continual Learning of Frontier Models for SovereignAI [pdf]

https://huggingface.co/spaces/tri-fair-lab/publications/blob/main/Thomson_1_0_Technical_Report.pdf
1•schwarzjn•3m ago•1 comments

Show HN: Apple Unified Logging for Stdio MCP and LSP

https://github.com/paaloeye/jsonrpc-stdio-proxy
1•paaloeye•3m ago•0 comments

Review2

https://reasonablypolymorphic.com/blog/reviewing-again/index.html
1•ibobev•3m ago•0 comments

Show HN: Speech Generation – Free text-to-speech in 18 languages

https://speechgeneration.net/
1•littlepp•4m ago•0 comments

Show HN: A skill for uploading full-resolution images to ChatGPT mobile runtime

https://github.com/Byte-Naut/send-lossless-images-skill
1•Byte-Naut•4m ago•0 comments

In defense of two-state theme toggles

https://joshcollinsworth.com/blog/in-defense-of-two-state-theme-toggles
1•speckx•4m ago•0 comments

A P2P Distributed OS Core Protocol in 40 Implementations

https://github.com/EntityChurch/entity-core-keystone
1•billatbillslab•8m ago•0 comments

Show HN: ReadPlusOne – Spanish stories built around the words you're learning

https://readplusone.com/
3•brandonc7•8m ago•0 comments

France's tax agency got hacked (in French)

https://www.cybernetica.fr/piratage-des-impots-comment-en-est-on-arrive-la/
7•zakxxi•11m ago•0 comments

Hot Chips 2026: Micron warns HBM wafer penalty is widening with every generation

https://www.tomshardware.com/tech-industry/semiconductors/micron-says-the-silicon-gap-between-hbm...
1•rbanffy•12m ago•0 comments

Let the Bond Market Speak

https://www.wsj.com/opinion/let-the-bond-market-speak-81529d74
1•jcfrei•13m ago•2 comments

Buyer beware: Those mummified remains might carry toxic spores

https://arstechnica.com/science/2026/08/modern-trade-of-mummified-remains-may-carry-its-own-mummy...
1•vintagedave•13m ago•1 comments

NASA Live Space Walk W Sophie Adenot and Anil Menon

https://www.youtube.com/watch?v=I0j7as4MLHk
1•katagaminator•13m ago•0 comments

Third drone and suspected military explosives found near Leipzig airport

https://www.theguardian.com/world/2026/aug/25/germany-drone-suspected-military-explosives-found-n...
2•osivertsson•14m ago•0 comments

Re: "Handwriting but not typewriting leads to widespread brain connectivity"

https://www.frontiersin.org/journals/psychology/articles/10.3389/fpsyg.2024.1517235/full
2•CharlesW•14m ago•0 comments

Geometry of quantum advantage in a guessing game

https://sciencespectrumu.com/beating-the-odds-in-a-guessing-game-with-a-single-quantum-box-f85c58...
1•armchairquantum•14m ago•0 comments

ZeroSSL Acme Endpoint Downtime

https://status.zerossl.com/
2•sigio•15m ago•1 comments

The Great Recession

https://nicholasdecker.substack.com/p/the-great-recession
1•surprisetalk•15m ago•0 comments

Why Claude Code garbles when you rotate your phone

https://getxtend.com/blog/terminal-state-you-cant-replay.html
2•mendidou•15m ago•1 comments

The History of Postgres Sharding

https://planetscale.com/blog/the-history-of-postgres-sharding
2•hollylawly•18m ago•1 comments

My experience with LLM-assisted tools in software development

https://ounapuu.ee/posts/2026/06/08/llm/
2•speckx•19m ago•0 comments

What I Don't See When I'm Envious

https://www.mooreds.com/wordpress/archives/3741
1•mooreds•19m ago•0 comments