5 ms·
> Native code makes it much harder to design a runtime plugin system That's not true, lua, lua-jit, quickjs, v8, c#, even java Game engines already have the l
by Kukumber 4y ago
> Native code makes it much harder to design a runtime plugin system
That's not true, lua, lua-jit, quickjs, v8, c#, even java
Game engines already have the lead in that area and they proved that it's possible and can be made very efficient
The UI and host of the program should be native to maximize performance
Native code helps write fast code that runs fast with optimized memory layouts
- Mikeb85 4y ago> Game engines already have the lead in that area and they proved that it's possible and can be made very efficient Game engines basically implement their own "runtime". They all have stuff like memory management, scripting languages (and usually plugins use the scripting API), and the game is just a package of assets and code that are run by the engine...
- speed_spread 4y ago> lua, lua-jit, quickjs, v8, c#, even java Huh? None of these are compiled to native code ahead of time. By definition using a JIT compiler is not making things "native", it's just a way of making a very fast interpreter. Those languages you mention are used in gaming precisely because of their dynamic qualities compensating for the rigidness of the otherwise C++ based engines.
- Kukumber 4y agoyou don't understand, they are examples of scripting languages used in game engines