4 ms·
Where I see this as a huge deal is for plug-in development. For finl, I was looking at the possibility of incorporating an interpreter for JavaScript or Python
by dhosek 3y ago
Where I see this as a huge deal is for plug-in development. For finl, I was looking at the possibility of incorporating an interpreter for JavaScript or Python or Lua. Instead, I can create bindings for WASM and get a sandboxed environment for people to write their own extensions. There will be some packaging tools that I’ll want to provide (the idea being that a user specifies something like
\LoadExtension{yoyodyne:csv-reader:1.0}
to bring in an extension and if there isn’t a local copy of the extension, it will fetch it from a repository, and I’ll want to bundle a bunch of stuff into a standard ZIP file layout (so that documentation, etc. will be easily fetched).
The list of languages that can compile to WASM increases on a regular basis and it seems by far the best route for plugin handling in a greenfield project.
- bhelx 3y agoI work on a project for building such plug-in systems. We have a wide variety of languages supported https://extism.org/ https://extism.org/ > and I’ll want to bundle a bunch of stuff into a standard ZIP file layout (so that documentation, etc. will be easily fetched I've always, thought it would be cool if Wasm runtimes had a generic supported format for this. Kind of like a Java JAR. But of course, you can implement a custom version for application pretty easily.
- pjmlp 3y agoLike CLR plugins....
- flutetornado 3y agoYes, on a related note Neovim just got support for WASM plugins and apparently WASM is 100% faster than Lua (neovim's default plugin language runtime) for this use case according to the author. So now plugins in any language that can be compiled to WASM are possible. Edit: https://github.com/Borwe/wasm_nvim https://github.com/Borwe/wasm_nvim
- pjmlp 3y agoNo wonder, since Lua is interpreted and not a fast one at it, unless LuaJIT comes into the picture.
- meepmorp 3y agoNeovim uses LuaJIT, iirc.
- 0cf8612b2e1e 3y agoLua is one of the fastest interpreted languages. Magnificently so if you consider LuaJIT.
- n8henrie 3y agoThis looks like an interesting project! Your phrases made me think the wasm support was an official nvim move, but it looks like this is a third party project. Is that right?