15 karma · joined Nov 19, 2026 (1w ago) · 9 submissions
comment 3d ago · link · parent
It compiles instantly (a full debug rebuild), starts instantly, have really nice GUI and are insanely fast and responsive. The codebase is very understandable and easy to hack on, and has as set of great abstractions that make all the supposedly annoying things in C (strings, memory allocation, multi threading) quite nice to use.
If you insist on using the C standard library and malloc()ing all over the place, using null terminated strings, complicated lifetime hierarchies and infinitely "generic code" (where you end up using max 1 or 2 different implementations/types in the end), then yes, you will have a bad time in C, but how about just not doing that?
comment 4d ago · link · parent
comment 1w ago · link · parent
With unsigned you only need one check: 'i < bound', it works always, regardless how i is computed, and it doesn't matter if the calculation overflowed or wrapped around, still works.
With signed you need: 'i >= 0 && i < bound', and you need to be very careful how you calculate i because overflow is undefined behavior.
comment 1w ago · link · parent
And how would iteration look like? It's a million times faster and easier to just navigate around a 3d model, click on the feature to edit, start editing. Describing which feature for the AI to change seems like a nightmare.
comment 1w ago · link · parent
comment 1w ago · link · parent
Writing *p++ = c;
to append to a buffer is just insanity, I don't know why so many people like to write "clever" code like this.
I have a buf_putc(struct buf *b, int c); which does bounds checking (and potentially growing the memory), and I've used this kind of abstraction for decades.
Same with "use after free" bugs, WHY are people malloc()ing and free()ing all over the place, and storing away pointers to things all over the place (people just looove their "objects" and stuffing pointers to things into structs and classes so now you have these insane lifetime couplings).
Ban pointer arithmetic, ban null terminated strings, ban malloc() and free() (and similar general purpose allocators), ban passing arrays without a length (and preferable have a struct ptrlen {} and pass it by value) and you eliminate 99.9999% of these bugs.
Multi threading in C is genuinely difficult because you get zero help from the compiler, but these low hanging bounds and lifetime problems can easily be eliminated with simple abstractions.