3 ms·
For something similar, take a look at Terra [1], the "low-level counterpart to Lua". It's based on Lua, but has "low-level" functions that are JIT-compiled to m
by tomp 13y ago
For something similar, take a look at Terra [1], the "low-level counterpart to Lua". It's based on Lua, but has "low-level" functions that are JIT-compiled to machine code using LLVM. It supports calling Lua macros from low-level functions, or you can use Lua code to write complex high-level frameworks (e.g. Go-like object system [2], Java-like object system [3]).
It's still in development, so there are parts of the system that don't work very well (e.g. global variables in compiled executables cannot be statically initialized), but it's a very interesting project.
[1] http://terralang.org/ http://terralang.org/
[2] https://github.com/zdevito/terra/blob/master/tests/lib/golike.t https://github.com/zdevito/terra/blob/master/tests/lib/golik...
[3] https://github.com/zdevito/terra/blob/master/tests/lib/javalike.t https://github.com/zdevito/terra/blob/master/tests/lib/javal...