>>45198It's not about automating trivial things, because memory management is NOT trivial.
Properly managing memory is very complicated to automate without making it 2000 times more complicated for the programmer who ends up actually using it. It also prevents programmers from actually learning how memory works, and therefore causes them to write shitty code simply because they don't worry about memory anymore.
If you used a memory safe language WITHOUT a garbage collector and WITHOUT a babysitter that only throws compile errors at you when you fucked something up, that's another story. I'd actually encourage this, because it helps drill good practices into your head.
If you want memory safe C/C++, there is this:
https://fil-c.org/Otherwise, use zig if you hate C boilerplate that much.
>Write assembly manuallyActually, all the professional devs I know regularly read the assembly output of their compiler and then adjust their C source code to nudge the compiler into spitting out better, more optimized assembly. This is fairly standard practice, and gives you the best of both worlds.