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!

(RFC+Hiring+Raising) Hyper Terawatt:Piston-Less V8 Engine Architecture

https://drive.google.com/file/d/18pYk3csOIm82M957FKuYJeTAZ6LCFh8-/view?usp=sharing
1•117l11•9m ago•0 comments

Phase.rs – a full featured MTG SIM in Rust

https://github.com/phase-rs/phase
1•dirteater_•19m ago•0 comments

Even More Formal Verification for BPF

https://lwn.net/Articles/1087069/
1•pykello•20m ago•0 comments

Grep: Structural Code Search

https://grep.codemod.com/
1•handfuloflight•23m ago•0 comments

How to archive Everything and share It

https://aramzs.github.io/steal-the-internet/
1•toomuchtodo•28m ago•1 comments

Passive 3D Thermal "Cloak" Hides Objects from Heat, from Any Direction

https://www.electronicdesign.com/technologies/power/article/55399858/electronic-design-passive-3d...
1•WaitWaitWha•29m ago•0 comments

Ask HN: Anyone set up ways to easily obtain and read transcripts from Ted, YT?

1•MollyRealized•30m ago•1 comments

Show HN: LayoutLens: AI-Powered Visual UI Testing

https://github.com/gojiplus/layoutlens
1•neehao•30m ago•0 comments

I Dream of Quieter Computing

https://henry.codes/writing/i-dream-of-quieter-computing/
2•Sir_Twist•31m ago•0 comments

Edify – Windows NLE: OpenFX, proxy editing, AI subs, vtuber tools ($29.99 once)

https://apps.microsoft.com/detail/9nkkk5k5s4ct?hl=en-US&gl=US
1•edify_nle•37m ago•0 comments

AI Chip Architectures

https://www.jepeake.com/ai-chip-architectures
1•Finbarr•39m ago•0 comments

Compactor: A user interface for Windows 10 filesystem compression

https://github.com/Freaky/Compactor
1•thunderbong•40m ago•0 comments

Neutron stars: smoother than billiard balls – unfortunately

https://ligo.org/science-summaries/o4aallskyisolatedcw/
2•raattgift•41m ago•0 comments

Heeramandi: The Diamond Bazaar (Lahore, Pakistan) [video]

https://www.youtube.com/watch?v=Sz064J6qRdQ
1•tkgally•43m ago•1 comments

JobSearch

3•OffixialUnknown•49m ago•3 comments

Psychological Coupling

https://osf.io/preprints/psyarxiv/695gp_v1
1•silverpiranha•50m ago•0 comments

Credit Without Ground Truth: Auditing Step-Level Credit Assignment in LLM Agents

https://arxiv.org/abs/2608.19760
1•sbulaev•57m ago•0 comments

The incoming Developer Experience revolution

https://kwojcicki.github.io/blog/NEW-AGE-OF-DEV-EX
1•kwojcicki•1h ago•0 comments

Why can AI generate Super Mario but not a wedge ramp for my robot vacuum?

2•zhuchaokn•1h ago•0 comments

Show HN: CtrlTool – 132 free online tools for developers and everyday tasks

https://ctrltool.wtf
1•jetroni•1h ago•0 comments

Apple degrades privacy and encryption of iMessage with AI integrations

https://twitter.com/stevemoraco/status/2091194172917338520
2•daniel_iversen•1h ago•1 comments

Treat AI Like an Intern, Not Software: A Stanford Professor's Guide

https://pixelum.substack.com/p/treat-ai-like-an-intern-not-software
1•mooreds•1h ago•2 comments

Microsoft Entra ID Remote Code Execution Vulnerability

https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-69836
3•mooreds•1h ago•1 comments

Signing JSON Web Tokens: Algorithm Tradeoffs, Performance, and Security

https://ciamweekly.substack.com/p/signing-json-web-tokens-algorithm
1•mooreds•1h ago•0 comments

FERC approves SPP 'topology optimization' plan for cutting grid congestion

https://www.utilitydive.com/news/ferc-spp-topology-optimization-grid-congestion/828366/
1•toomuchtodo•1h ago•1 comments

Show HN: Hands-Rust MCP/CLI that sees the Windows desktop and clicks real Chrome

1•ryan-b•1h ago•0 comments

Show HN: Agent2Creator – a video social network whose members are AI agents

https://agent2creator.vidmoat.com
2•abilafredkb•2h ago•3 comments

Drones with Claws

https://spectrum.ieee.org/arctic-iceberg-drones
1•asdefghyk•2h ago•1 comments

The Art and Beauty of Blade Runner

https://nappertime.com/the-art-of-and-beauty-of-blade-runner/
3•cocacola1•2h ago•0 comments

Verbatim: What Is a Photocopier?

https://www.nytimes.com/video/opinion/100000002847155/verbatim-what-is-a-photocopier.html
2•grubbs•2h ago•0 comments