WebAssembly, also known as WASM, is a binary instruction format that provides multiple programming languages (C/C++, Ruby, Java, etc.) with a compilation target for smooth web processing. In this course, we’ll learn how to convert native code of different languages into WebAssembly and optimize it for better performance.
This intermediate-level course provides basic information on compilation techniques and VM infrastructure. It discusses converting C/C++ code into WebAssembly and loading the binary in a Node.js browser through tools like Emscripten and emsdk. You will learn the difference between WebAssembly text (WAST) and binary format (WASM). The course will cover step-by-step guidelines for switching between formats such as WASM, WAST, C, and JSON. Additionally, you’ll learn how to use tools provided by Binaryen.
After taking this course, you’ll learn how to integrate Rust into WebAssembly, publish modules, and optimize the memory model.
WebAssembly, also known as WASM, is a binary instruction format that provides multiple programming languages (C/C++, Ruby, Java,...Show More
WHAT YOU'LL LEARN
Familiarity with creating WebAssembly binary with Emscripten
Ability to run Emscripten-generated WebAssembly binary with a Node.js server
Ability to convert WASM to WAST and other formats
Working knowledge of identifying, debugging, and writing efficient WebAssembly modules
An understanding of using Binaryen to convert WebAssembly into different formats
Ability to convert Rust into WebAssembly with different packages
Familiarity with creating WebAssembly binary with Emscripten
Show more
Content
2.
Understanding LLVM
5 Lessons
Discover the logic behind LLVM's role in optimizing and compiling code for WebAssembly.
3.
Understanding Emscripten
7 Lessons
Master the steps to convert C/C++ code into WebAssembly using Emscripten tools and optimizations.
4.
Exploring WebAssembly Modules
4 Lessons
Grasp the fundamentals of WebAssembly modules, their workings, and text format for optimization.
5.
Understanding the WebAssembly Binary Toolkit
7 Lessons
Dig deeper into the WebAssembly Binary Toolkit's features for conversions and debugging.
6.
Understanding Sections in WebAssembly Modules
6 Lessons
Follow the process of understanding WebAssembly sections, from exports/imports to shared memory.
7.
Exploring Binaryen and Its Tools
6 Lessons
Master the tools to efficiently optimize and convert WebAssembly with Binaryen.
8.
Integrating Rust with WebAssembly
5 Lessons
Step through integrating Rust with WebAssembly, using tools like rustc, Cargo, and wasm-bindgen.
9.
Bundling WebAssembly Using wasm-pack
6 Lessons
Unpack the core of bundling WebAssembly with tools like wasm-pack, webpack, and Parcel.
10.
Crossing the Boundary between Rust and WebAssembly
8 Lessons
Master the steps to integrate Rust with JavaScript through WebAssembly for seamless functionality.
11.
Optimizing Rust and WebAssembly
6 Lessons
Grasp the fundamentals of optimizing Rust and WebAssembly for enhanced performance and efficiency.
13.
Appendix
6 Lessons
Simplify complex WebAssembly tool installations, including Emscripten, WABT, Binaryen, Rust, wasm-bindgen, and more.
Certificate of Completion
Showcase your accomplishment by sharing your certificate of completion.
Course Author:
Developed by MAANG Engineers
Trusted by 2.8 million developers working at companies
"These are high-quality courses. Trust me the price is worth it for the content quality. Educative came at the right time in my career. I'm understanding topics better than with any book or online video tutorial I've done. Truly made for developers. Thanks"
Anthony Walker
@_webarchitect_
"Just finished my first full #ML course: Machine learning for Software Engineers from Educative, Inc. ... Highly recommend!"
Evan Dunbar
ML Engineer
"You guys are the gold standard of crash-courses... Narrow enough that it doesn't need years of study or a full blown book to get the gist, but broad enough that an afternoon of Googling doesn't cut it."
Software Developer
Carlos Matias La Borde
"I spend my days and nights on Educative. It is indispensable. It is such a unique and reader-friendly site"
Souvik Kundu
Front-end Developer
"Your courses are simply awesome, the depth they go into and the breadth of coverage is so good that I don't have to refer to 10 different websites looking for interview topics and content."
Vinay Krishnaiah
Software Developer
Hands-on Learning Powered by AI
See how Educative uses AI to make your learning more immersive than ever before.
AI Prompt
Code Feedback
Explain with AI
AI Code Mentor
Free Resources