News for hackers. Stuff that matters.
Re:Why Google Sheets ported its calculation worker from Java... by whoomp12342 on Thursday June 27, 2024 @12:15PM (#40812145)
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?

Re:Why Google Sheets ported its calculation worker from Java... by michaelothomas on Thursday June 27, 2024 @01:02PM (#40812620)
I mean, I thought it was a pretty good explanation.

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?