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!

Just testing my memory safe web browser

1•pizlonator•20s ago•0 comments

Necker, 1872: "An optical phænomenon on viewing a figure of a geometrical solid"

https://zenodo.org/records/1430991
1•akkartik•3m ago•1 comments

Piper and Solaar kept breaking So I made my own

https://github.com/DonGeronimo7/mouse-control
1•Dongeronimo7•4m ago•0 comments

ATR Rules to Google SecOps Converter for Detection Engineers

https://github.com/ajaynyayapathi/ATR-to-Yara-L-Converter
1•nvajay•5m ago•0 comments

Mini PC Database

https://awesomeminipc.com/
2•Crier1002•11m ago•0 comments

OpenAI: "We use ... de-identified data to improve ChatGPT"

https://twitter.com/markchen90/status/2097400166554993041
1•nycdatasci•14m ago•1 comments

"What Is an 'AI Warning Shot'?" (2024)

https://gwern.net/blog/2024/sydney
1•simonpure•18m ago•0 comments

Show HN: TUI Markdown reader with beeline support

https://github.com/seymores/mdr
1•seymores•20m ago•0 comments

Better coding agents need more than better models

https://github.com/Wholiver/metis
2•oliverhuchenrui•23m ago•0 comments

Your built-in router VPN might be more trouble than it's worth

https://tailscale.com/blog/built-in-router-nas-vpns
1•soheilpro•26m ago•0 comments

How Poor People Buy Cars

https://abio.substack.com/p/how-poor-people-buy-cars
14•barry-cotter•28m ago•2 comments

Dopamine Sites Sell Nothing, and People Cannot Get Enough

https://www.nytimes.com/2026/09/11/world/asia/dopamine-sites-popularity.html
3•mistersquid•28m ago•0 comments

What Is Bending Spoons?

https://www.s-1.site/s/bending-spoons-a-capital-cycle-play.html
3•anthonybourdain•29m ago•0 comments

ASI existential risk: reconsidering alignment as a goal

https://michaelnotebook.com/xriskbrief/
2•vinhnx•29m ago•0 comments

Why Your Memory API Benchmarks Are Probably Inflated and Misleading

https://chatsorter.com
1•JacobH1234•32m ago•0 comments

Cohere's North Mini Code Megakernel Serving Engine

https://cohere.com/blog/megakernels
2•gmays•37m ago•0 comments

Build Agentic Memory That Keeps Your Loops Alive and Sharpens Them Every Run

https://memanto.ai/blog/agentic-memory-course-keep-loops-alive
1•supportm•40m ago•0 comments

1.1.1.1 now supports post-quantum DNSSEC, all 2,420 bytes of it

https://blog.cloudflare.com/post-quantum-dnssec-1111/
4•vg•42m ago•0 comments

Preview Your Website on iPhone Duo

https://progressier.com/iphone-duo-simulator
1•kbst•43m ago•0 comments

Reduced AI cheating on a long task from 72% to 0 with 190 token agreement prompt

https://www.echohive.ai/grok-integrity-agreement-less-cheating
1•echohive42•44m ago•0 comments

The Last Essay

https://medium.com/human-parts/the-last-essay-e8ad0b0aa921
1•kashnote•46m ago•0 comments

Proof of Well-ordering of Y sequence

https://github.com/Phyrion1343/1Y-Well-Ordering-Lean/tree/main
2•nkochavi•49m ago•1 comments

river-classic - dynamic tiling Wayland compositor with flexible configuration

https://codeberg.org/river/river-classic
1•modinfo•50m ago•0 comments

Mathematicians Confront the AI Apocalypse

https://www.scientificamerican.com/article/mathematicians-confront-the-ai-apocalypse/
3•jonbaer•50m ago•0 comments

Aiope – An on-device AI agent for Android (terminal, browser, SSH, MCP)

https://github.com/XNet-NGO/aiope
3•xnet-admin•54m ago•0 comments

Discovery Loop is raising again, now at $50B valuation

https://www.businessinsider.com/jeff-deans-startup-discovery-loop-is-eyeing-a-valuation-2026-9
2•utiiiD•1h ago•0 comments

Story Beyond the Eye: Glyph Positions Break PDF Text Redaction

https://arxiv.org/abs/2206.02285
1•jumpocelot•1h ago•0 comments

Harness as a Service

https://www.harnessasaservice.dev/
1•iacguy•1h ago•0 comments

Micron's Taiwan workers to get rewards worth up to 68 months of pay

https://www.reuters.com/world/asia-pacific/microns-taiwan-workers-get-rewards-worth-up-68-months-...
4•teleforce•1h ago•0 comments

Dance MIDI Sample Pack Creator

https://monictheory.com/genre/dance/
1•song_synth•1h ago•0 comments