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!

FrontierCode

https://cognition.ai/blog/frontier-code
1•streamer45•52s ago•0 comments

In Support of Mandatory Nucleic Acid Synthesis Screening and Recordkeeping

https://screendna.org/
1•JumpCrisscross•2m ago•0 comments

China's Lab-Grown Diamonds Emerge as Unlikely Winner in AI Boom

https://www.bloomberg.com/news/articles/2026-06-02/china-s-lab-grown-diamonds-emerge-as-unlikely-...
1•JumpCrisscross•2m ago•0 comments

County-level map of air conditioning in the U.S.

https://twitter.com/StatisticUrban/status/2062887160743641293
2•JumpCrisscross•3m ago•0 comments

Nine Fours – your 36 top wiki picks across media

https://0g.software/nine-fours
1•0gs•5m ago•1 comments

Controllable Generative Modeling in Minecraft by Training on Billions of Cubes

https://arxiv.org/abs/2604.22847
2•PaulHoule•5m ago•0 comments

Show HN: macOS Apps on Linux: SwiftUI for Linux (and AppKit, NSFoundation, etc.)

https://github.com/Lore-Hex/QuillUI
2•ljlolel•6m ago•0 comments

PostgreSQL 19 Beta: The Four Features You'll Feel

https://thebuild.com/blog/postgresql-19-beta-the-four-features-youll-actually-feel/
1•pgedge_postgres•6m ago•0 comments

Avoiding wasteful electricity use while self hosting LLMs

https://patrickmccanna.net/fixing-a-stuck-ollama-runner-and-building-a-gpu-watchdog/
1•0o_MrPatrick_o0•7m ago•0 comments

Why LLM Inference Needs a New Kind of Router

https://www.modular.com/blog/why-llm-inference-needs-a-new-kind-of-router-part-1
1•aviziva•8m ago•0 comments

The Korean Stock Market Just Crashed Sunday Night but the Nasdaq Is Rising

https://247wallst.com/investing/2026/06/08/the-korean-stock-market-just-crashed-sunday-night-will...
2•carabiner•8m ago•1 comments

The Third Generation of Apple's Foundation Models

https://machinelearning.apple.com/research/introducing-third-generation-of-apple-foundation-models
1•2bit•10m ago•1 comments

The World Needs Replicators: Do science in your home so we know what's true

https://chillphysicsenjoyer.substack.com/p/the-world-needs-replicators
1•crescit_eundo•13m ago•0 comments

'Unbelievable how accurate': How paid influencers hype Polymarket's odds

https://www.politico.com/news/2026/06/05/polymarket-paid-political-influencers-00932789
4•momentmaker•15m ago•0 comments

Apple Passwords Now Auto Fixes Weak and Compromised Passwords with Agentic AI

https://www.macrumors.com/2026/06/08/apple-passwords-can-now-automatically-fix-passwords-with-age...
1•7777777phil•17m ago•1 comments

Performance Mantras

https://hazn.com/performance-mantras
2•hazn•18m ago•0 comments

Show HN: RunAPI – one API for AI video, image, music, audio, and LLMs

https://runapi.ai/
1•billy42•18m ago•0 comments

Regrade

https://regradeapp.tech/#cta
1•preston_s•18m ago•0 comments

An open letter to office suite users, just before the Euro-Office announcement

https://blog.documentfoundation.org/blog/2026/06/08/an-open-letter/
8•jethronethro•18m ago•1 comments

Agents are getting phone numbers. The reason is not obvious

https://newsletter.gtmengineering.ai/p/a-phone-carrier-for-agents-not-what
1•alexjl1226•19m ago•0 comments

Vibe Diaries: Training Nanochat

https://www.vibediary.dev/essays/nanochat
1•stopachka•19m ago•0 comments

Donut Lab's 'solid-state' battery exposed as regular li-ion in investigation

https://electrek.co/2026/06/08/donut-lab-solid-state-battery-exposed-lithium-ion-fraud/
3•virgildotcodes•19m ago•0 comments

Search as Code: The End of the Query-Results Loop

https://medium.com/@tbelbek/perplexity-search-as-code-why-ai-agents-now-write-python-to-find-info...
1•rdstrtwlkr•20m ago•0 comments

JMB585 (SATA Chip) Silent Data Corruption – Root Cause Analysis and Kernel Patch

https://github.com/artmoty-dev/n5pro-jmb585-fix
1•Modified3019•26m ago•0 comments

Judge Strikes Down $100k Fee for Skilled Foreign Worker Visas

https://www.nytimes.com/2026/06/08/us/politics/judge-visa-skilled-workers-fee-trump.html
2•ceejayoz•27m ago•1 comments

Paving the Way for Agents in Biology

https://www.anthropic.com/research/agents-in-biology
1•dataking•30m ago•0 comments

Show HN: Generate production grade Lottie animations with Claude Code

https://twitter.com/konstipaulus/status/2064011863889788972
1•K9-P5•30m ago•0 comments

Yale reinstates SAT, ACT requirement after six years of flexible policy

https://yaledailynews.com/articles/yale-reinstates-sat-act-requirement-after-six-years-of-flexibl...
2•loughnane•31m ago•1 comments

One Token at a Time

https://unvoid.substack.com/p/one-token-at-a-time
2•nullscribe•34m ago•0 comments

AI to Pay for All Americans' Content?

https://ryanspahn.substack.com/p/ai-to-pay-for-all-americans-content
2•paul7986•35m ago•0 comments