I’m reading about
Since there are many options how to implement rust+wasm <-> js interop, i’m trying to find an optimal way & approach.
I am wondering about:
- is there any reasons for using
web-sysother than dev not being familiar enough with js?
- are there any penalties in doing so? (performance wise or other)
- is there anything wrong with keeping things separated: rust for intensive calculus & js for DOM manipulation/orchestration (with preferably communicating through some memory/ArrayBuffer of some kind)?
PS. Obviously, i’m coming with assumption that rust-wasm would be used only when heavy calculus makes a difference between rust and js implementations.
PS2. I hope i’m not missing something obvious.