Do we have a plan for targetting rescript to wasm?

As the title, if we compile rescript to wasm, then how to solve the problem of garbage collection?

1 Like

By using a garbage collector.
There are examples out there.

None of them is as mature as native counterparts, but there’s been work.

Thanks for the response, can you list some garbage collectors? Also, i’m very curious about the final bundle size after embedding gerbage collector and dom api binding. I have some experiences of using rust wasm with wasm-bindgen, the target bundle size is too big(a middle complex application written by yew with bundle size of 1.5MB ), not just the allocator, the dom binding is also too big.

Here is one example that has been refined over a couple of years, for one specific application.

1 Like

Another one: