3 ms·
Of course, we all agree that on a low level the memory black magic still needs to happen. But the developer shouldn't be in charge of it - just like today's de
by blacklight 4y ago
Of course, we all agree that on a low level the memory black magic still needs to happen.
But the developer shouldn't be in charge of it - just like today's developers don't decide on which CPU register a certain variable should be stored, or how to overwrite the instruction pointer when performing a function call.
I mean, of course there will always be cases where a developer needs to go this low - think of OS/firmware developers. But that doesn't apply to 99.9% of the developers out there.
Most of the developers out there want a programming language where they can easily declare an array, append or remove stuff from it without breaking anything, and when there's no piece of code left that references that piece of memory then it should be deallocated - in such a way that should be invisible to the developer.
So C/C++ nowadays cater to the 0.1% that needs to tinker with every bit of the memory, and those who love those languages want us to believe that their use-case is the same as the remaining 99.9%.
- peoplefromibiza 4y ago> I mean, of course there will always be cases where a developer needs to go this low it made total sense when writing X11 though which made X11 last so long and still totally work we'll see in how many years Wayland will be rewritten because it's legacy, it still doesn't work everywhere after 15 years of trying hard.