COMPUTER FUNDAMENTALS

COMPUTER SOFTWARE

PROGRAMMING LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which is the main reason why Lua runs faster than Java for games?
A
Lua does not rely on a Virtual Machine
B
Java code is longer than Lua
C
Lua converts to C++, which is very fast
D
Java converts to binary in real-time, which is slower
Explanation: 

Detailed explanation-1: -In video game development, Lua is widely used as a scripting language by game programmers, perhaps due to its perceived easiness to embed, fast execution, and short learning curve. In 2003, a poll conducted by GameDev.net showed Lua as the most popular scripting language for game programming.

Detailed explanation-2: -Lua is fast Several benchmarks show Lua as the fastest language in the realm of interpreted scripting languages. Lua is fast not only in fine-tuned benchmark programs, but in real life too. Substantial fractions of large applications have been written in Lua.

There is 1 question to complete.