jeffpar / pcjs

The original IBM PC and other machine emulations in JavaScript
https://www.pcjs.org
Other
809 stars 122 forks source link

(WIP) Maybe port to WebAssembly? #49

Closed j8srv32 closed 1 year ago

j8srv32 commented 2 years ago

We might need to port this to WebAssembly for better performance.

TCFFan123 commented 1 year ago

Well, this would remove old support for browsers that don't support WebAssembly.

jeffpar commented 1 year ago

Which machines need better performance?

jeffpar commented 1 year ago

Closing this as "won't fix" since PCjs was created to simulate old machines (nothing newer than the Intel 80386) running old operating systems (nothing newer than Windows 95) running at their original speed, and it can do that fine as-is. There are plenty of other emulators out there that can be (and have been) ported to the web using WebAssembly if you want more than that.

In addition, converting the current Javascript source code to WASM probably wouldn't result in any significant improvements, since browsers are already very efficient at converting Javascript to native code. And porting all the source code to C++ or Rust would be a lot of work that wouldn't solve any problems or add any useful features. But, if someone else wants to give those things a try, I'll be happy to check out the results.