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!

Hackingpal

https://github.com/hackingpal/hackingpal
1•jadamsl•1m ago•0 comments

Ask HN: What are your parameter count estimates for Opus 4.8 and GPT-5.5?

1•ahriad•2m ago•0 comments

Query with Curl

https://daniel.haxx.se/blog/2026/06/21/query-with-curl/
1•Sami_Lehtinen•3m ago•0 comments

Extracted Value

https://extractedvalue.com/
1•turtleyacht•7m ago•0 comments

Multi Pong – multiplayer pong game

https://multi-pong.projects.lasz.uk/
1•dr_kretyn•7m ago•0 comments

New V4 encryption format that supports hardware-bound encryption using Yubikeys

https://www.vaultsort.com/
2•VaultSort•9m ago•0 comments

Epoll vs. Io_uring in Linux

https://sibexi.co/posts/epoll-vs-io_uring/
4•Sibexico•12m ago•0 comments

The Tiny Sailing Game That Feels Surprisingly Real [video]

https://www.youtube.com/watch?v=30n_fdzgjJA
2•coolwulf•12m ago•0 comments

Russia's Putin is spending $26B to live forever

https://startupfortune.com/russias-putin-is-spending-26-billion-to-live-forever/
1•insanetech•13m ago•0 comments

First Pure-Go Cubrid Driver: Gocubrid

https://hexacluster.ai/blog/announcing-first-pure-go-cubrid-driver-gocubrid
1•avivallssa•16m ago•1 comments

South Korea Could Build Nuclear Submarines, but It Shouldn't

https://warontherocks.com/south-korea-could-build-nuclear-submarines-but-it-shouldnt/
1•bear_with_me•17m ago•0 comments

Show HN: Callimachus – Local search across your AI coding-agent history

https://github.com/BetaBots-LLC/callimachus
2•arishaller•19m ago•2 comments

Not just books: renting a sewing machine from the library can improve democracy

https://www.bbc.com/future/article/20260618-the-weird-and-wonderful-libraries-of-finland
13•sohkamyung•25m ago•1 comments

Jobflo – A local-first job tracker built with SwiftUI

https://lymegrove.com/jobflo/
1•jsrothwell•25m ago•0 comments

Adblock Plus doing just fine after updating to Manifest V3 two years ago

https://blog.adblockplus.org/blog/adblock-plus-doing-just-fine-after-updating-to-manifest-v3-two-...
3•twapi•27m ago•1 comments

Turns Out, There Is a Cabal of Elite Crazies Trying to Control the World

https://www.esquire.com/news-politics/politics/a71619211/peter-thiel-dialog-club-wired-report/
44•throwaway81523•29m ago•9 comments

Show HN: Domvault – self-hostable second brain with consent-based note sharing

https://github.com/dys5315/domvault
3•quietdrift_04•29m ago•0 comments

Why Amazon hates 'human-in-the-loop' AI governance

https://www.theregister.com/security/2026/06/20/why-amazon-hates-human-in-the-loop-ai-governance/...
4•ano-ther•31m ago•0 comments

28% Faster: Blink Prototype That Shows Why Apple iOS Browser Engine Ban Must End

https://open-web-advocacy.org/es/blog/28-percent-faster--the-blink-prototype-that-shows-why-apple...
3•SoKamil•31m ago•1 comments

Lessons from wasps on how societies survive power struggles

https://www.ucl.ac.uk/news/2026/may/comment-lessons-wasps-how-societies-survive-power-struggles
4•hhs•32m ago•0 comments

One Prompt Agentic AI Marketing for Game Developers

https://www.youtube.com/watch?v=B2ASCTomtIA
3•bingewave•32m ago•0 comments

'Buy less' campaigns don't work

https://www.lse.ac.uk/buy-less-campaigns-dont-work
4•hhs•35m ago•0 comments

FunnyBench – Can AI Models Tell Funny Jokes?

https://funnybench.lol
3•Mockapapella•36m ago•1 comments

Stop calling the Super Productionizer a 'baby blender' – Frank Elavsky

https://www.frank.computer/blog/2025/06/baby-blender.html
13•cratermoon•36m ago•2 comments

Researchers used math to crack Wordle

https://www.binghamton.edu/news/story/6327/s-m-a-r-t-these-researchers-used-math-to-crack-wordle
4•hhs•40m ago•1 comments

Show HN: TLA+ Process Studio

https://tlaplus-process-studio.com/?example=meeting-lifecycle
5•uptodatenews•41m ago•0 comments

Pre-2022 Books

https://notes.lorenzogravina.com/musings/pre-2022-books
47•trms•43m ago•20 comments

I can haz smoller NixOS ISOs?

https://natkr.com/2026-06-19-nixos-but-smol/
7•birdculture•47m ago•0 comments

Show HN: Maccha – Cross Agent Brain for Antigravity, Claude Code, OpenCode etc.

https://github.com/KarelTestSpecial/real-agent-setup
4•kareldecherf•48m ago•1 comments

Show HN: Onsight: pay a local to photograph any spot in San Francisco, on demand

https://onsight.photo/san-francisco
6•pro_methe5•48m ago•1 comments