News for hackers. Stuff that matters.
Re:PCjs Machines by thefounder on Monday March 04, 2019 @05:36AM (#19300223)
Any reason why is not compiled to WebAssembly?
Re:PCjs Machines by detaro on Monday March 04, 2019 @05:45AM (#19300255)
It's written in JS, not compiled to JS. WASM isn't a good target to compile JS to, and there's little point in doing so.
Re:PCjs Machines by entropicdrifter on Monday March 04, 2019 @05:16PM (#19306140)
So what you're saying is we need to rewrite it in Rust, then compile it to WASM, then compile an ASM.js backup as well? /s
Re:PCjs Machines by thefounder on Tuesday March 05, 2019 @02:36AM (#19308828)
Now all the browsers support wasm so you don't need to compile it to asm.js. You may use any language if you don't like Rust.
Re:PCjs Machines by ilaksh on Monday March 04, 2019 @06:10PM (#19306590)
I think the reason they did not do that is because it's a JavaScript project and they didn't want to rewrite it in C or another language since there are already lots of emulators in C. But it could be faster if it was compiled to wasm.