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!

A Short History of the Information Age

https://galileo-unbound.blog/2026/09/16/a-short-history-of-the-information-age/
1•ibobev•1m ago•0 comments

Sparse resources helped my GPU-driven renderer memory usage

https://zino2201.substack.com/p/how-sparse-resources-helped-my-gpu
1•ibobev•2m ago•0 comments

Generating Artist-Like 3D Mesh Topology via Nearest-Vertex Vector Fields

https://derkleineli.github.io/triflow/
1•ibobev•3m ago•0 comments

In 2025, the ozone hole shrunk to one of its smallest sizes in decades

https://phys.org/news/2026-09-ozone-hole-shrunk-smallest-sizes.html
1•pseudolus•4m ago•0 comments

Second Circuit Allows Government to Search Electronic Devices at the Border

https://knightcolumbia.org/content/second-circuit-allows-government-to-search-electronic-devices-...
1•HotGarbage•5m ago•0 comments

Better than reality: New emulation tech lags less than original consoles (2018)

https://arstechnica.com/gaming/2018/04/better-than-reality-new-emulation-tech-lags-less-than-orig...
1•tosh•5m ago•0 comments

Open Letter to Paul Nurse

https://docs.google.com/document/d/1-xOkPeHmDEdRigT2YcP2nLfTB56yOn4FFbBfVUIXCUE/edit?tab=t.0
1•akbarnama•6m ago•0 comments

MonkeyDcode – a CLI coding agent built for small local models

https://github.com/STRAW-HAT-DEV/monkeyDcode
2•ASHFAAQHAMJA•7m ago•0 comments

Fiat-Shamir Bugs: How One Missing Line Breaks a Proof System

https://blog.zksecurity.xyz/posts/fiat-shamir/
1•baby•7m ago•0 comments

Reconstructed Jurassic insect calls (165M-year-old) [video]

https://www.youtube.com/watch?v=t6iWoBHxBbk
1•xavaki•10m ago•0 comments

Startup Fluxnium found a way to tap 50k years' worth of nuclear fuel

https://techcrunch.com/2026/09/16/clean-tech-startup-fluxnium-found-a-way-to-tap-50000-years-wort...
1•mpweiher•10m ago•0 comments

Think Like an Attacker: CI/CD Security in the AI Era

https://medium.com/@Koukyosyumei/think-like-an-attacker-ci-cd-security-in-the-ai-era-39f717f5e9cd
1•syumei•10m ago•0 comments

Prediction markets are becoming a national security threat

https://thebulletin.org/2026/09/insiders-are-betting-on-war-how-prediction-markets-are-becoming-a...
2•jbegley•11m ago•0 comments

Warren Buffett steps down as Berkshire Hathaway chairman

https://www.axios.com/2026/09/18/warren-buffett-berkshire-hathaway-chairman
2•kuuuzya•12m ago•0 comments

You can create any workflow or pipeline you want with DSCI and LLM

https://deadsimpleci.sparrowhub.io/doc/posts/dsci_llm
2•melezhik•15m ago•1 comments

Strong evidence for quantum entanglement between Z bosons found by ATLAS and CMS

https://home.cern/strong-evidence-for-quantum-entanglement-between-z-bosons-found-by-atlas-and-cms/
1•rbanffy•17m ago•0 comments

Why the best AI users stopped hunting for the perfect prompt

https://firstlastword.substack.com/p/systems-not-sentences
1•grrrtttt•17m ago•1 comments

AI Mistakes – bash scripts – pipefail and grep

https://medium.com/@simonsmartiom/ai-mistakes-bash-scripts-pipefail-and-grep-d55a38c1836f
1•boxesnlines•17m ago•1 comments

NATS Major Incident Preliminary Investigation Report [pdf]

https://www.nats.aero/wp-content/uploads/2026/09/NATS-Preliminary-Investigation-Report-into-NAS-I...
4•curiousgal•17m ago•1 comments

Show HN: Jev vs. GPT-5.6 and Claude Haiku at Pong

https://jev-pong.ably.dev/
4•matt_oriordan•18m ago•0 comments

World's fastest compression library just doubled its speed

https://github.com/rrrlasse/memlz
1•rlasse•19m ago•1 comments

Warren Buffett Steps Down as Berkshire Hathaway Chairman

https://www.wsj.com/finance/warren-buffett-to-step-down-as-berkshire-hathaway-chairman-de0e003f
1•thm•19m ago•0 comments

Mastery in the Post-AI World

https://blog.daddooo.dev/posts/mastery-in-the-post-ai-world/
1•daddooo•20m ago•0 comments

Skins

https://www.acdw.net/skins/
1•DanielVZ•22m ago•0 comments

Most People on the Internet Miss What Jev Is About

https://medium.com/@gemanor/most-people-on-the-internet-miss-what-jev-is-about-ad0a983537d5
4•gemanor•23m ago•0 comments

Flights, 4 cities, 18 nights – $112 total. Would you do this trip?

https://uwillfly.net/pl
1•privacyzvarych•24m ago•0 comments

What Does Retirement Look Like?

https://yusufaytas.com/what-does-retirement-look-like
7•yusufaytas•24m ago•0 comments

A curated list of open source projects used in nuclear science and engineering

https://github.com/paulromano/awesome-nuclear
2•mpweiher•24m ago•0 comments

A signed manifest for every release

https://packslip.dev
1•ahamez•26m ago•0 comments

Researchers used Claude to hack OpenAI

https://arstechnica.com/ai/2026/09/researchers-used-claude-to-hack-openai/
2•CharlesW•27m ago•1 comments