Running Rust in the browser
Running Rust in the browser may seem like a similar task to using Rust binaries with Node.js. However, the modern browser environment is exceedingly more difficult. Sandboxing limits access to local resources (which is a good thing!) and browsers provide a small number of scripting languages to run within the website. While the most successful language is JavaScript, it comes with many drawbacks in the area of animation, caused by the scripting nature of the technology. On top of that, there is garbage collection, a type system with many flaws, and the lack of a coherent programming paradigm—all of which manifests itself in unpredictable and poor performance for real-time applications such as games.
However, these ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access