The reason I don't use WebAssembly is that browsers do not support the text format. Often it is just a tiny loop that one wants to optimize. Writing it manually in WAT would be nice. But adding a whole toolchain and a compile step to the stack is not worth it. Shouldn't it be straight forward to compile WAT to WASM? I hope one day browsers will support it.
Is WebAssembly Memory64 worth using?
11–20 of 55 posts
Re: Is WebAssembly Memory64 worth using?
#12Re: Is WebAssembly Memory64 worth using?
#13ARM already have a special instruction `FJCVTZS` to accelerate JavaScript. If WebAssembly gets popular enough there will probably be hardware acceleration for it. https://community.arm.com/arm-community-blogs/b/architecture... https://stackoverflow.com/questions/50966676/why-do-arm-chip...
Re: Is WebAssembly Memory64 worth using?
#14"How do browsers take advantage of this fact? By reserving 4GB of memory for every single WebAssembly module." Does reserve mean it has exclusive access to? Because it can't possibly be that every single wasm module takes 4GB!
Re: Is WebAssembly Memory64 worth using?
#15The reason I don't use WebAssembly is that browsers do not support the text format. Often it is just a tiny loop that one wants to optimize. Writing it manually in WAT would be nice. But adding a whole toolchain and a compile step to the stack is not worth it. Shouldn't it be straight forward to compile WAT to WASM? I hope one day browsers will support it.
Chances are that you won't get much out of WASM for such small snippets anyway. Contrary to popular belief, well-written Javascript isn't drastically slower than WASM in most situations.
Re: Is WebAssembly Memory64 worth using?
#16Earlier quoted context omitted.
Chances are that you won't get much out of WASM for such small snippets anyway. Contrary to popular belief, well-written Javascript isn't drastically slower than WASM in most situations.
Then why does WASM exist? If someone wants to compile whatever other language to run in the browser, why not just compile it to well-written JavaScript?
Re: Is WebAssembly Memory64 worth using?
#17Love to visit untrusted websites that feel entitled to over 4gb ram without asking.
Re: Is WebAssembly Memory64 worth using?
#18ARM already have a special instruction `FJCVTZS` to accelerate JavaScript. If WebAssembly gets popular enough there will probably be hardware acceleration for it. https://community.arm.com/arm-community-blogs/b/architecture... https://stackoverflow.com/questions/50966676/why-do-arm-chip...
> If WebAssembly gets popular enough there will probably be hardware acceleration for it.
ARM already tried that back in the days with Jazelle. Plus much of the point of WASM is that you can compile it to machine code during loading.
Re: Is WebAssembly Memory64 worth using?
#19Earlier quoted context omitted.
Chances are that you won't get much out of WASM for such small snippets anyway. Contrary to popular belief, well-written Javascript isn't drastically slower than WASM in most situations.
Then why does WASM exist? If someone wants to compile whatever other language to run in the browser, why not just compile it to well-written JavaScript?