Block a user
WASM: wire it up!
Added to the above: getting strings from Janet -> C++ -> JS is not trivial, either. But it's doable!
There may well be a more direct way of going about things, but this is what I got that…
WASM: wire it up!
Taking notes on how to wire up a Janet+WASM environment, in broad strokes (repos with various stages forthcoming). Note that this allows passing Javascript strings into Janet and getting them back…
WASM: wire it up!
A more direct way to arrive at the error above:
$ zig cc janet.c -target wasm32-freestanding
In file included from src/core/features.h:81:
./janet.h:433:10: fatal error: 'stdlib.h' file…
Nice error reporting
On suggested names, this is what we want: https://en.wikipedia.org/wiki/Levenshtein_distance
WASM: wire it up!
Just to document here where I am and what I've done:
- Current strategy has been to use Zig as the host language for WASM; Zig can compile C and has WASM as a first-class target.
- Compiling a…
Good-enough validator
Called keywords/single arg: 94adf5e9d5
Dict pattern validation: https://alea.ludus.dev/twc/ludus/commit/d249ee0b21714d695664…
Give partially applied functions better names