
srenatus
2018-5-31 12:28:55
Re: wasm, by any chance, does anyone know a pkg to read it? As in, either slurp in the WAT representation, or binary *.wasm
files?

jerome.martin.dev
2018-5-31 12:53:59
@srenatus If you want to get it raw as a tree of s-expressions, you can just (call-with-input-file "file.wat" read)
and it’ll mostly do the trick.

jerome.martin.dev
2018-5-31 12:55:08
now if you need to parse it and actually give it a meaning, you need an expander.

jerome.martin.dev
2018-5-31 12:56:42
for *.wasm
files it’s a bit trickier, because you’ll need to implement the wasm virtual machine to read the binary format

srenatus
2018-5-31 12:58:33
@jerome.martin.dev thanks for the pointers :slightly_smiling_face: