3 ms·
Ahh, yes, that helps a lot, thanks Steve! I missed the fact that the wrapper is what the backend communicates with, and then the wrapper calls wasm. I thought t
by StavrosK 7y ago
Ahh, yes, that helps a lot, thanks Steve! I missed the fact that the wrapper is what the backend communicates with, and then the wrapper calls wasm. I thought the backend would call wasm directly (and that I could just not have a JS wrapper at all).
It would be extremely helpful if this was mentioned somewhere on the starting docs (maybe it is and I missed it?).
- steveklabnik 7y agoAny time! Where did you look for this information? I can file a bug, but knowing where to put it would be helpful.
- StavrosK 7y agoGreat question. Because I was thinking that I could use workers with just rust, I Googled for "CloudFlare workers rust" and ignored anything that had JS in it. I can tell you where I probably was when I get to my computer if you want, it was probably the CloudFlare articles about Rust and workers. EDIT: Oops, looks like I replied to my own comment before, HN mobile app fail. Luckily, you saw the reply.
- steveklabnik 7y agoCool thanks :) I think that's still helpful.
- StavrosK 7y agoNo problem! I looked again, and I think I looked around at the blog articles, wrangler and messed a bit with the examples, then didn't make much sense of it and gave up. I would have had much better luck if I had seen what you told me, ie "you can call wasm from JS" rather than thinking I could somehow execute wasm directly on the worker. Thanks again!