radian628 / desmoscript

Desmos scripting language and successor to LISPsmos.
101 stars 8 forks source link

Move VSCode extension to different thread/process #22

Closed radian628 closed 1 year ago

radian628 commented 1 year ago

Currently, all the VSCode extension code runs on a thread controlled by VSCode. This is not ideal because it means the code is subject to whatever weirdness VSCode has in its version of node.js. In particular, VSCode seems to disallow dynamic import() statements in production desktop code. This is problematic because compiling desmoscript can involve executing arbitrary JavaScript code at compile time. The obvious solution is to move all the extension code to a separate process (or web worker on web) and execute it there instead.

Some thoughts on how to go about this:

radian628 commented 1 year ago

Implemented, pushed to main, and released!