Scripting: RaptorJIT

(Zicklag) #1

Continuing the discussion from Scripting: What Do We Need to Get There:

I just found an interesting fork of LuaJIT that might be worth keeping an eye on:

The don’t have Windows support yet ( see this issue ) so we wouldn’t want to use it untill it had that, but it could be something to look into as an alternative to LuaJIT once it was ready.

There is also a good start to a guide for writing efficient Lua code that can comptete with C/C++ and Rust in perfomance.

1 Like
(Erlend Sogge Heggen) #2

On that note, you’ll want to keep an eye on the Rust-based Luster VM as well:

In what cases is this necessary? I’d imagine we would just defer to Rust for highest performance (with fewer risks) whenever necessary.

(Khionu Sybiern) #3

End goal is to support using Amethyst in any language, so having a Lua implementation on hand that’s as or nearly as performant is ideal.

1 Like
(Zicklag) #4

Specifically, Lua is much easier to approach than Rust and doesn’t require a separate compilation step, so for beginners or for people who just don’t want to learn another language, being able to write simple Lua scripts without requiring Rust would be a great bonus.

1 Like