Re:Hands-on WebAssembly
by pansa2 on Wednesday August 26, 2020 @06:46AM
(#24281196)
> it is pretty magical seeing something written as a CLI tool running in a browser with minimal changes.
Years ago, I wanted to write some code that could run both as part of a command-line app and an in-browser tool. I asked what language I should use for this shared code and was told, basically, that there was no suitable language.
Re:Hands-on WebAssembly
by fulafel on Thursday August 27, 2020 @01:02AM
(#24290275)
This is indeed nice but in fact you could run C/C++/Rust before too, with asm.js. Not to mention the languages that target JS and can run on Node or the browser.
Years ago, I wanted to write some code that could run both as part of a command-line app and an in-browser tool. I asked what language I should use for this shared code and was told, basically, that there was no suitable language.
Now, thanks to WASM, there are lots!