Block a user
Unfuck
mod
in prelude
As expected: current clj/s base
does not include a member mod
.
Fix this in the janet base before building.
random
must take a dict
Here's a better error:
random(#{:a 1, :b 2})
& => Ludus panicked!: Match Error: No match found for (#{:a 1, :b 2}, :a) in function get
On line 879 in prelude
get (d, key)
I…
Add save/load turtle state functions to prelude
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…