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!

Bcachefs exits experimental status in new 'performance release'

https://www.theregister.com/software/2026/06/19/bcachefs-exits-experimental-status-in-new-perform...
1•ofrzeta•2m ago•0 comments

DirectX Dump Files Preview Now Available

https://devblogs.microsoft.com/directx/dx-dump-files-preview/
1•ibobev•2m ago•0 comments

Blaise v0.11.0 Is Here

https://github.com/graemeg/blaise/discussions/126
1•mariuz•4m ago•0 comments

Measuring AI productivity yourself with gh, jq, and Git

https://getunblocked.com/blog/measuring-ai-productivity/
1•dennispi•5m ago•0 comments

The Accidental Framework

https://blog.tacoda.dev/the-accidental-framework-934babb6bfde
1•tacoda•6m ago•0 comments

JEP: Embed Python in Java, the Polished Way

https://github.com/ninia/JEP
1•theanonymousone•7m ago•0 comments

The Bottleneck in AI Was Never Intelligence

https://www.gailweiner.com/post/the-bottleneck-in-ai-was-never-intelligence
1•speckx•8m ago•0 comments

FlashAttention-4: Algorithm and Kernel Pipelining Co-Design

https://research.colfax-intl.com/flashattention-4-algorithm-and-kernel-pipelining-co-design-for-a...
1•skidrow•8m ago•0 comments

APTA Feature on Cellular in Transit Systems

https://aptapassengertransport.com/when-cellular-becomes-transit-infrastructure/
1•takko_the_boss•9m ago•0 comments

Why doesn't Get­Last­Input­Info() return info for the user I'm impersonating?

https://devblogs.microsoft.com/oldnewthing/20260618-00/?p=112444
1•ibobev•9m ago•0 comments

Ghost Boxes: Reusing Abandoned Big-Box Superstores (2016)

https://99percentinvisible.org/article/ghost-boxes-reusing-abandoned-big-box-superstores-across-a...
1•dredmorbius•10m ago•1 comments

Factorio: More Planet Deliveries

https://factorio.com/blog/post/fff-443
1•ibobev•10m ago•0 comments

Cutlass Tutorial: Efficient GEMM Kernel Designs with Pipelining

https://research.colfax-intl.com/cutlass-tutorial-design-of-a-gemm-kernel/
1•skidrow•11m ago•0 comments

Extend Claude limits by offloading AI tasks to Neo

https://heyneo.com/claude-code
1•gauravvij137•11m ago•1 comments

P-Tau217 as a Reliable Blood-Based Marker of Alzheimer's Disease

https://pmc.ncbi.nlm.nih.gov/articles/PMC11351463/
1•brandonb•11m ago•0 comments

I restarted a 10 year old Xeon 174 times to delete 12 flags and gain 4 tps

https://point.free/blog/delete-12-flags/
3•zdw•13m ago•0 comments

Italy's Meloni says Trump 'made up' story that she 'begged' him for photo at G7

https://www.bbc.com/news/articles/c20y1ygn707o
4•root-parent•13m ago•0 comments

An agile retrospective skill for your Claude collaboration sessions

https://github.com/cometogather/retro-bot
1•mooreds•15m ago•0 comments

Ask HN: How do you measure whether your coding agent follows its rules?

2•Tigerless_ailab•16m ago•0 comments

Toward Better Hip Kernel Generation for AMD GPUs

https://scalingintelligence.stanford.edu/blogs/hipkernels/
2•skidrow•16m ago•0 comments

Moving to Portugal: Complete Guide for Americans

https://www.relocora.com/blog/moving-to-portugal-guide-for-americans-2026
2•mooreds•16m ago•0 comments

CEO-Bench: Can AI run a simulated startup for 500 days?

https://ceobench.com/
3•tonychenxyz•16m ago•1 comments

Frank Land obituary: programmer of the first business computer

https://www.thetimes.com/uk/obituaries/article/frank-land-obituary-programmer-of-the-first-busine...
1•timthorn•17m ago•0 comments

Show HN: Captorify – A Better Chrome Screenshot Extension

https://captorify.com/
1•fredrikaurdal•17m ago•1 comments

Open Source vs. the Invisible Hand

https://nesbitt.io/2026/06/18/open-source-vs-the-invisible-hand.html
1•zdw•18m ago•0 comments

Wordle's Hard Mode Is Easier, 730M Games Show

https://www.nytimes.com/2026/06/18/upshot/wordle-hard-mode.html
1•cainxinth•18m ago•0 comments

How the FAA is using AI to prevent close calls on runways

https://www.politico.com/news/2026/06/19/faa-ai-close-calls-00963264
1•CharlesW•19m ago•0 comments

Running MicroVMs in Proxmox VE, the Easy Way

https://taoofmac.com/space/blog/2026/06/18/1845
1•zdw•19m ago•0 comments

Toy Story: The Open-Source Ecosystem

https://qainsights.com/toy-story-the-open-source-ecosystem/
1•qainsights•19m ago•1 comments

"These Days I'd Rather Read a Book"

https://brandons-journal.com/post/these-days-i-d-rather-read-a-book
1•speckx•19m ago•0 comments