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•10mo 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•10mo ago
Finally!

Number in man page titles e.g. sleep(3)

https://lalitm.com/til-number-in-man-page-titles-e-g-sleep-3/
1•thunderbong•25s ago•0 comments

Verbatim 140W GAN: One of the first chargers with USB PD 3.2 AVS (SPR) support

https://charge-test.com/verbatim-mini-gan-charger-140w-review-one-of-the-first-chargers-with-full...
1•StainX•1m ago•0 comments

Show HN: I built an Open-source Dropbox/Google Drive BOYB(Bring your own bucket)

https://github.com/zmeyer44/Locker
1•Zm44•1m ago•0 comments

Talk about PPU (Parallel Processing Unit) increasing CPU speeds exponentially

https://www.youtube.com/watch?v=ZiQxxzCHLvo
1•openhw•5m ago•0 comments

Industrial Policy for the Intelligence Age

https://openai.com/index/industrial-policy-for-the-intelligence-age/
1•salkahfi•6m ago•0 comments

Avoid Concatenation in Log Statements

https://blog.bonnieeisenman.com/blog/avoid-concatenation-in-log-statements/
1•luu•7m ago•0 comments

Show HN: Beat Darwin

1•ecosystemj•8m ago•0 comments

Show HN: I built lightweight LLM tracing tool with CLI

https://github.com/SKE-Labs/lightrace
1•skele•8m ago•1 comments

GlueClaw: Use Claude subscription in OpenClaw again

https://github.com/zeulewan/glueclaw
1•zeulewan•9m ago•1 comments

Show HN: Browser-based EXIF remover – no upload, runs offline via WASM

https://picshift.app/metadata-remover/
2•pod4g•13m ago•0 comments

Drug safety intelligence API – 1M+ FDA adverse events in one call

https://pharma-signal.com
1•Niteowlpt•15m ago•0 comments

Show HN: I just built a MCP Server that connects Claude to all your wearables

https://pacetraining.co/
1•anton_salcher•16m ago•2 comments

Tips and tricks to avoid cloning in Rust

https://antoine.vandecreme.net/blog/avoiding-clone/
1•avandecreme•20m ago•0 comments

Ask HN: How do you escape golden handcuffs at FAANG?

2•oumua_don17•20m ago•3 comments

RISC-V Linux BusyBox Single Board Notebook

https://tomlarkworthy.github.io/lopebooks/notebooks/@tomlarkworthy_linux-sbc.html
1•tlarkworthy•24m ago•0 comments

Career-Ops: How I Built My Own AI Job Search Tool

https://santifer.io/career-ops-system
1•futurecat•25m ago•0 comments

Making Gamedev Tooling For Windows 3.1 in Turbo C++ [video]

https://www.youtube.com/watch?v=-7mc-D5V4L8
1•xyproto•28m ago•0 comments

Nanoscale Vacuum-Channel Transistor

https://en.wikipedia.org/wiki/Nanoscale_vacuum-channel_transistor
1•akshatjiwan•32m ago•0 comments

Texas Republican Called Out for Sharing AI Rendering of Rescued Soldier

https://www.mediaite.com/media/news/texas-republican-called-out-for-sharing-ai-rendering-of-rescu...
1•01-_-•32m ago•0 comments

Anomaly detection with nothing but Welford's algorithm and a KV store

https://uriv.me/blog/anomaly-detection-with-welford-and-kv
3•birdculture•43m ago•0 comments

All GANs No Brakes

https://mayberay.bearblog.dev/all-gans-no-brakes/
1•mugamuga•45m ago•0 comments

Paramera modified carbon fiber hood

https://www.porsche-km.com/productinfo/192708.html
1•edl8888•49m ago•0 comments

NIMBY Rails

https://store.steampowered.com/app/1134710/NIMBY_Rails/
10•altilunium•51m ago•0 comments

Show HN: Reverse-engineered the FPGA bitstream using Claude Code

https://github.com/14sea/Cyclone_CRAM_Mapper
4•14sea•51m ago•1 comments

Hell Is a World in Which Everybody Writes Like Axios (2022)

https://newrepublic.com/article/167857/axios-smart-brevity-book-hell-world
2•Tomte•51m ago•1 comments

Euro-Office – Your sovereign office

https://github.com/Euro-Office
40•XzetaU8•1h ago•11 comments

College instructor turns to typewriters to curb AI use, teach life lessons

https://apnews.com/article/typewriter-ai-cheating-chatgpt-cornell-ce10e1ca0f10c96f79b7d988bb56448b
2•1vuio0pswjnm7•1h ago•2 comments

Disposable Tools Manifesto

https://blog.vtemian.com/post/disposable-tools-manifesto/
1•vtemian•1h ago•0 comments

AI Damaged a Friendship

https://www.bartmol.io/how-ai-damaged-a-friendship/
2•Maulwurf•1h ago•0 comments

Vincelwt/gloomberb: Finance terminal, in your terminal

https://github.com/vincelwt/gloomberb
1•rcarmo•1h ago•0 comments