Live data from Hacker News

Is WebAssembly Memory64 worth using?

spidermonkey.dev

1–10 of 55 posts

Re: Is WebAssembly Memory64 worth using?

#2
ARM 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?

#4
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.

Re: Is WebAssembly Memory64 worth using?

#5
post #4

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.

You can do that easily with binaryen already, and make use of parseText().

https://web.dev/articles/binaryen

Re: Is WebAssembly Memory64 worth using?

#6
Unless you want to install a crypto miner to run locally on someone's machine when they visit a website.

Now possible with this as well as even more capable closed-source untrusted binary blobs with DRM running amock on your machine.

Mozilla (a member part of the W3C) and was supposed to stop such DRM-like software from reaching the web. They have proven to be powerless to allow such software like this to be approved as a web standard.

The ones cheering WASM are the ones who absolutely love DRM and malware blobs in your machine now accessible in the browser.

This is a massive failure of the so-called "Open Web".

Re: Is WebAssembly Memory64 worth using?

#8
post #7

"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!

It's really reserving 4GB of the process's own address space, but the only part of it that physical memory has to get used for is the part that actually has stuff stored in it.

Re: Is WebAssembly Memory64 worth using?

#9
post #4

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.

[deleted]
Post reply on HN