dibyendumajumdar / ravi

Ravi is a dialect of Lua, featuring limited optional static typing, JIT and AOT compilers
http://ravilang.github.io/
Other
1.17k stars 64 forks source link

Any plan to support AOT compilation or iOS? #197

Open warvstar opened 4 years ago

warvstar commented 4 years ago

Would be interesting so I could use Lua in a cross platform way without resorting to the interpreter.

cinterloper commented 4 years ago

@warvstar you could try http://terralang.org/

dibyendumajumdar commented 4 years ago

Hi, @warvstar

Both are interesting questions. Is there a reason why Ravi would not run on iOS? I have not tried it, but I guess it should just work in interpreter mode. As far as I know JIT is not permitted anyway.

AOT compilation is certainly interesting. However Lua programs can load code dynamically - for true AOT compilation, it would be necessary to disable all dynamic code gen. I think this is not easy to do, as we see even C# and Java do not have reliable AOT after years of trying...

dibyendumajumdar commented 4 years ago

I think that eventually we can have AOT using #198.