Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bytecodealliance
GitHub Repository: bytecodealliance/wasmtime
Path: blob/main/docs/assemblyscript_demo/README.md
1690 views

AssemblyScript WASI Demo

This demo shows some WASI features off such as System Time, User Input, Writing to the Console, and Random Numbers. The module @assemblyscript/wasi-shim as well as a wasi-enabled runtime are required.

Setup

Navigate to ./docs/assemblyscript_demo and run

npm install

Build the AssemblyScript demo file

npm run build

Run the WASI Demo

npm run demo