Главная
Study mode:
on
1
Intro
2
JavaScript: true cross-platform target
3
Rust (LLVM)
4
Emscripten + Rust
5
Exporting functions
6
Generated code (asm.js)
7
Optimized code (asm.js)
8
Optimized code (WASM)
9
Memory model
10
Calling JavaScript
11
_embind_register_
12
Garbage collection
13
Speed (2.8M JSON)
Description:
Explore the integration of Rust with JavaScript through asm.js and WebAssembly targets in this 45-minute conference talk. Delve into the challenges of interacting with DOM API, JavaScript libraries, and Node.js built-ins from Rust. Learn low-level techniques for wrapping common browser APIs into Rust interfaces and discover methods for interacting with JavaScript objects without native garbage collection support in Rust. Gain insights into exporting functions, generated and optimized code in asm.js and WebAssembly, memory models, and garbage collection. Compare performance metrics, including a 2.8M JSON parsing example, to understand the potential of Rust-JavaScript integration.

Interaction with Real-World JavaScript from Compiled Rust

Rust
Add to list