Awesome
Kotlin/Wasm WASI example
This example showcases a simple application using WASI API in Node.js and Deno.
Follow the instructions in the sections below to try out this Kotlin/Wasm application.
Set up the environment
Before starting, ensure you have the necessary IDE setup to run the application.
IDE
We recommend using IntelliJ IDEA 2023.1 or later to work with the project. It supports Kotlin/Wasm out of the box.
Build and run
To build and run the application:
- In IntelliJ IDEA, open the repository.
- Run the application by typing one of the following Gradle commands in the terminal:
-
Run the program with WasmEdge:
./gradlew wasmWasiWasmEdgeRun
<br> <br> -
Run tests with WasmEdge:
./gradlew wasmWasiWasmEdgeTest
<br> <br> -
Run the program with NodeJs:
./gradlew wasmWasiNodeRun
<br> <br> -
Run tests with NodeJs:
./gradlew wasmWasiNodeTest
<br> <br> -
Run the program with Deno:
./gradlew wasmWasiDenoRun
<br> <br> -
Run tests with Deno:
./gradlew wasmWasiDenoTest
Note: For Windows platform, ensure
deno.exe
is installed. For more information, see Deno's installation documentation.
Feedback and questions
Give it a try and share your feedback or questions in our #webassembly Slack channel. Get a Slack invite. You can also share your comments with @bashorov on X (Twitter).