3 ms·
LuaJIT is used for NeoVim tests and will be used in the future for writing extensions (in addition to VimScript). The NeoVim developers are planning to implemen
by petre 10y ago
LuaJIT is used for NeoVim tests and will be used in the future for writing extensions (in addition to VimScript). The NeoVim developers are planning to implement VimScript itself on top of LuaJIT. This is a bit sad considering the article and your comment. I wish they had picked PUC Lua, but can understand the reason why they went with LuaJIT instead.
https://github.com/neovim/neovim/wiki/FAQ#design https://github.com/neovim/neovim/wiki/FAQ#design
- daurnimator 10y ago> but can understand the reason why they went with LuaJIT instead. why is that? For a text editor I don't see how ludicrous speed would help... Especially when considering that luajit doesn't compile string operations well; which is what I imagine text editors do a lot of.
- deleted 10y ago[deleted]
- deleted 10y ago[deleted]
- petre 10y agoProbably just because its faster than PUC Lua, enables FFI calls w/ less overhead, easy to interface with the existing C code? They are aiming at reimplementing the current C VimScript runtime (suffering from code rot and filled with preprocessor declarations for dead platforms) in Lua w/o degrading performance too much.
- justinmk 10y ago> reimplementing the current C VimScript runtime See the updated FAQ[1]. We are punting on the VimL-to-Lua translator. We think it will be more valuable to instead ship Lua as a first-class alternative to VimL. > (suffering from code rot and filled with preprocessor declarations for dead platforms) in Lua w/o degrading performance too much eval.c is being refactored in PR 5119[2]. 1: https://github.com/neovim/neovim/wiki/FAQ https://github.com/neovim/neovim/wiki/FAQ 2: https://github.com/neovim/neovim/pull/5119 https://github.com/neovim/neovim/pull/5119
- justinmk 10y agoNeovim will support PUC Lua 5.1 for both user scripts as well as internal lua logic. The external lua-client[1] supports luajit and PUC lua and the CI[2] runs PUC lua on every PR and commit. The Neovim patch[3] to add built-in lua scripting will support both luajit and PUC lua. I also updated the FAQ[4] to avoid confusion. 1: https://github.com/neovim/lua-client https://github.com/neovim/lua-client 2: https://travis-ci.org/neovim/neovim/jobs/162545247 https://travis-ci.org/neovim/neovim/jobs/162545247 3: https://github.com/neovim/neovim/pull/4411 https://github.com/neovim/neovim/pull/4411 4: https://github.com/neovim/neovim/wiki/FAQ https://github.com/neovim/neovim/wiki/FAQ