WASI P1 + Joka: Looking for (unpaid) CLI testers
Kapendev
alexandroskapretsos at gmail.com
Tue Mar 17 10:43:36 UTC 2026
Hey. I've been working on basic WASI P1 support for my library,
[Joka](https://github.com/Kapendev/joka). It's a "no GC" library.
This post exists because I wanted to ask if anybody wants to
write a CLI with it to test if things work correctly.
Example:
```d
// File: app.d
import joka.wasip1;
import joka.types;
extern(C)
void _start() {
auto value = 40 + 29;
auto text = "Value is: {}\n".fmt(value).toCiovec();
fdWrite(stdout, &text, 1, null);
}
```
Compile and run with [Wasmtime](https://wasmtime.dev/):
```
ldc2 -betterC -i --mtriple=wasm32-wasi --checkaction=halt
--d-version=JokaTypesStubs app.d
wasmtime app.wasm
```
You will need the latest commit to get things working.
Any feedback is welcome.
More information about the Digitalmars-d
mailing list