Comment on An After-School Program Teaches Teens Java and Python

<- View Parent
pivot_root@lemmy.world ⁨10⁩ ⁨months⁩ ago

The just-in-time compiler isn’t bad, but the rest of it is. An optimized hot loop has the potential to emit better instructions than a C/C++ compiler not using PGO, but you’re never going to see that in any real workload.

If you could rip out/avoid the garbage collector, give it the ability to use escape analysis to avoid heap-allocating every single object, and prevent it from implicitly making every function virtual, then maybe. But at that point, you might as well just a different language.

source
Sort:hotnewtop