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!

Server Migration

https://lmnt.me/blog/server-migration.html
1•speckx•1m ago•0 comments

Admin officials kill proposed rules for PFAS-contaminated sewage fertilizer

https://www.theguardian.com/environment/2026/jul/20/trump-pfas-sewage-farm-fertilizer
1•howard941•2m ago•0 comments

Das starts up and loads 700 background activities

https://eclecticlight.co/2026/07/20/how-das-starts-up-and-loads-700-background-activities/
1•Brajeshwar•3m ago•0 comments

ProEnhanceX – A 100% local, on-device AI photo studio for Android

https://play.google.com/store/apps/details?id=com.enhancex.aistudio&hl=en_US
1•swawon•3m ago•0 comments

Launch HN: Bloomy (YC S26) – AI-powered mastery learning for K-12

1•alexsouthmayd•3m ago•0 comments

Show HN: Nosignups.net: directory of open-source tools that run in-browser

1•BraveOPotato•3m ago•0 comments

Train a Harness to improve model/env-agnostic capabilities with PyTorch-like API

https://github.com/workofart/harness-training
1•megadragon9•4m ago•0 comments

A Power Trip

https://hackerfactor.com/blog/index.php?/archives/1099-On-a-Power-Trip.html
3•speckx•8m ago•0 comments

There have only been 5 ethical NBA champions in the last 25 years

https://pudding.cool/2026/06/ethical-champions/
4•gmays•10m ago•0 comments

Open Minis Is the iOS Agent I Wish Siri AI Could Be

https://www.macstories.net/reviews/open-minis-is-the-ios-agent-i-wish-siri-ai-could-be/
3•ExMachina73•11m ago•0 comments

Show HN: Take a break, play some puzzles

https://gridmino.com/
3•marko-projects•12m ago•0 comments

Yet another take on layout breakouts

https://noahliebman.net/2024/05/yet-another-take-on-layout-breakouts/
3•ankitg12•13m ago•0 comments

Made a quick quiz to check if your AI project triggers EU AI Act rules

https://tally.so/r/7Rg2y2
2•Safwane•13m ago•0 comments

Anatomy of a Room

https://eviltrout.com/blog/2026-03-23-anatomy-of-a-room/
2•chunkycapybara•13m ago•0 comments

What's Behind the Rise in Mild Autism?

https://www.theatlantic.com/family/2026/07/mild-autism-diagnosis/687998/
2•bookofjoe•15m ago•1 comments

Today IPv6 adoption exceed %50 in Google Statistics

https://www.google.com/intl/en/ipv6/statistics.html
1•xlmnxp•16m ago•0 comments

Why Banks Need 'Sleepy' Customers

https://www.library.hbs.edu/working-knowledge/why-banks-need-sleepy-customers
1•toomuchtodo•16m ago•0 comments

Unexpected events and prosocial behavior: the Batman effect [pdf]

https://www.nature.com/articles/s44184-025-00171-5
1•thunderbong•18m ago•0 comments

Spark 4.2 has a feature that could retire your vector database

https://thenewstack.io/spark-4-2-ai-workloads/
1•Brajeshwar•18m ago•0 comments

Chrome installed a global Ctrl+G keyboard shortcut to launch Gemini

https://mastodon.online/users/mwichary/statuses/116952836351215165
3•jervant•18m ago•0 comments

San Francisco restaurant gets angry backlash for AI menu images

https://www.sfgate.com/food/article/grind-unwind-ai-images-22348931.php
3•slater•18m ago•0 comments

FCC pays $340k/year to keep 100's of empty Alaska buildings wired for internet

https://www.propublica.org/article/adak-island-alaska-internet-subsidy-fcc
6•Teever•19m ago•1 comments

MyLocalHealth – looking for feedback on a public health dashboard

https://www.mylocalhealth.org/
1•omrajasekharan•23m ago•0 comments

Loitering Towards War

https://aeon.co/essays/viennas-cafes-inspired-poets-belgrades-bred-dissent
1•Michelangelo11•27m ago•0 comments

The Micropayment Trap: Why Subscription Models Win

https://blog.copyright.sh/2025/07/25/the-micropayment-trap-why-subscription-models-win/
1•tmrtn•28m ago•1 comments

Claude Plays Robotics

https://www.anthropic.com/research/claude-plays-robotics
1•shmublu•28m ago•0 comments

Fraud detection in 27ms using Postgres for real-time feature lookups

https://www.databricks.com/blog/what-happens-milliseconds-after-you-tap-pay
1•sp_from_db•28m ago•0 comments

Kimi K3: The open-weights escalation

https://www.interconnects.ai/p/kimi-k3-the-open-weights-escalation
1•pretext•28m ago•0 comments

OSS ChatGPT WebUI v4 – Projects, Agent Profiles, Server Tools, Publishing

https://llmspy.org
1•mythz•31m ago•0 comments

Multiprocessing Pool Best Practices in Python

https://superfastpython.com/multiprocessing-pool-best-practices/
1•ankitg12•32m ago•0 comments