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!

30-Year Sentence for Transporting Zines Is a Five-Alarm Fire for Free Speech

https://theintercept.com/2026/06/26/daniel-sanchez-estrada-zines-prairieland-free-speech/
1•xrd•44s ago•0 comments

New mathematical operator just dropped – reality's kernel just got an upgrade

https://zenodo.org/records/20976243
1•CarloLoopTheory•5m ago•0 comments

Code responsibly, don't drink and vibecode

https://usama.leaflet.pub/3mpdjez6cz22g
1•iarchetype•6m ago•0 comments

Show HN: Rendering Markdown with LaTeX in the Terminal

https://mil.ad/blog/2026/latex-in-markdown.html
2•playnext•14m ago•1 comments

Show HN: Looped Whisper (FOSS) – Voice transcription menubar app for macOS

https://github.com/loopedautomation/whisper
1•RatulMaharaj•14m ago•0 comments

Build System Improvements, Centralized Overview, etc.

https://gist.github.com/rcalixte/0afb119cbcc130c21063839f65b53ab7
1•rcalixte•20m ago•0 comments

The Number Nobody Knows

https://motplot.app/helloworld
1•jamwise•20m ago•1 comments

Show HN: Adipoli: a hand-wired keyboard for opposable thumbs

https://codeberg.org/sudobangbang/adipoli
2•sudo_bangbang•28m ago•0 comments

Jimmy is a tool to convert your notes from different formats to Markdown

https://marph91.github.io/jimmy/
3•CTOSian•33m ago•0 comments

Microsoft Bought a Nuclear Plant

https://moai.studio/blog/posts/microsoft-bought-a-nuke-plant.html
2•ionwake•35m ago•2 comments

France Is Too Hot for Shutters and Ceiling Fans

https://www.theatlantic.com/ideas/2026/06/france-air-conditioning-failure/687723/
4•paulpauper•36m ago•1 comments

Higher Ed Is Sorry

https://www.theatlantic.com/ideas/2026/06/higher-education-universities-public-trust/687714/
2•paulpauper•37m ago•0 comments

Show HN: Drift, write LLM agents in English and transpile to async Python

https://github.com/rileyq7/drift
2•rileyq12•38m ago•0 comments

The Memory Tax

https://bycig.substack.com/p/the-memory-tax
2•paulpauper•38m ago•0 comments

Token Capital Efficiency

https://kmad.ai/Token-Capital-Efficiency
2•kmad•41m ago•0 comments

Utility boss warns US faces blackouts due to power supply shortfall

https://www.ft.com/content/14d2e591-7cd5-4456-904f-1b7fdc5cbc1a
3•Geekette•41m ago•2 comments

Mel Brooks is 100 today

https://www.theatlantic.com/culture/2026/06/long-live-mel-brooks/687730/
10•shellback3•43m ago•0 comments

I made a tool to check out open source websites

https://github.com/Frenxys/portfolio-finder
2•Frenea•43m ago•0 comments

Visual Basic on the PC with Windows 3.1

https://stonetools.ghost.io/visualbasic-win31/
2•TMWNN•47m ago•0 comments

Rats and mice are mutating and becoming resistant to poison, researchers warn

https://www.independent.co.uk/news/world/americas/rats-mice-mutating-poison-resistance-warning-b3...
3•Vaslo•50m ago•0 comments

Show HN: NameSnag – Get alerted when a watched domain appears available

https://namesnag.io
2•pro_methe5•54m ago•0 comments

Strong Relationships, Loosely Held

https://www.jerry.wtf/posts/strong-relationships-loosely-held/
3•personjerry•54m ago•1 comments

There are 5.7M more childless women of prime child-bearing age than expected

https://carsey.unh.edu/publication/factors-contributing-demographic-cliff-more-us-women-childbear...
2•loughnane•58m ago•1 comments

My First Encounter with a Political Spambot

https://tombedor.dev/political-spam/
3•jjfoooo4•58m ago•0 comments

Question: Is matching fixed regexes with back-references in P?

https://branchfree.org/2019/04/04/question-is-matching-fixed-regexes-with-back-references-in-p/
1•fanf2•1h ago•0 comments

Ask HN: Books about Genetic Algorithms

6•andyjohnson0•1h ago•1 comments

POSIX Is Not a Shell

https://alganet.github.io/blog/2026-06-28-12-POSIX-Is-Not-A-Shell.html
2•gaigalas•1h ago•0 comments

Show HN: I reverse-engineered the RLF log format used by REMUS underwater drones

https://github.com/isaacgerg/remus-rlf-reader
1•ipunchghosts•1h ago•0 comments

Technology and Power

https://www.chrbutler.com/technology-and-power
3•delaugust•1h ago•0 comments

Attention is all we have: A conjectural theory of cognitive inequality

https://davidbessis.substack.com/p/attention-is-all-we-have
3•Luc•1h ago•0 comments