WebAssembly & Browser Platform Language Exercises

Exercises for WebAssembly vocabulary, service worker patterns, and web performance metrics including Core Web Vitals.

Frequently Asked Questions

What's a 'Wasm Module' and how does it relate to a Browser Platform Language exercise?

A Wasm module is a compiled representation of your code written in a language like Rust or C++, translated into WebAssembly bytecode. During an exercise, you'll typically work with these modules – they are the core executable units that run within the browser's WebAssembly engine, allowing you to manipulate data and perform computations.

I'm getting errors about 'undefined symbols'. What does this mean in the context of Wasm exercises?

'Undefined symbols' usually indicate that your original source code (e.g., C++) hasn't been fully linked to produce a Wasm module. This means the linker couldn't find the definitions for functions or variables used within the compiled Wasm, so you need to ensure proper linking during the build process.

Can I use JavaScript to interact with a Wasm module created in Rust?

Absolutely! WebAssembly is designed to be interoperable. You can call functions within your Rust-compiled Wasm module from JavaScript using the `wasm-bindgen` library, allowing you to pass data between the two environments during your exercise.