Discord
Login
Community
DARK THEME

Does microstudio support WASM?

Would be nice to know, as @Logginus mentioned it.

Not officially supported.

Unofficially, you need to write a function that calls the WASM command in javascript.

To be done - but combining javascript and WASM is very complicated.

Because in addition to running the code, you also need to provide it with data (convert it to binary form).

And once the WASM program responds, you need to convert the response into a format understandable by JavaScript.

And writing the code for WASM is also difficult.

If you need more processor power, I can try to write code that will run Worker.

This is such a real javascript thread.

It's easier to write code for it.

I tried to use workers in js, but it wasnt possible due the requirements were missing i guess

It's strange because "Worker" works fine for me.

Have you tried running the code again???

See what kind of employee I have >> https://microstudio.io/i/Loginus/worker/

The result of the operation is in the console - it is a completely independent javascript thread.

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community