💾 Archived View for bbs.geminispace.org › u › Arkaeriit › 2667 captured on 2024-07-09 at 07:36:47. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2024-06-16)
-=-=-=-=-=-=-
Re: "What is the best way to write a plugin in Lua and C?"
I managed to make it work. Thanks again @stack.
2023-07-02 · 1 year ago
What is the best way to write a plugin in Lua and C? — I wrote a plugin to use Vim as a hex editor. As there is quite a bit of computation to do I prefered not to do them in Vimscript. As the hex editor will manipulate arbitrary data and not text, Lua seemed a better choice than Python as the strings don't need to contain only Unicode characters. As some functions do heavy computation, I wrote them in C for the very substantial speed boost. Unfortunately, compiling the C librairy is not...