3 ms·
Probably won't be long before a minecraft babel plugin exists.
by brink 8y ago
Probably won't be long before a minecraft babel plugin exists.
- danShumway 8y agoAny existing babel setup will already work, you don't need to wait. That being said, I'd be kind of surprised if this doesn't actually support ES6. How likely is it that the Minecraft team built their own Javascript interpreter rather than setting up bindings to an existing one?
- stjo 8y agoI nearly got a stroke
- yoklov 8y agoMight use Rhino or something, since it’s on the JVM
- knownunown 8y agoIt uses V8.
- SquareWheel 8y agoBedrock edition is in C++, isn't it?
- pjmlp 8y agoYes, they ported it to C++ due to game consoles and mobiles support. Creating a couple of Java AOT compilers from scratch wasn't properly part of their idea how to best make use of resources.
- solarkraft 8y agoI wonder whether the landscape looks different today, with Oracle's Graal efforts.
- pjmlp 8y agoNot really. Java AOT compilers to native code have been available since early 2000's, as long as companies are willing to pay for them. However there have been very little attempts to support Java on game consoles, apart from ajile's attempt [0]. Targeting game consoles is similar to bare metal programming, even when a thin OS is present and doesn't bound well with a programming model that abstracts what the hardware is capable of. As for iOS support, there are a couple of options like CodenameOne, GluonVM and RoboVM. And for UWP only CodenameOne. So there isn't really an option that would make sense from business point of view. Hence why porting the game engine into a programming language that is available out of the box in all SDKs was a much more pragmatic option. [0] https://www.geek.com/games/new-development-kit-brings-java-to-the-gba-553040/ https://www.geek.com/games/new-development-kit-brings-java-t...