Pauan
Pauan
I had the idea to try caching the strings, so if the same string is used multiple times it only needs to encode it once. I implemented a simple cache...
@Horcrux7 When the Rust program wants to call a native API, it must first send the UTF-8 string from Rust to JS, and then convert that UTF-8 string into a...
> @hsivonen Are they all ASCII? Yes. > Do they flow equally in both directions (Wasm to JS and JS to Wasm)? No, they only flow from Wasm to JS...
> The screenshot appears to show Chrome. What's the performance like in Firefox Nightly? Yes the screenshots were in Chrome (though Firefox had similar issues at the time). For consistency,...
It's possible for the Wasm module to import a `.js` module which exports the browser APIs. That sort of glue code will be needed for quite a long time (an...
If you want to do extremely dynamic things, that's what [`Reflect`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect) is for. Rust [uses Reflect](https://rustwasm.github.io/docs/wasm-bindgen/reference/accessing-properties-of-untyped-js-values.html) to look up and set arbitrary string keys on JS objects. Technically speaking you...
> There's been some feedback provided recently that toolchains and bundlers wouldn't be able to take advantage of the current Wasm/ESM integration proposal design Do you have a link to...
Ideally toolchains would use `instantiateStreaming`, since that's more efficient than `compileStreaming`. In that case, perhaps toolchains want something even more general, a way to fetch arbitrary resources: ```js import response...
> i don't think this is a bad idea but it is definitely an increase in the scope of esm and this proposal I agree that it is outside of...
@TheMC47 It's just a standard setup. I use [NixOS](https://nixos.org/) Unstable, so I use the following options: * `services.xserver.desktopManager.plasma5.enable = true;` * `services.xserver.windowManager.xmonad.enable = true;` * `services.xserver.windowManager.xmonad.enableContribAndExtras = true;` This installs...