With a quick scripting language?

If you have it handy and quick to learn (15-30 minutes) an embedded language like Lua, but faster in terms of compilation/execution?
March 23rd 20 at 18:42
3 answers
March 23rd 20 at 18:44
Solution
Somewhere I heard that in Lua you can "disable unused features" for its "quickening", maybe this will help you stay on Lua and not to surrender to the spiral choking the Python
There is there that disconnect?)
Well, modules can be disabled, but this does not affect performance, only safety. - Aryanna_Hahn commented on March 23rd 20 at 18:47
@Aryanna_Hahn,
just for safety

more on compatibility - anahi_Ondric commented on March 23rd 20 at 18:50
I meant the standard type of io (file) or os (execute file, OS functions) - Aryanna_Hahn commented on March 23rd 20 at 18:53
@Aryanna_Hahn, what did you mean Lua or LuaJIT? - anahi_Ondric commented on March 23rd 20 at 18:56
Lua - Aryanna_Hahn commented on March 23rd 20 at 18:59
@Aryanna_Hahn, luajit.org/dynasm.html sorry for maybe such a strange question,
and where you such crazy speed?) for what, quotes, or graphics? - anahi_Ondric commented on March 23rd 20 at 19:02
@anahi_Ondric, very challenging AI in a game with many NPCs. The player should have the opportunity to write fashion, including to interfere in the work of the AI in any way - Aryanna_Hahn commented on March 23rd 20 at 19:05
@Aryanna_Hahn, I think for what you describe use LuaJIT
5cf2df01869c1654346712.jpeg
maybe you could pisechku the player will under LuaJIT wearing there this Dynamic Assembler? - anahi_Ondric commented on March 23rd 20 at 19:08
I would agree. - Aryanna_Hahn commented on March 23rd 20 at 19:11
@Aryanna_Hahnif you everyone understand this you probably have a millionaire... - anahi_Ondric commented on March 23rd 20 at 19:14
Know languages and technologies not enough for success. Still need a ton of things beyond that. - Aryanna_Hahn commented on March 23rd 20 at 19:17
@Aryanna_Hahn, so not a millionaire... - anahi_Ondric commented on March 23rd 20 at 19:20
March 23rd 20 at 18:46
Solution
Lua when using a special virtual machine with LuaJIT

but faster in terms of compilation

You are doing something wrong, if you critically compile time.
Compilation conceived as a one-time or very rare process
Special? - Aryanna_Hahn commented on March 23rd 20 at 18:49
@Aryanna_Hahn, there's a good JIT. - Lazaro commented on March 23rd 20 at 18:52
@Aryanna_Hahn, it is even Used for highload nginx, and where where and there if needed, easily rewritten for any fastest technology.

Wang: then, enough and Lua - Lazaro commented on March 23rd 20 at 18:55
March 23rd 20 at 18:48
The fastest virtual machine from javascript (nodejs) and oddly enough have php if we are talking about the programming language and not about plug-in libraries that can be implemented by native and then as quickly as it is possible in principle.

Faster than LLVM, it is the whole infrastructure, not only the compiler (there is even a programming language binding is not), heavy to embed in their software but the result will be the most productive.

Someone will remember java and its bytecode, the same option, then here for a heap .net virtual machine, only they are not as productive as above indicated.

python is the slowest virtual machine (though there are solutions on its acceleration) but the coolest support community and libraries. But to use it as embedded - difficult, especially if important protection from the exit from the sandbox.

Find more questions by tags Programming languages