News for hackers. Stuff that matters.
Re:A Modern Web App in C by ricardobeat on Monday October 12, 2026 @04:51PM (#50062907)
C3 lang gives you defer + a lot of significant ergonomic improvements right now: https://c3-lang.org
Re:A Modern Web App in C by feelamee on Monday October 12, 2026 @06:02PM (#50063687)
and what it does take away? most "better C" languages basically looks like C++ (except zig, maybe). Nobody write something real in them, so nobody knows about their pitfalls.
Re:A Modern Web App in C by ricardobeat on Monday October 12, 2026 @08:01PM (#50064765)
What do you mean by that?

n=1 but I've probably written (sic - a lot of AI) over a million lines of it this year. I like it precisely because it is nothing like C++, it's really just a better C, and the compiler / tooling is almost as good as Go.

Re:A Modern Web App in C by glouwbug on Monday October 12, 2026 @06:35PM (#50064033)
C3 is very good
Re:A Modern Web App in C by bogdanoff_2 on Monday October 12, 2026 @11:08PM (#50066104)
> fn int foo(){

Eh? What's the point of a `fn` keyword if I can't `grep -r "fn foo"`?

Re:A Modern Web App in C by rurban on Tuesday October 13, 2026 @01:20AM (#50067087)
gcc also gives you defer nowadays, called cleanup