Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Practical WebAssembly

You're reading from   Practical WebAssembly Explore the fundamentals of WebAssembly programming using Rust

Arrow left icon
Product type Paperback
Published in May 2022
Publisher Packt
ISBN-13 9781838828004
Length 232 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Sendil Kumar Nellaiyapen Sendil Kumar Nellaiyapen
Author Profile Icon Sendil Kumar Nellaiyapen
Sendil Kumar Nellaiyapen
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Preface 1. Section 1: Introduction to WebAssembly
2. Chapter 1: Understanding LLVM FREE CHAPTER 3. Chapter 2: Understanding Emscripten 4. Chapter 3: Exploring WebAssembly Modules 5. Section 2: WebAssembly Tools
6. Chapter 4: Understanding WebAssembly Binary Toolkit 7. Chapter 5: Understanding Sections in WebAssembly Modules 8. Chapter 6: Installing and Using Binaryen 9. Section 3: Rust and WebAssembly
10. Chapter 7: Integrating Rust with WebAssembly 11. Chapter 8: Bundling WebAssembly Using wasm-pack 12. Chapter 9: Crossing the Boundary between Rust and WebAssembly 13. Chapter 10: Optimizing Rust and WebAssembly 14. Other Books You May Enjoy

Preface

Delivering high-performance applications is a nightmare. JavaScript is a dynamically typed language. Thus, the JavaScript engine assumes the type when executing JavaScript. These assumptions lead to unpredictable performance. This makes it even harder to deliver consistently high-performance applications in JavaScript.

WebAssembly provides a way to run type-safe and high-performance applications in the JavaScript engine.

WebAssembly is blazingly fast

WebAssembly is the next great thing that happened in the web. It promises high and consistent performance with maintainable code, running native code and providing near-native performance on the web.

WebAssembly is type-safe

The JavaScript compiler struggles to provide high performance when you have polymorphic JavaScript code. WebAssembly, on the other hand, is type-safe (or monomorphic) at compile time. This not only boosts performance but also greatly reduces runtime errors, which is a win-win.

WebAssembly runs your native code

There have been multiple attempts to make the web faster by running native code. But they all failed because they are either vendor-specific or tied to a single language. The web is built on top of open standards. By being an open standard, WebAssembly makes it easy for all companies to adopt and support it. WebAssembly is not a language; it is a high-level implementation plan for other languages that compile to byte code that will run on the JavaScript engines.

WebAssembly is byte code

WebAssembly is nothing but a bytecode that runs in JavaScript Engine. In this book, we will learn how to convert native code into WebAssembly and how to optimize it to get even better performance. We will also cover how the entire WebAssembly runs on the JavaScript engine and how to use the various tools available and what they help us to achieve.

Most importantly, learn where and how to use WebAssembly to get the desired result out of it.

Let's make the web even more awesome and faster with WebAssembly.

lock icon The rest of the chapter is locked
Next Section arrow right
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £16.99/month. Cancel anytime