Hey Reuben, this is super exciting! Thanks for showcasing this. For someone who is a total newbie to WASM (and web development generally) can you point out the bits in your snippet that are WASM functions/methods? For example is the window.languagePluginUrl a WASM method?
Thanks Jack! I am a newbie myself in WASM, so I hope I am not getting this wrong:
The methods and functions that you see in the snippet are all Javascript. The .wasm module which contains the Python distribution used for this (Pyodide) is also loaded via Javascript, but you don't see it here because the loading takes place in the imported pyodide.js file
This Pyodide project not only compiles Python into Web Assembly, but it also provides a Javascript API so you can interact with it via the browser, so all what you see here are functions related to the API. You might be interested in this, which contains the JS API explanation: pyodide.readthedocs.io/en/latest/a...
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hey Reuben, this is super exciting! Thanks for showcasing this. For someone who is a total newbie to WASM (and web development generally) can you point out the bits in your snippet that are WASM functions/methods? For example is the window.languagePluginUrl a WASM method?
Thanks Jack! I am a newbie myself in WASM, so I hope I am not getting this wrong:
The methods and functions that you see in the snippet are all Javascript. The
.wasm
module which contains the Python distribution used for this (Pyodide) is also loaded via Javascript, but you don't see it here because the loading takes place in the importedpyodide.js
fileThis Pyodide project not only compiles Python into Web Assembly, but it also provides a Javascript API so you can interact with it via the browser, so all what you see here are functions related to the API. You might be interested in this, which contains the JS API explanation: pyodide.readthedocs.io/en/latest/a...