Will languages that use VMs ever be used in PC and console game development? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 8

Will languages that use VMs ever be used in PC and console game development?

Or will they always be beaten by those that compile directly into native machine code?

27th Jul 2019, 11:20 PM
Sonic
Sonic - avatar
3 Answers
+ 12
I just wanna suggest C/C/C#๐Ÿ˜‚ because I just know them๐Ÿ˜‚for PC ๐Ÿ˜
29th Jul 2019, 5:10 AM
Aung Thiha
Aung Thiha - avatar
+ 11
If you need to travel a mere 100m to your destination, using a car or a rocket doesn't make a whole lot of difference - The car might even arrive faster for obvious reasons. It's a different situation if you're travelling to the moon. Likewise, for simple games, there's nothing much to "beat" when the margins are mostly within the range of microseconds. In scenarios where performance isn't that much of a big deal, some languages which are claimed to be slower might offer better ease-of-development. Taking Minecraft for example, I imagine it would be significantly harder to create mods for if MC was written in C/C++ instead of Java. Currently most of your work would be to unpack the .jar files, replace the assets and then repack it. If MC was compiled as a binary, decompiling it would be a heck of work.
28th Jul 2019, 2:34 AM
Hatsy Rei
Hatsy Rei - avatar
+ 3
Coding natively to the OS will always be faster than coding to the VM just as skipping the OS and coding directly to the hardware (as it was in DOS days) will always be faster than coding to the OS ( note: this is no longer practical due to the diversity of hardware in the market)
29th Jul 2019, 3:04 AM
Pedro E. Matos