3 ms·
It's possible. See https://github.com/thi-ng/umbrella/tree/develop/packages/wasm-api https://github.com/thi-ng/umbrella/tree/develop/packages/was... for example
by jedisct1 3y ago
It's possible. See https://github.com/thi-ng/umbrella/tree/develop/packages/wasm-api https://github.com/thi-ng/umbrella/tree/develop/packages/was... for example.
- lenkite 3y agoNot really. From that very page: "Since only numeric values can be exchanged between the WASM module and the JS host, any JS native objects the WASM side might want to be working with must be managed manually in JS. "
- davexunit 3y agoThat's out of date. You can share GC managed references between host and guest now. Here's an example of Scheme compiled to Wasm that uses DOM APIs: https://spritely.institute/news/building-interactive-web-pages-with-guile-hoot.html https://spritely.institute/news/building-interactive-web-pag...