Hacker News new | ask | show | jobs
by jedisct1 863 days ago
It's possible. See https://github.com/thi-ng/umbrella/tree/develop/packages/was... for example.
1 comments

Not 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. "

That'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-pag...