| I do wonder if you're intentionally being dense or just not reading the words people write. So I will make this incredible simple for you. Google Sheets was released in 2006 and "Written in JavaScript" [1]. Around 2014 the codebase is mostly converted to Java. At this time the Java version and JS version's performance are measured and the Java version won't be allowed to launch if it's >5% slower across many use cases. Note: The Java code isn't emulated by the browser. It's literally converted into a JS source file by GWT and your browser runs it just like any other JS file. Note: This means the "Java" performance and "JavaScript" performance is equivalent. Note: Rust is 2015 and full of lifetime markers [3] (i.e. not nearly as ergomatic as it is today); might even have green threads then too. Around 2018 (?), GWT was replaced by J2CL. Similar story with performance rules. Note: Not only is the file provided to your browser JS code, the JS file might contain handwritten JS source code for certain "Java files" as opposed to the J2CL output for that file. Around 2023, J2CL is semi-replaced by WasmGC and WasmGC was 2x faster than the JavaScript being ran by the browser. That generated JS has a similar performance to completely handwritten JS so it's entirely honest to say WasmGC is 2x as fast as JS because 1. It is. It doesn't matter that the JS comes from transpiling Java files; open up a network tab and you'll see it's `.js` files. 2. Transitively it's better than the original handwritten JS files. --- > And it's telling that nobody taking issue with my criticism here, and who have proferred a defense of the article that amounts to equivocation No, it's just that you're using jargon to mean different things than other people use that jargon for and getting confused when things don't make sense in your state of the world. It's a "JS version" because it's the version that is JS code. Much like how the output of J2ObjC produces the ObjC version. [1]: https://en.wikipedia.org/wiki/Google_Sheets [2]: https://en.wikipedia.org/wiki/Google_Web_Toolkit [3]: https://en.wikipedia.org/wiki/Rust_(programming_language) |