Why is javascript slower than java?
uhhhh I don't think there is actually a real answer in that paragraph that compares PERFORMANCE of JS to JAVA.
that explanation is completely unhinged?
uhhhh I don't think there is actually a real answer in that paragraph that compares PERFORMANCE of JS to JAVA.
that explanation is completely unhinged?
JavaScript plays fast and loose with types. Which means that when JIT compilers generate code for it, they have to make all sorts of conservative decisions. This makes generated code more complex and, in turn, slower.
Does that make sense?