3 ms·
The AssemblyScript compiler runs in a browser too, that’s how the demo on the homepage works
by circuit10 3y ago
The AssemblyScript compiler runs in a browser too, that’s how the demo on the homepage works
- lioeters 3y agoThanks for mentioning it, I dug into the website of AssemblyScript and found that the compiler does indeed run in the browser. The demo loads a web-build like: <script src="https://cdn.jsdelivr.net/npm/assemblyscript@latest/dist/web.js"></script> <script type="module"> import asc from "assemblyscript/asc"; And how they compile AssemblyScript to WAT/WASM/JS: https://github.com/AssemblyScript/website/blob/main/src/.vuepress/public/editor.html#L842-L868 https://github.com/AssemblyScript/website/blob/main/src/.vue... Here's how the compiler is built to target the web. https://github.com/AssemblyScript/assemblyscript/blob/main/scripts/build-web.js https://github.com/AssemblyScript/assemblyscript/blob/main/s... How fun! This inspires me to explore further what I could build with it.