Replies: 9 comments 2 replies
-
Building on Windows was never really supported. You can set up a Linux VM and cross-compile for Windows from there. It should not be too difficult if you follow the instructions in *doc/manual.md*. The last commit that had LuaJIT support is here: https://github.com/orbitalquark/textadept/tree/795f72c6d49c0566517a43808ce7aaf405220f31. For reference, the following commit that removed LuaJIT is here: 5f4fbc7 in case you wanted to try and put it back into a modern version of Textadept.
It would be pretty difficult to put LuaJIT into a modern version of Textadept since some Lua 5.3-specific syntax is being used (like binary operators). I'm looking to migrate to Lua 5.4 eventually, which will put LuaJIT further in the rearview mirror.
|
Beta Was this translation helpful? Give feedback.
-
Sorry for the confusion. There are no binaries. You will have to build them yourself using source from the link(s) provided.
Is there some reason why you need LuaJIT specifically?
|
Beta Was this translation helpful? Give feedback.
-
I don't quite understand what you mean by "integrate". Textadept is a standalone application, so do you just want to have it talk to other components in a multi-program environment? Or do you want to have Textadept exist inside an existing LuaJIT-based application and make use of its editing capabilities? The latter is not possible -- you're better off using a standalone editing component. The former may not need LuaJIT unless you need FFI to talk to components. In that case, you might be able to build/use a Lua module that can utilize FFI, but still run inside a non-LuaJIT environment (like Textadept's Lua state).
Sorry if I'm being a bit presumptuous with what you're trying to do.
|
Beta Was this translation helpful? Give feedback.
-
> Textadept is a standalone application, so do you just want to have it talk to other components in a multi-program environment? > Or do you want to have Textadept exist inside an existing LuaJIT-based application and make use of its editing capabilities? > The latter is not possible -- you're better off using a standalone editing component. |
Beta Was this translation helpful? Give feedback.
-
> The former may not need LuaJIT unless you need FFI to talk to components. I did not thought about, but probably i should think about. Just thinking. |
Beta Was this translation helpful? Give feedback.
-
> Sorry if I'm being a bit presumptuous with what you're trying to do. just an opposite, i am very grateful for suggestions/explanations coming from it :) |
Beta Was this translation helpful? Give feedback.
-
The "buffer" object you're referring to is the editing component that Textadept uses, Scintilla[1]. It's a C++ component that I created a Lua interface for. You could do the same without needing Textadept. You could even copy the API if you wanted to.
With regards to FFI, I did a quick search and found this: https://github.com/q66/cffi-lua. If you build it and put the DLL or whatever into Textadept's *modules/* directory, you may simply be able to do `local ffi = require('cffi')` and interact directly with external libraries from Textadept.
If you wanted to do some interprocess communication (IPC), then you're better off using pipes and/or sockets since I think FFI would be a one-way interaction. Textadept's `os.spawn()`[2] could help. My Language Server Protocol (LSP) module[3] uses `os.spawn()` to talk to an external process for languages-specific features like autocompletion. For example, buffer text needs to be sent to the other process, and the other process returns a set of completions.
[1]: https://scintilla.org
[2]: https://orbitalquark.github.io/textadept/api.html#os.spawn
[3]: https://github.com/orbitalquark/textadept-lsp
|
Beta Was this translation helpful? Give feedback.
-
Thank you, CFFI looks promising indeed, and being actively developed.
Correct me if wrong, |
Beta Was this translation helpful? Give feedback.
-
It's not quite a Lua module. It's part of a C application compiled to use Lua 5.3, but you could extract that part to compile with any other type of Lua with the same C interface. I suspect LuaJIT would work with minimal changes.
|
Beta Was this translation helpful? Give feedback.
-
Hello, i know you moved from LuaJit long time ago.
So, i would like to get that LuaJit binaries (for windows),
which cant be found in any place.
There are still sources for last LuaJit version of 1-apr-2018, without binaries,
and i do not know how to build it for windows.
probably, i can do it from MingW, but this is a separate issue by itself,
and i am not too skilfull in it, and building from sources.
(i know to build in Visual Studio, and a bit of CMake, but not skillfull)
Beside that, i like LuaJit, and would like to have a modern LuaJit TextAdept,
but i guess this is out of the question?
So just to get luajit binaries will be great for now, thank you
Beta Was this translation helpful? Give feedback.
All reactions