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!

Fscrypt Sees Cleanup with Linux 7.3 Open Door for Features Like Btrfs Encryption

https://www.phoronix.com/news/Linux-7.3-FSCRYPT
1•DemiGuru•58s ago•0 comments

X.org Server 26.1 RC1 Prepares for First Feature Release in Five Years

https://www.phoronix.com/news/X.Org-Server-26.1-RC1
1•achyudh•1m ago•0 comments

Frustrated GP patients hang up as Yorkshire accent baffles AI receptionist

https://www.theguardian.com/society/2026/aug/20/yorkshire-rotherham-ai-gp-receptionist-cannot-und...
2•mellosouls•3m ago•0 comments

10x: The federal government's own venture studio

https://10x.gsa.gov/
2•nateb2022•4m ago•0 comments

DiffusionGemma Technical Report

https://arxiv.org/abs/2608.00146
2•gmays•5m ago•0 comments

Show HN: evepad – The missing IDE for building eve agents

https://github.com/andrewckor/evepad
3•ckor•6m ago•1 comments

Malicious Rust Crate Arrayref Runs a Build-Time Payload

https://safedep.io/arrayref-proc-macro1-rust-build-time-malware/
3•abhisek•7m ago•0 comments

Giant whales move into Greenland waters as ice disappears

https://www.bbc.com/news/articles/cq6dn9gj7eno
2•speckx•9m ago•0 comments

Relationship Engineering: the fifth phase of building with AI

https://twitter.com/swombat/status/2090421410887880771
2•obiefernandez•11m ago•0 comments

Choking victims should perform Heimlich manoeuvre on themselves – scientists

https://www.independent.co.uk/news/health/choking-heimlich-manoeuvre-perform-yourself-how-to-chai...
2•thunderbong•13m ago•0 comments

Draft spec for an offline emergency dispatch protocol in on-device LLMs url

https://github.com/kapustin-i/offline-dispatch-protocol
2•kapustin-i•14m ago•0 comments

I recently sat down for coffee with one of my oldest friends in the industry

https://notes.jordanscales.com/coffee
2•speckx•15m ago•0 comments

How dbt works, and why orchestrators shouldn't split it into tasks

https://www.windmill.dev/blog/how-dbt-works-and-its-orchestrators
6•rubenfiszel•15m ago•0 comments

Data annotation is creating jobs

https://www.nytimes.com/2026/08/20/world/asia/ai-jobs-data-annotation-india-karur.html
2•ripe•16m ago•1 comments

Sokoban via Grok App Builder

https://sokoban.grok.me/
2•da-x•16m ago•0 comments

Show HN: Find every AI model your code calls and warn before it's retired

https://llmstatus.ai
3•taylorgt•17m ago•0 comments

Canonical Backs New Project to Translate Large C Codebases into Safe Rust

https://linuxiac.com/canonical-backs-new-project-to-translate-large-c-codebases-into-safe-rust/
3•datakan•18m ago•0 comments

ARM Sells Its Own Silicon

https://www.forbes.com/sites/johnwerner/2026/08/19/arm-sells-its-own-silicon/
2•fork-bomber•18m ago•0 comments

Show HN: FindHost – hosting provider database with no affiliate links

https://www.findhost.app/
4•esher•18m ago•1 comments

Show HN: Open-source tool turning company knowledge into Duolingo-like courses

https://www.scibly.com/de/
3•Niclas63•19m ago•0 comments

Show HN: Markdown Buddy – Native macOS Markdown Editor with Quick Look and Xcode

https://markdownbuddy.inawa.app/
2•JanParis•22m ago•0 comments

Show HN: Testmagic.link – Zero-setup magic link testing for coding agents

https://testmagic.link
3•lobovkin•22m ago•0 comments

Pipes – Powered by PolyCSS

https://css.graphics/pipes/
2•speckx•24m ago•0 comments

There's No Reason to Buy a New Phone Anymore

https://www.theatlantic.com/technology/2026/08/secondhand-tech-boom/688309/
2•fortran77•24m ago•2 comments

Private Chinese rocket aces landing on 2nd-ever flight [video]

https://www.space.com/space-exploration/launches-spacecraft/touchdown-private-chinese-rocket-aces...
4•bookofjoe•26m ago•0 comments

China launches GPMI universal cable [video]

https://www.youtube.com/shorts/mOh5IklMMMw
1•thelastgallon•26m ago•0 comments

UK internet age checks have boosted rogue adult sites, says Pornhub

https://www.ft.com/content/295c2eba-da29-434d-84e0-e9de3b0b1cc2
3•thm•28m ago•0 comments

Prove Your Point Correctly

https://play.google.com/store/apps/details?id=ai.argumentapp.argument&hl=en_US
1•angryteacher•28m ago•0 comments

Do Chatbot LLMs Talk Too Much?

https://arxiv.org/abs/2601.00624
1•bretkoppel•29m ago•0 comments

I Refrain from Infosec Punditry

https://blog.coredump.cx/p/why-i-refrain-from-infosec-punditry
1•surprisetalk•29m ago•0 comments