by henning · 2y ago · 0 comments
Depending on the situation, memory layout could be trivial (copying 200 bytes once at startup vs. not in a way that should never be user-perceptible and difficult to even measure) or actually a big deal (chasing down pointers upon pointers in a tight inner loop). It's entirely situational. To dismiss all of that as "trivial" and saying it will "never" make a difference is not helpful. There are a lot of shitty apps that are impossible to get running reasonably without a total rewrite and their shitty use of memory is part of that.
Through many decades people wrote utilities and applications in C. Not hardcore lower-level kernel modules. Just utilities and applications. Because that’s what they wanted to write them in. Over Perl or Java or whatever else the alternatives were.
What’s more C than that? Writing everything short of scripts in it?
Now people write applications in a modern programming language with modern affordances. They might be working uphill to a degree but they could have chosen much less ergonomic options.
The embarrassing part is criticizing people who have put in the work, not on the merits of their work, but on… having put in too much work.
I don't get how someone can criticise a systems programming language by saying "I have to think about memory layout"....
> I feel like Rust is self-defined as a “systems” language, but it’s being used to write web apps and command-line tools and all sorts of things.
> This is a little disappointing, but also predictable: the more successful your language, the more people will use your language for things it wasn’t intended for.
> This post still offends many who have tied Rust to their identity, but that’s their problem, not mine.
And let's not forget that Word 97 felt bloated in its day, however fondly we may look back on it now.