Luckily, the Python team already started working on compiling CPython to WASM and we happily piggybacked on their effort. To find out what is possible with WebAssemblies today, we decided to take a Python interpreter written C/C++, compile it to WebAssembly, and run it in VS Code for the Web. WebAssembly virtual machines ship in modern browsers today and there are tool chains to compile C/C++ to WebAssembly code. WebAssembly is a binary instruction format for a virtual machine. These language runtimes are usually written in C/C++. For example, to run Python source code in a browser, there needs to be an execution engine that can run the Python interpreter. It is harder for other languages since we must be able to execute (and therefore debug) the code. This is relatively easy for languages like JavaScript and TypeScript since browsers ship with a JavaScript execution engine. VS Code for the Web ( ) has been available for some time now and it has always been our goal to support the full edit / compile / debug cycle in the browser. Node.js Development with Visual Studio Code and Azure.Moving from Local to Remote Development.
0 Comments
Leave a Reply. |