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!

Half-Life 2 running natively on HaikuOS

https://discuss.haiku-os.org/t/haiku-nvidia-porting-nvidia-driver-for-turing-gpus/16520?page=18
2•m0do1•2m ago•0 comments

The Collapse at Netflix Signals the End of Audience Capture

https://www.honest-broker.com/p/the-collapse-at-netflix-signals-the
1•sleepyguy•2m ago•0 comments

Controlled Burns Have Saved Giant Sequoias

https://e360.yale.edu/digest/controlled-burns-sequoias
1•YaleE360•2m ago•0 comments

Show HN: AgentWatch – Local MCP proxy that catches agents leaking your data

https://github.com/dhanraj176/agentwatch
1•dhanrajpandya•3m ago•0 comments

Why hasn't AI increased unemployment?

https://twitter.com/PeterMcCrory/status/2079979321607745905
1•gk1•3m ago•0 comments

Perfect Transcribe (macOS)

https://apps.apple.com/gb/app/perfect-transcribe/id6738916290?mt=12
1•emadda•4m ago•1 comments

LLMs Are Still Toxic, Stuck in the Past, and Bad at Math

https://www.eyosias.dev/blog/llms-are-still-toxic-and-bad-at-math
1•Eyosias_x5•4m ago•0 comments

China to boost wind and solar generation by more than 50% in five years

https://www.reuters.com/business/energy/china-boost-wind-solar-generation-by-more-than-50-five-ye...
2•xbmcuser•9m ago•2 comments

Stinkpot: SQLite-Backed Shell History

https://tangled.org/oppi.li/stinkpot
1•nerdypepper•11m ago•0 comments

Nvidia Nemotron 3 Ultra – open weight model

https://research.nvidia.com/labs/nemotron/Nemotron-3-Ultra/
1•andsoitis•11m ago•0 comments

Show HN: Devdex – a pixel-art identity page for builders

https://devdex.tech/arcofchanu
1•the1ronit•15m ago•1 comments

Em dashes are fucking amazing

https://psychotechnology.substack.com/p/em-dashes-are-fucking-amazing
3•surprisetalk•15m ago•1 comments

Em Dash and AI

https://lebaron.sh/posts/em-dash-ai-tell/
2•kaderovski•15m ago•3 comments

The Omega Seamaster Professional 300M that surprised me

https://www.kulman.sk/en/omega-seamaster-professional-300m-36mm/
1•ig0r0•15m ago•0 comments

Programming language file extensions that match ISO 3166-1 alpha-2 country code

https://www.bruh.ltd/blog/programming-language-file-extensions-that-match-an-iso-3166-1-alpha-2-c...
2•speckx•21m ago•0 comments

Podcast Apps: A Framework for Dying Slowly with Dignity

https://www.uncommonapps.nyc/p/podcast-apps-a-framework-for-dying
1•1123581321•23m ago•0 comments

Pellet guns against India GenZ protestors. Video conference by opposition leader

https://www.youtube.com/watch?v=EnM-UJhxIwg
2•Guestmodinfo•28m ago•0 comments

A Functional Taxonomy of World Models

https://drfeifei.substack.com/p/a-functional-taxonomy-of-world-models
1•andsoitis•29m ago•0 comments

Indian govt orders GitHub to block Bitchat

https://www.moneycontrol.com/europe/?url=https://www.moneycontrol.com/technology/indian-govt-orde...
6•notThrowingAway•30m ago•3 comments

TPS, Pressure-Testing Product Ideas, Nokia's Demise – Food for Agile Thought 554

https://age-of-product.com/food-agile-thought-554-toyota-production-system/
1•swolpers•30m ago•0 comments

UK AISI / CAISI Preliminary Assessment of Kimi K3's Cyber Capabilities

https://www.nist.gov/news-events/news/2026/07/uk-aisi-caisi-preliminary-assessment-kimi-k3s-cyber...
1•0in•31m ago•0 comments

I've been working on a podcast app that goes far beyond a sleep timer

https://apps.apple.com/nl/app/sleepcast/id6744658836
1•aderijke•32m ago•0 comments

Programming Languages Are Authoring Tools for Platforms

https://www.makonea.com/en-US/blog/programming-languages-are-authoring-tools-for-platforms
1•jdw64•34m ago•0 comments

Do It by Hand First: Method for Keeping Critical Thinking Alive in the Age of AI

https://blog.parentsguidetoai.ca/do-it-by-hand-first-critical-thinking.html
1•speckx•35m ago•0 comments

Galilean Limits of Electromagnetism

https://johncarlosbaez.wordpress.com/2026/07/18/galilean-limits-of-electromagnetism/
1•surprisetalk•35m ago•0 comments

Mapping infrastructure across East Asia and the US

https://oswarld.github.io/gridos/en/
1•haebom•37m ago•0 comments

Orcas filmed ramming sunfish so hard it explodes in cloud of scraps

https://www.abc.net.au/news/science/2026-07-23/orcas-filmed-ramming-sunfish-so-hard-they-explode/...
2•debo_•38m ago•0 comments

Show HN: TechStacks – Popular Tech news summarized, including comments

https://techstacks.io
1•mythz•39m ago•0 comments

Show HN: Uploads.sh – the missing upload command for coding agents (open-source)

https://uploads.sh/
2•zachdunn•40m ago•0 comments

Show HN: X402vps – Docker containers for AI agents, paid per hour with USDC

https://x402vps.com
3•z1z2z3•40m ago•0 comments