3 ms·
This is lovely, was just looking for something like this the other day. Gonna see if I can get this nicely integrated into a ClojureScript project and make the
by capableweb 7y ago
This is lovely, was just looking for something like this the other day. Gonna see if I can get this nicely integrated into a ClojureScript project and make the transition when writing code between js/wasm seamless. Thanks roman01la!
- reitzensteinm 7y agoIs there any lightweight library to turn the wasm text format in to binary in the browser? I've seen emscripten compiled versions of the desktop compilers but nothing else.
- capableweb 7y agowat2wasm can do that (part of https://github.com/webassembly/wabt https://github.com/webassembly/wabt). Since it's C++, I guess you could compile to it (wat2wasm) to webassembly to run in the browser as a library, and if it's works, no need for separate web/desktop version. You might be able to find something more lightweight over here though: https://github.com/xtuc/webassemblyjs https://github.com/xtuc/webassemblyjs but I didn't find what you were looking for (but just did a quick look)