Programming WebAssembly with Rust: Unified Development for Web, Mobile, and Embedded Applications
Original price was: $45.95.$29.00Current price is: $29.00.
Price: $45.95 - $29.00
(as of Oct 05, 2024 22:07:08 UTC – Details)
WebAssembly fulfills the long-awaited promise of web technologies: fast code, type-safe at compile time, execution in the browser, on embedded devices, or anywhere else. Rust delivers the power of C in a language that strictly enforces type safety. Combine both languages and you can write for the web like never before! Learn how to integrate with JavaScript, run code on platforms other than the browser, and take a step into IoT. Discover the easy way to build cross-platform applications without sacrificing power, and change the way you write code for the web.
WebAssembly is more than just a revolutionary new technology. It’s reshaping how we build applications for the web and beyond. Where technologies like ActiveX and Flash have failed, you can now write code in whatever language you prefer and compile to WebAssembly for fast, type-safe code that runs in the browser, on mobile devices, embedded devices, and more. Combining WebAssembly’s portable, high-performance modules with Rust’s safety and power is a perfect development combination.
Learn how WebAssembly’s stack machine architecture works, install low-level wasm tools, and discover the dark art of writing raw wast code. Build on that foundation and learn how to compile WebAssembly modules from Rust by implementing the logic for a checkers game. Create wasm modules in Rust to interoperate with JavaScript in many compelling ways. Apply your new skills to the world of non-web hosts, and create everything from an app running on a Raspberry Pi that controls a lighting system, to a fully-functioning online multiplayer game engine where developers upload their own arena-bound WebAssembly combat modules.
Get started with WebAssembly today, and change the way you think about the web.
What You Need:
You’ll need a Linux, Mac, or Windows workstation with an Internet connection. You’ll need an up-to-date web browser that supports WebAssembly. To work with the sample code, you can use your favorite text editor or IDE. The book will guide you through installing the Rust and WebAssembly tools needed for each chapter.
From the brand
Explore our collections
The Pragmatic Programmers publishes hands-on, practical books on classic and cutting-edge software development and engineering management topics. We help professionals solve real-world problems, hone their skills, and advance their careers.
Publisher : Pragmatic Bookshelf; 1st edition (April 30, 2019)
Language : English
Paperback : 240 pages
ISBN-10 : 1680506366
ISBN-13 : 978-1680506365
Item Weight : 1 pounds
Dimensions : 7.5 x 0.51 x 9.25 inches
11 reviews for Programming WebAssembly with Rust: Unified Development for Web, Mobile, and Embedded Applications
Add a review
You must be logged in to post a review.
Original price was: $45.95.$29.00Current price is: $29.00.
Alex –
Great material
This is a very enjoyable read, sometimes goes deeper than I expected, but that’s a good thing. Thanks a lot for putting it all together, I’ve got all the info I expected + quite a few extras
Amazon Customer –
Really good rundown of WebAssembly’s memory model
I had already worked-through much of the WebAssembly coding tutorials and documentation, so I picked-up this book for a specific perspective on the platform itself, and it’s very helpful and valuable in that regard. A healthy discussion of the memory model and working with raw WebAssembly and tools in the .WAT format are discussed, followed by using more formal toolchains.If you need a from-scratch primer on WebAssembly programming, you may want to review the docs, but this is a great narrative about how the technology is used in and out of the browser.
P. Todd Decker –
Good but very much out of date
This book is good, and I’m enjoying working through it, but it is very out of date and desperately needs a second edition. Also, this is not a book for beginners although this is indicated on the cover and by the publisher. The book was finished prior to some things being settled about wasm code. For example, it uses `get_local` to retrieve a locally scoped value whereas the proper verbiage is not `local.get`. Another example is that exports and imports have changed from this book to current usage.
jacob esplin –
Not sure if it was worth the purchase
I have been working on a few of the coding examples and am stuck on the rogue game example. I have everything compiling correctly in rust, but when the browser loads it is throwing a null ptr error coming from the JavaScript. It is not very pleasing troubleshooting a JavaScript issue for 3 hours when this book is about rust.
Craig McMurtry –
Only conceivably of any passing interest if you already know Rust and Web Assembly intimately
This text moves directly from paragraphs that assume that the reader has never heard of Rust to paragraphs that assume that the reader is an experienced Rust developer, after doing the same for Web Assembly. Of passing interest if one has read the documentation for both, done some initial work with them and then, for some reason, wants to know how to develop a game of checkers with those tools.
Melissa –
Incredibly hard to follow the book
The book moves around from chapter to chapter without much consideration on how to go about actually build anything from the perspective of someone with little to no WebAssembly experience
M. Ask –
If you just want to read the book, I’m sure it’s fine
However, as a developer, I like to code along with the book – this is next to impossible after the first 1/4th of the book. The author makes assumptions and leaves out steps – even so much as to not mention that you need to install, build and then run the samples with npm commands that he does not even cover in the book (I knew what to do because I’ve used node/npm on the job). More than once I had to look at the source code provided on the book’s web site to fill in needed gaps – and then, especially with chapter 5, the running code throws an error (this is code from the author’s website that compiles and runs, but fails…). Unfortunately spent a day off working through this book and I should not have done so – you can definitely do better using Google – disappointing.
William –
Book provides nothing of value
The book has no sense of organization whatsoever and needs much refinement to be useful for such a promising title. The author spends many pages filling up barely illustrative code examples which don’t really give any big-picture enlightenment. The examples on the Rust website are much better.
ootoo –
– Examples incomplete, needed to copy code from the published example code- Early unnecessary complexity in early examples just to show how to export/import functions from wasm- Rust level varying highly, even early
Judit Tompa –
All good, no issues with the product or the delivery.
J R BECKETT J B DATA SOLUTIONS LTD –
perfect