13 ms·
1-based indexing matters if you only code Lua occasionally (as you say, you get used to it when coding it all the time). JS has better string builtins than Pyt
by hajile 5y ago
1-based indexing matters if you only code Lua occasionally (as you say, you get used to it when coding it all the time).
JS has better string builtins than Python IMO.
QuickJS is made for embedding and has similar performance to Lua (slightly slower). I don't think you'd want to embed a large VM like v8 anyway.
https://sabotage-linux.neocities.org/blog/9/ https://sabotage-linux.neocities.org/blog/9/
- jmiskovic 5y agoI didn't know about QuickJS, last time I checked Duktape was most suitable for these cases. I see QuickJS was made by Fabrice Bellard himself. While linked benchmark is impressive for QuickJS, in case of Neovim they chose to embed LuaJIT which is ~10x faster than "official" PUC Lua. I see your point though, QuickJS would still be a good choice. JS and Lua are not that different once you set aside syntax differences. http://luajit.org/performance_x86.html http://luajit.org/performance_x86.html