top | item 11426605 Source code for Lua 5.3 75 points| vmorgulis | 10 years ago |lua.org | reply 25 comments order hn newest [+] [-] fosk|10 years ago|reply When running Lua, always consider running it on the LuaJIT (http://luajit.org/). It's extremely fast, portable and lightweight JIT compiler for Lua, although it only supports Lua 5.1.The performance improvements are incredible, and it allows you to write inline C code thanks to the FFI library (declaring it like this https://github.com/Mashape/kong/blob/master/kong/plugins/fil..., and invoking it like this https://github.com/Mashape/kong/blob/master/kong/plugins/fil...) [+] [-] vbit|10 years ago|reply Seconded. LuaJIT FFI is just awesome. Check out the motivating examples: http://luajit.org/ext_ffi.htmlBTW, does anyone have recent benchmarks comparing LuaJIT against new versions of the Javascript JITs? [+] [-] aleksi|10 years ago|reply There are some Lua 5.2 extensions: http://luajit.org/extensions.html [+] [-] CapsAdmin|10 years ago|reply You are restricted to making C declarations. You can't write inline C code. You can however can create and use C types in Lua. [+] [-] sspiff|10 years ago|reply What's the point of posting this? Pointing out how small and elegant a real world language implementation can be? [+] [-] scrollaway|10 years ago|reply I'm happy with anything that gives Lua more exposure. It's a pretty language and it is so damn small, fast and embeddable.Too many developers are using Javascript in places where Lua would be a far more appropriate option. Embedding, especially. load replies (1) [+] [-] vmorgulis|10 years ago|reply Yes and the design of the source code browsing (by column). [+] [-] mrdrozdov|10 years ago|reply What's a "real world language"? load replies (1) [+] [-] hathym|10 years ago|reply Why not reimplement lua in lua? [+] [-] catwell|10 years ago|reply It has been done, several times.A popular version is http://yueliang.luaforge.net/, although it only supports old Luas (5.0 and 5.1). [+] [-] corysama|10 years ago|reply It would be fun to reimplement Lua in http://terralang.org/ [+] [-] baldfat|10 years ago|reply skip to my lu-lu meet pypy.
[+] [-] fosk|10 years ago|reply When running Lua, always consider running it on the LuaJIT (http://luajit.org/). It's extremely fast, portable and lightweight JIT compiler for Lua, although it only supports Lua 5.1.The performance improvements are incredible, and it allows you to write inline C code thanks to the FFI library (declaring it like this https://github.com/Mashape/kong/blob/master/kong/plugins/fil..., and invoking it like this https://github.com/Mashape/kong/blob/master/kong/plugins/fil...) [+] [-] vbit|10 years ago|reply Seconded. LuaJIT FFI is just awesome. Check out the motivating examples: http://luajit.org/ext_ffi.htmlBTW, does anyone have recent benchmarks comparing LuaJIT against new versions of the Javascript JITs? [+] [-] aleksi|10 years ago|reply There are some Lua 5.2 extensions: http://luajit.org/extensions.html [+] [-] CapsAdmin|10 years ago|reply You are restricted to making C declarations. You can't write inline C code. You can however can create and use C types in Lua.
[+] [-] vbit|10 years ago|reply Seconded. LuaJIT FFI is just awesome. Check out the motivating examples: http://luajit.org/ext_ffi.htmlBTW, does anyone have recent benchmarks comparing LuaJIT against new versions of the Javascript JITs?
[+] [-] aleksi|10 years ago|reply There are some Lua 5.2 extensions: http://luajit.org/extensions.html
[+] [-] CapsAdmin|10 years ago|reply You are restricted to making C declarations. You can't write inline C code. You can however can create and use C types in Lua.
[+] [-] sspiff|10 years ago|reply What's the point of posting this? Pointing out how small and elegant a real world language implementation can be? [+] [-] scrollaway|10 years ago|reply I'm happy with anything that gives Lua more exposure. It's a pretty language and it is so damn small, fast and embeddable.Too many developers are using Javascript in places where Lua would be a far more appropriate option. Embedding, especially. load replies (1) [+] [-] vmorgulis|10 years ago|reply Yes and the design of the source code browsing (by column). [+] [-] mrdrozdov|10 years ago|reply What's a "real world language"? load replies (1)
[+] [-] scrollaway|10 years ago|reply I'm happy with anything that gives Lua more exposure. It's a pretty language and it is so damn small, fast and embeddable.Too many developers are using Javascript in places where Lua would be a far more appropriate option. Embedding, especially. load replies (1)
[+] [-] hathym|10 years ago|reply Why not reimplement lua in lua? [+] [-] catwell|10 years ago|reply It has been done, several times.A popular version is http://yueliang.luaforge.net/, although it only supports old Luas (5.0 and 5.1). [+] [-] corysama|10 years ago|reply It would be fun to reimplement Lua in http://terralang.org/ [+] [-] baldfat|10 years ago|reply skip to my lu-lu meet pypy.
[+] [-] catwell|10 years ago|reply It has been done, several times.A popular version is http://yueliang.luaforge.net/, although it only supports old Luas (5.0 and 5.1).
[+] [-] fosk|10 years ago|reply
The performance improvements are incredible, and it allows you to write inline C code thanks to the FFI library (declaring it like this https://github.com/Mashape/kong/blob/master/kong/plugins/fil..., and invoking it like this https://github.com/Mashape/kong/blob/master/kong/plugins/fil...)
[+] [-] vbit|10 years ago|reply
BTW, does anyone have recent benchmarks comparing LuaJIT against new versions of the Javascript JITs?
[+] [-] aleksi|10 years ago|reply
[+] [-] CapsAdmin|10 years ago|reply
[+] [-] sspiff|10 years ago|reply
[+] [-] scrollaway|10 years ago|reply
Too many developers are using Javascript in places where Lua would be a far more appropriate option. Embedding, especially.
[+] [-] vmorgulis|10 years ago|reply
[+] [-] mrdrozdov|10 years ago|reply
[+] [-] hathym|10 years ago|reply
[+] [-] catwell|10 years ago|reply
A popular version is http://yueliang.luaforge.net/, although it only supports old Luas (5.0 and 5.1).
[+] [-] corysama|10 years ago|reply
[+] [-] baldfat|10 years ago|reply