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!

Silicon Graphics founded November 9, 1981

https://dfarq.homeip.net/silicon-graphics-founded-november-9-1981/
1•oldnetguy•19s ago•0 comments

A sandbox escape for iOS 26.0 – 26.7.2 / 27.2

https://github.com/forcequitOS/worse_query
1•matthieu_bl•2m ago•0 comments

SnapFire FSR: Web SSR Benchmarks

https://snapfirers.com/fsr/benches
1•excsn•3m ago•0 comments

Claude Opus was too talkative, so I've built a custom summary rendering layer

https://i.imgur.com/HP3WE6q.png
1•szymeo•3m ago•1 comments

Show HN: Agentlink – Messaging for Claude Code agents on different accounts

https://github.com/tombaldwin/agentlink
1•tombaldwin•5m ago•0 comments

Show HN: Natel, a self-hosted contacts editor for CardDAV servers in 20MB of RAM

https://github.com/KewinDousse/natel
1•Protectator•5m ago•0 comments

Henneman's Size Principle Explained: How Your Body Builds Muscle

https://www.clemfitness.com/post/how-to-build-muscle-henneman-s-size-principle-explained
1•thunderbong•5m ago•0 comments

Rooting Multiple ISPs with Hyperglass

https://hyperpwn.xyz/
1•acossta•5m ago•0 comments

I reverse engineered the Kendryte K230 NPU compiler and simulator

https://github.com/el3tty/nncase/blob/k230/docs/k230-branch.md
1•eleviant•6m ago•0 comments

Worse_query iOS Critical Vulnerability

https://twitter.com/binance/status/2120093246399430770
1•svenfaw•8m ago•0 comments

Don't buy AR glasses

https://blog.yaros.ae/dont-buy-ar-glasses/
2•Bluestein•8m ago•0 comments

Memory and RAG tools for AI agents, scored

https://rankings.leffke.com/categories/memory-rag
1•rcleffke•10m ago•0 comments

How a Slide Rule Works

https://sliderule.bergworks.org/
1•mberg•11m ago•1 comments

Ask HN: How does your small company handle customer security questionnaires?

1•itslupichuk•12m ago•1 comments

How often does your iOS keyboard break a word you typed correctly?

https://pilcrowtype.com/blog/keyboard-false-corrections/
1•eexxcc•12m ago•1 comments

A better way to install new software within LisaGUI

https://blog.yaros.ae/a-better-way-to-install-software/
2•speckx•13m ago•0 comments

The Data Structure Making LLMs Faster: Radix Trees [video]

https://www.youtube.com/watch?v=fraojkzW7MM
1•lroe•15m ago•0 comments

Show HN: 25 years of municipal finances queried in-browser via DuckDB-WASM

https://taxwatchdog.ca/
2•sentientcoders•15m ago•0 comments

Show HN: NeuroBrix – PyTorch-free local inference with a Rust grammar engine

https://github.com/NeuroBrix/neurobrix/releases/tag/v0.6.5
2•benkelaya•15m ago•0 comments

Your Video on the macOS lock screen needs temporal sub-layers, even empty ones

https://museslabs.org/blog/macos-lock-screen/
1•tharropoulos•16m ago•0 comments

Anthropic Targets $1.4T Valuation in Blockbuster IPO

https://www.bloomberg.com/news/articles/2026-11-10/anthropic-targets-64-4-billion-ipo-nearing-spa...
2•jorisw•17m ago•1 comments

Sop Development and Consulting in the UAE

https://www.mbgcorp.com/ae/risk-advisory/standard-operating-procedure-sop/
1•afadah•18m ago•0 comments

Anthropic seeks to be valued at more than $1T

https://finance.yahoo.com/technology/ai/articles/anthropic-seeks-valued-1-02-115319195.html
2•jorisw•18m ago•0 comments

DMARC Adoption 2026: 30.4% of 5.5M Domains, 12.8% Enforce

https://dmarcguard.io/research/email-authentication/
1•meysamazad•20m ago•0 comments

A Read-Only AI Reviewer for Forgejo Pull Requests

https://blog.hofstede.it/a-read-only-ai-reviewer-for-forgejo-pull-requests/
1•meysamazad•20m ago•0 comments

Ableton Live 13

https://www.ableton.com/en/live/
2•phaser•21m ago•0 comments

Static site generators are weird

https://evanhahn.com/static-site-generators-are-weird
1•meysamazad•21m ago•2 comments

AI Users have workdays up to 90 min longer than non-users

https://www.activtrak.com/news/productivity-lab-ai-users-longer-workdays/
2•gosen•21m ago•1 comments

Circle of Fifths – interactive wheel with sound

https://fifths.io/tools/circle-of-fifths/
1•avel•21m ago•0 comments

Show HN: Simstim – local call transcription on Mac into .md files

https://github.com/pgrekovich/simstim
1•pgrekovich•22m ago•0 comments