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!

43k+ new periodic solutions to the three body problem found by volunteers

https://www.threebodyorbits.com/hunt
1•threebodyorbits•2m ago•1 comments

RepoTrust – Determine if a repo is trustworthy enough to use

https://repotrust.synapticcyber.com/
1•harryhoffman•2m ago•0 comments

Fossil CO2 emissions decrease in 2026

https://globalcarbonbudget.org/fossil-co2-emissions-decrease-in-2026/
1•geox•2m ago•0 comments

Survival Genes Show No Sign of Special Protection from Mutation

https://studyfinds.com/survival-genes-no-protection-mutation/
1•bryanrasmussen•2m ago•0 comments

Behind Jensen Huang's spy scandal, a shadow war for Trump's ear on China

https://www.washingtonpost.com/technology/2026/11/13/behind-jensen-huangs-spy-scandal-shadow-war-...
2•elffjs•7m ago•0 comments

Ask HN: Do I own the code I write with the help of AI?

1•stagas•9m ago•1 comments

The Case for Pardoning Jensen Huang

https://cloudandmore.substack.com/p/the-case-for-pardoning-jensen-huang
1•m4r1k•12m ago•1 comments

Show HN: CodeRelay – Let your coding agent delegate work to a teammate's agen

https://github.com/AymanAhsan/CodeRelay
1•AymanAhsan•12m ago•0 comments

Harald Welte receives EU SFS Award for work on Linux, GPL enforcement and more

https://fsfe.org/news/2026/news-20261113-01.html
2•kirschner•13m ago•0 comments

50X: DeepSeek v4.1 Flash from Chile, $0.03M input

https://50x.energy/
1•diegosiguelnitz•14m ago•0 comments

Jensen Huang's departure blasts big hole in AI startup funding

https://techcrunch.com/2026/11/13/jensen-huangs-departure-blasts-big-hole-in-ai-startup-funding-v...
2•nlpnerd•16m ago•0 comments

Show HN: A browser RTS where you play alongside your local agents

https://agentcommand.gg/
1•fraywing•17m ago•0 comments

Ask HN: How do you decide when to stick with a project

2•mjs06•17m ago•4 comments

Benchmarking Qwen3-Coder-Next, DeepSeek-R1, and Qwen3.5 with Dynamic RSI

https://github.com/bibble/dynamic-rsi-harness/blob/main/BENCHMARK_REPORT.md
1•jxie2004•19m ago•0 comments

Two-Party System

https://en.wikipedia.org/wiki/Two-party_system
1•chistev•19m ago•1 comments

Show HN: Business Cubes

https://businesscubes.org
1•mojoe•20m ago•1 comments

Public Interest Capacity: The Case of Direct File [pdf]

https://onlinelibrary.wiley.com/doi/10.1111/puar.70224
1•thunderbong•21m ago•0 comments

A short history of the honey trap

https://engelsbergideas.com/notebook/a-short-history-of-the-honey-trap/
1•ibn_khaldun•22m ago•0 comments

Ops Needs Friction

https://www.jeffgeerling.com/blog/2026/ops-needs-friction/
2•notfried•23m ago•0 comments

Show HN: Linux CLI for Cricut StickerPix

https://github.com/vavkamil/crycut
1•vavkamil•26m ago•0 comments

The Mystery Behind a 50-Year-Old Factory Part Flying Off the Shelves

https://www.wsj.com/business/the-mystery-behind-a-50-year-old-factory-part-flying-off-the-shelves...
2•bookofjoe•28m ago•3 comments

Docs for Humans

https://lynx.railcode.dev/docs/humans
3•yakkomajuri•34m ago•0 comments

Preventing an AI catastrophe, a brief into to analysis by synthesis

https://shukla.io/blog/2026-11/analysis-by-synthesis.html
2•BinRoo•37m ago•0 comments

ask HN: Do you think everyone is going too far with Jensen Huang?

1•KinetiNode•38m ago•4 comments

Llama.cpp v1.0 on an RTX 3090: up to 55% faster with speculative decoding

https://homebrewserver.club/llama-cpp-v1.html
2•aidotguru•38m ago•0 comments

Training and Inference on Huawei Ascend NPUs

https://github.com/deepseek-ai/DeepEP-Ascend
1•Bluestein•39m ago•0 comments

Creating a self booting ZIP archive

https://goliath32.com/blog/ziphead.html
2•gdgghhhhh•39m ago•0 comments

Cowork – Self-hosted task queue and dashboard for Claude, Codex, and AI agents

https://github.com/slashman413/cowork
2•ckw19810413•42m ago•0 comments

EU institutions survive Microsoft outage unscathed

https://www.politico.eu/article/eu-institutions-survive-microsoft-outage-unscathed/
4•higginsniggins•42m ago•1 comments

Thinking Machines: End‑to‑End 4‑Bit Training

https://thinkingmachines.ai/blog/end-to-end-4-bit-training/
1•whiteros_e•45m ago•1 comments