> why not use X
Because X doesn't run in a browser
Re:Concurrent JavaScript: It can work
by kornakiewicz on Wednesday August 30, 2017 @06:21PM
(#15136605)
Do you need to run your server in a browser?
No, but it's very nice to be able to share code for things like view rendering or form validation between the server and client without jumping through hoops.
So you use language X. Compile it and run it natively on server, compile it to wasm and run that in the browser.
I thought WASM is meant to get around the restriction that the browser only understands JS right now.