JS to Rust WebAssembly the hard way ... and the easy way

preview_player
Показать описание


0:00 Taca demo
0:36 HTML escaping demo
2:34 Going the hard way
3:50 Rust details
6:30 JS details
8:41 Wrapping raw escapeHtml
10:44 Vanishing memory buffer
11:57 Support JS from wasm_bindgen/wasm-pack
15:01 Considering wit-bindgen and WebAssembly Interface Types
Рекомендации по теме
Комментарии
Автор

By the way, Node does have fetch support these days, which I'd actually missed, but it's still missing "file:" fetch. As mentioned in the video, Bun and Deno do both work out of the box on the demo as presented, including automatic support for both ES modules & TypeScript.

contextfree
Автор

Almost the same situation in C/C++: you either use Emscripten which does most of the job for you OR you do it manually with Clang (which doesn't port the standard library so if you want to use std::vector, std::map etc. you gotta write them yourself). It would be nice to see a video about that too.

lucatracanna
Автор

Seems WASM is coming back into general conversation again. Feels like it has been quiet since the announcement of WASM garbage collection. Maybe I stopped paying attention?

codeman-dev
Автор

4:31 Minor correction: DataView getters will *always* use big endian unless `true` is specified, regardless of host endianness.

rcelyte
Автор

This is pretty interesting. How complex is webgpu?

Germisstucklmao