frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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!

WSL vs Wine

1•freeopinion•3m ago•0 comments

Halide Mark III

https://www.lux.camera/halide-mark-iii/
1•tosh•4m ago•0 comments

Flu Vaccines Should Not Be This Hard

https://www.theatlantic.com/health/2026/06/flu-vaccine-acip/687466/
1•paulpauper•5m ago•0 comments

AI #171: False Flag

https://thezvi.substack.com/p/ai-171-false-flag
1•paulpauper•6m ago•0 comments

Musk's SpaceX IPO Narrative Is a Whole New Level of Bullshit

https://text.tchncs.de/chronik-des-laufenden-wahnsinns/h1elon-musk-has-spouted-his-fair-share-of-...
4•doener•6m ago•0 comments

Show Show HN: PrivatePulse – Value startup equity using secondary market data

https://www.privatepulse.online/
1•gbnt•7m ago•0 comments

Plasticity and language in the anaesthetized human hippocampus

https://www.nature.com/articles/s41586-026-10448-0
1•bookofjoe•7m ago•0 comments

Show HN: Context Mode Insight – observability layer for AI coding agents

https://context-mode.com/
1•mksglu•7m ago•0 comments

French billionaire seeks law change to leave fortune to charity

https://www.msn.com/en-in/news/insight/french-billionaire-seeks-law-change-to-leave-fortune-to-ch...
1•paulpauper•8m ago•0 comments

29th IOCC Best imaginary emulator Award, the Subleq computer (2025)

https://www.ioccc.org/2025/cable/index.html
1•gbarletta•10m ago•0 comments

Toxic pollutant from car tires reaching San Francisco Bay, scientists say

https://abc7news.com/post/toxic-pollutant-6ppd-car-tires-reaching-bay-area-waters-scientists-san-...
1•mikhael•12m ago•0 comments

Show HN: Free job postings API with 1.8M+ US jobs, 60k companies

https://bluedoor.sh/apis/job-postings
1•ahshucks•12m ago•0 comments

Water Anole

https://life-on-our-planet.fandom.com/wiki/Water_anole
1•thunderbong•13m ago•0 comments

The gamers taking on the industry to stop it switching off games

https://www.bbc.com/news/articles/c8e8e7g0r82o
3•Brajeshwar•14m ago•0 comments

Show HN: macOS motion design app built for demos and promos

https://bendansby.com/apps/movematic.html
1•webwielder2•15m ago•0 comments

What if The Million Dollar Homepage was built in 2026?

https://merca.earth/
2•cremer•22m ago•0 comments

How Image Compression Works

https://www.makingsoftware.com/chapters/image-compression
2•MatthewBF•26m ago•0 comments

Astaxanthin: Sources, Extraction, Stability, Biology and Commercial Use

https://pmc.ncbi.nlm.nih.gov/articles/PMC3917265/
2•walterbell•28m ago•0 comments

Show HN: Solectio – design, compare and share rooftop solar configurations

https://solectio.ottimai.com/
1•leomos•29m ago•0 comments

A Short History of Nearly Everything

https://en.wikipedia.org/wiki/A_Short_History_of_Nearly_Everything
1•chistev•30m ago•0 comments

YouTuber Recreates 'Star Wars' with Cardboard

https://petapixel.com/2026/05/05/youtuber-recreates-star-wars-with-cardboard/
2•PaulHoule•31m ago•0 comments

Differences Between Lodash and Ramda

https://stackoverflow.com/questions/71401443/differences-between-lodash-and-ramda
1•tosh•32m ago•0 comments

Fantasy-land: interoperability of common algebraic structures in JavaScript

https://github.com/fantasyland/fantasy-land
2•tosh•34m ago•0 comments

Show HN: Sourcelibrary.org Is Translating the Renaissance

https://sourcelibrary.org
2•dr_dshiv•38m ago•0 comments

Show HN: Sudo Report – Drudge clone for tech / AI / product

https://sudoreport.com/
2•ataturkle•39m ago•1 comments

Using OpenAI's Whisper to transcribe videos

https://byandrev.dev/en/blog/using-whisper-to-transcribe-videos/
1•mcormik•41m ago•1 comments

Show HN: GentleOS – A pair of hobby OSes for vintage 32-bit and 16-bit PCs

https://github.com/luke8086/gentleos32
4•luke8086•45m ago•0 comments

The One Meaningless Word That We All Say Too Much (2016)

https://time.com/4308036/meaningless-word-interesting/
1•ulyssys•45m ago•1 comments

When intelligence stops being as slow as we are

https://andreaturchet.github.io/blog/riflessioni_sri.html?lang=en
2•ciwrl•46m ago•0 comments

Agents, Agile, Communism, Coercion

https://elliotmorris.net/agents-agile-communism-coercion
7•demorro•47m ago•2 comments