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!

Chess in SQL

https://swingbit.github.io/quackmate/
1•swingbit•1m ago•0 comments

I mined 224 transcripts to salvage a model too good to be legal

https://johnkueh.com/articles/borrowed-intelligence
1•johnkueh•1m ago•0 comments

Buying Britain: overseas buyers pile into UK companies

https://www.ft.com/content/2b475640-0ea6-4c25-8511-116eca6b78c5
1•mmarian•2m ago•1 comments

White House's export limits on Anthropic linked to concerns about Chinese access

https://www.semafor.com/article/06/13/2026/white-house-move-to-limit-anthropic-linked-to-concerns...
2•dsr12•9m ago•1 comments

The Jailbreak That Got Fable 5 Pulled Exists in Every Model

https://eigenwise.io/writing/the-jailbreak-in-every-model
1•KennyVan•10m ago•1 comments

Have we made a unicorn? Continuous SVG-pelican style benchmark

https://havewemadeaunicorn.com/
1•curioussquirrel•11m ago•1 comments

Naismith's Rule

https://en.wikipedia.org/wiki/Naismith%27s_rule
2•samuel2•14m ago•0 comments

Surpassing Frontier Performance with Fusion

https://openrouter.ai/blog/announcements/fusion-beats-frontier/
2•jcfrei•14m ago•0 comments

Demystifying phone unlocking tools: A technical overview – Osservatorio Nessuno

https://osservatorionessuno.org/blog/2026/05/demystifying-phone-unlocking-tools-a-technical-overv...
1•Cider9986•15m ago•0 comments

The Machine Stops (1909)

https://en.wikipedia.org/wiki/The_Machine_Stops
1•tosh•23m ago•0 comments

Telegram filter bot and Bluesky poster

https://github.com/bananaosint/bsky-poster
1•bananaosint•24m ago•0 comments

Show HN: Sabela – A Reactive Notebook for Haskell

https://sabela.datahaskell.com/
2•mchav•25m ago•0 comments

AI Slop flooding maths YouTube [video]

https://www.youtube.com/watch?v=mRO_QonhC2c
1•soupspaces•31m ago•0 comments

Bims: Biomed News

https://biomed.news/
1•XzetaU8•34m ago•0 comments

Travel preparation for parents with young kids

https://www.traveltods.world/
1•Yantso•35m ago•2 comments

General-purpose large language models outperform specialized clinical AI

https://www.nature.com/articles/s41591-026-04431-5?brid=YWdncwFKdLH5ne5BLVS2Tb5UQSQa&utm_id=97757...
3•doener•39m ago•0 comments

A zero-copy C/Python DFA engine that scrubs logs at 571 MB/s

https://github.com/thedevilhimselfcodes/guardog
1•LuciferLK•41m ago•0 comments

'A man of great appetites': what's it like to be a dictator's personal chef?

https://www.theguardian.com/film/2026/jun/09/how-to-feed-a-dictator-film
2•Michelangelo11•41m ago•0 comments

The Last Open Frontier

https://www.mikehyland.com/blog/frontier-model-government-shutdown
1•mjhyl•44m ago•0 comments

Right to Repair: The Battle You Didn't Know You Were Fighting (video)

https://www.youtube.com/watch?v=ZaX20zv-Xw4
1•mdp2021•44m ago•0 comments

Ask HN: Could someone please invite me to Lobste.rs?

1•ML0037•47m ago•0 comments

AI inequality: from GPU-poor to token-poor

https://adlrocha.substack.com/p/adlrocha-ai-inequality-from-gpu-poor
1•adlrocha•48m ago•0 comments

Show HN: Memoriq – Open-source encrypted vault for saving and searching AI chats

https://github.com/memoriqme/memoriq
1•giekaton•49m ago•0 comments

RoleDecoder

https://roledecoder.com/
1•Mohammad_1ta•50m ago•0 comments

SemanticSourceCode – Local semantic code search with Ollama and SQLite

https://github.com/TheEifelYeti/SemanticSourceCode
1•EifelYeti•53m ago•0 comments

Shipping Outside the App Store

https://keylight.dev/blog/launch-mac-app-outside-app-store/
1•dmzxnico•56m ago•0 comments

Four LTS Java Versions Get End-of-Support in a Three-Year Window (2029-2032)

https://m.slashdot.org/story/455546
2•ilreb•58m ago•0 comments

Show HN: AppLaunch – Local Service App Builder

https://applaunch.teamzlab.com/
1•mdhemalakhand•58m ago•1 comments

UNK_DeadDrop Phishing Campaign Targets Developers to Steal Cryptocurrency

https://www.proofpoint.com/us/blog/threat-insight/dont-fear-repo-unkdeaddrop-phishing-campaign-ta...
2•denysvitali•1h ago•0 comments

Ask HN: What is your blog and why should I read it?

3•chistev•1h ago•2 comments