txiki.js icon indicating copy to clipboard operation
txiki.js copied to clipboard

What is wrong with WebAssembly

Open UserFive5 opened this issue 2 years ago • 5 comments

WebAssembly Is A good move in this project but I think it's too limited and hard to deal with . so i think is it better to use ffi to make things easy and quick . Thanks man - this is the best project I found since programming in JavaScript

UserFive5 avatar Apr 15 '22 09:04 UserFive5

Thanks for the kind words!

Nothing wrong with WASM IMHO, just another web API and integrating wasm3 was fun and gave me some insight as to how WASM actually works.

I need to find some time for integrating one of the existing QuickJS FFI projects, but haven't had much lately...

saghul avatar Apr 15 '22 13:04 saghul

One thing that could be done is get quickjs interpreted in wasm, but that'll probably slow it down, on the other hand, you get more hardware support since wasm out of the box supports more.

adminy avatar Jun 06 '22 12:06 adminy

Yep, that's another way to go about it. I experimented with that some time ago here: https://github.com/saghul/wasi-lab/tree/master/qjs-wasi

saghul avatar Jun 07 '22 10:06 saghul

I was thinking of https://github.com/wasm3/wasm3 when I said that but it should all be the same right? Thanks for the reference, I'll give it a try.

adminy avatar Jun 07 '22 12:06 adminy

Yep, should be the same. I guess that in that case using a more complex WASM runtime with a JIT might be better for speed...

saghul avatar Jun 13 '22 09:06 saghul

FFi support just landed in master.

saghul avatar Aug 15 '22 08:08 saghul