Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for WASM plugins #52

Open
dmbaturin opened this issue Jun 20, 2023 · 0 comments
Open

Add support for WASM plugins #52

dmbaturin opened this issue Jun 20, 2023 · 0 comments

Comments

@dmbaturin
Copy link
Collaborator

Lua-ML integration was a huge step forward for soupault — support for arbitrary element tree manipulation logic enabled a whole bunch of completely new use cases and possibilities. Plugin support is an undeniable great thing for an SSG.

However, even when Lua-ML is made multicore-safe and supports modern Lua features, there's still a problem. Some people just don't like Lua — like me, for instance. ;)
I don't like a lot of Lua's design ideas and I would certainly use another languages for writing plugins, if I had an opportunity.

One possible option is to add support for WASM.

  • Pretty much every language can be compiled to WASM these days.
  • WASM seems like a reasonably sane (although I'd prefer a register machine).
  • The reference implementation of WASM is written in OCaml (although it's not clear how embeddable it is).

We need to find our what it takes to make the reference implementation embeddable in the same way as Lua-ML and how to go from there.

CC: @SoniEx2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant