News for hackers. Stuff that matters.
Re:How Shopify Uses WebAssembly Outside of the Browser by enriquto on Saturday December 19, 2020 @07:18AM (#25476967)
The issue is quite symmetrical, isn't it? Somebody could ask: why not use just WASM? Why need to go to JavaScript?

This is a better question, actually, if you already have a codebase in another language that can you can easily compile to wasm, but not to javascript.

Re:How Shopify Uses WebAssembly Outside of the Browser by rattray on Saturday December 19, 2020 @08:24AM (#25477252)
Because as the article states, JavaScript is widely used by their plugin developers, while AssemblyScript is still nascent (little-used, missing features, has bugs).
Re:How Shopify Uses WebAssembly Outside of the Browser by runawaybottle on Saturday December 19, 2020 @10:12AM (#25477841)
Like what? This is like me saying I have a mostly html/css/js website, and I just need it converted to a native Android app.

Well no right? I have website. I don’t have mobile app that just needs to switch platforms.

Do you have a website built in another language already? Then sure, all you need to do compile it via WASM. What I bet most of you have is a program for a totally different platform. In that case, you have to redo it, so why not just do it right.