Comments by "Anony Mousse" (@anon_y_mousse) on "Why Applications Are Operating-System Specific" video.
-
This is why the promise of Java drove so many programmers to use such a disgustingly verbose language. I must admit that targeting the JVM is enticing too, if you're writing a compiler. The thing I wonder, and I hope this gives you a video idea, is how does the JVM compare to WASM? Supposedly WASM is faster than JavaScript, but I've also heard that there are features that don't translate over. Since the JVM has basically only grown over the decades, I would think that would hinder WASM as a choice. Obviously, I wouldn't choose JavaScript as a target just because WASM lacks some features, but I might just choose the JVM. This might be confusing because Java and JavaScript are wildly different and incompatible languages, but they're both valid targets if you're writing a compiler since they both offer some level of easy platform agnosticism.
Side note, C would also be decent choice of targets if you make use of third party libraries that are portable, such as GTK, SDL or RayLib. However, that would also add a more developer-centric dependency that would hinder non-technical end users. Most people have a copy of the JVM installed, and nearly everyone has a browser with a JavaScript VM built-in, and those generally don't require them to do more than double click an icon or single click a link.
3