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!

Query Plan Rewriting in Postgres

https://theconsensus.dev/p/2026/09/13/query-plan-rewriting-in-postgresql.html
1•plaur782•1m ago•0 comments

Free Tools for Q2C Automation

https://revexos.com/tools
1•revexos•1m ago•1 comments

Google Cloud’s U4 compute

https://cloud.google.com/blog/topics/financial-services/ultra-low-latency-solution-with-u4-enable...
1•ilreb•3m ago•0 comments

A sense of control over workplace technology linked to wellbeing, productivity

https://workplaceinsight.net/a-sense-of-control-over-workplace-technology-may-be-linked-to-wellbe...
1•mikelgan•4m ago•0 comments

Show HN: CrowDB – an iceberg table storage single Docker container

https://buzzcrow.github.io/blog/run-iceberg-in-one-container/
1•crowdb•5m ago•0 comments

A Cop's Case for Flock

https://worksinprogress.co/issue/a-cops-case-for-flock/
1•skadamat•5m ago•0 comments

The Dawn of the Age of the Exoskeleton

https://theconversation.com/the-dawn-of-the-age-of-the-exoskeleton-281804
1•speckx•6m ago•0 comments

Christa Pike's lawyers hold press conference after she regains consciousness

https://www.theguardian.com/us-news/live/2026/oct/07/christa-pike-lawyers-live-updates-tennessee-...
2•MaysonL•6m ago•0 comments

FortiBleed still a bleeding nuisance as FBI confirms ongoing attacks

https://www.theregister.com/security/2026/10/07/fortibleed-still-a-bleeding-nuisance-as-fbi-confi...
2•Bender•9m ago•0 comments

Trump Mobile customers' data dumped – and some never even received their device

https://www.theregister.com/security/2026/10/06/trump-mobile-customers-data-dumped-and-some-never...
3•Bender•10m ago•0 comments

Trade group crunches numbers on Trump's impossible push for 100% US-made tech

https://arstechnica.com/tech-policy/2026/10/trade-group-crunches-numbers-on-trumps-impossible-pus...
2•Bender•11m ago•0 comments

Biohub leads $1.8B initiative to build AI-ready biological datasets

https://biohub.org/news/virtual-biology-initiative-expansion/
1•maksimilian•12m ago•0 comments

Tecotype: macOS mail app for professionals who live in their mailbox

https://tecotype.com/threads
1•sea-gold•12m ago•0 comments

Show HN: Configstream – Live config for Spring Boot via MongoDB change streams

https://github.com/configstream/configstream
1•reachkhajam•13m ago•0 comments

An OpenAI Insider Explains Why He Quit [video]

https://www.youtube.com/watch?v=JIMXEuT_ZAU
1•ptrhvns•16m ago•0 comments

IBM's Selective Sequence Electronic Calculator (2003)

https://www.columbia.edu/cu/computinghistory/ssec.html
1•goshtasb•17m ago•0 comments

Ukrainian drones swarmed Moscow last night

https://twitter.com/actfast/status/2107691638151950741
3•znnajdla•17m ago•0 comments

DatCal

https://play.google.com/store/apps/details?id=datyaltech.android.familycal&hl=en
1•makdatyal•18m ago•0 comments

LC-3 Assembly Tutor-AI tutor that explains what the machine is doing

https://ai-assembly-tutor-v2-9a6d593b-1.telnyxcompute.com/
1•harpreetseehra•19m ago•0 comments

Open source 160 sound visualization experiments

https://www.kagan.in/iwrzwr/visual-archive/
3•kaganin•20m ago•0 comments

My static site was serving my internal docs

https://tminuslabs.space/serving-secrets
1•tminuslabs•21m ago•0 comments

Show HN: Trigora – durable execution without history replay

https://github.com/trigora-dev/trigora
1•hypervs•22m ago•0 comments

Show HN: Bigwords.page – Turn any screen into a sign. The URL is the app

https://bigwords.page/
2•SpeakingOfBrad•22m ago•1 comments

Show HN: Luke – Voice planning for coding agents

https://tryluke.dev/
2•cpan22•22m ago•0 comments

AsyncAPI Initiative

https://www.asyncapi.com/en
1•saikatsg•23m ago•0 comments

Nokia-style Android launcher – Simple Dumbphone

https://nokiaretrophone.mr-ahhk1412.chatgpt.site/
1•ahhk•23m ago•0 comments

Show HN: Srl – Angular-style web components with no build step

https://github.com/BernardoGiordano/srl
1•berngiordano•23m ago•0 comments

Redundancy Is the Engine of Progress

https://world.hey.com/dhh/redundancy-is-the-engine-of-progress-76499402
2•gpi•24m ago•0 comments

Boredpolymath/Truth-Beacon

https://github.com/boredpolymath/truth-beacon
1•boredpolymath•24m ago•0 comments

Morning Coffee Simulator

https://coffee.9000ish.uk/
2•gregsadetsky•25m ago•0 comments