Cargando…

WebAssembly in action : with examples using C++ and Emscripten /

WebAssembly in Action teaches you how to write and run high-performance browser-based applications using C++ and other languages supported by WebAssembly. In it, you'll learn to create native WebAssembly modules, interact with JavaScript components, and maximize performance with web workers and...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Gallant, Gerard (Autor)
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Shelter Island, NY : Manning Publications Co., [2019]
Edición:First edition.
Temas:
Acceso en línea:Texto completo (Requiere registro previo con correo institucional)
Descripción
Sumario:WebAssembly in Action teaches you how to write and run high-performance browser-based applications using C++ and other languages supported by WebAssembly. In it, you'll learn to create native WebAssembly modules, interact with JavaScript components, and maximize performance with web workers and pthreads. And you'll love how the clearly organized sections make it a breeze to find the important details about every function, feature, and technique.
Part 3. Advanced topics -- Chapter 7. Dynamic linking: The basics -- 7.1. Dynamic linking: Pros and cons -- 7.2. Dynamic linking options -- 7.3. Dynamic linking review -- Real-world use cases -- Exercises -- Summary -- Chapter 8. Dynamic linking: The implementation -- 8.1. Creating the WebAssembly modules -- 8.2. Adjusting the web page -- Real-world use cases -- Exercises -- Summary -- Chapter 9. Threading: Web workers and pthreads -- 9.1. Benefits of web workers -- 9.2. Considerations for using web workers -- 9.3. Prefetching a WebAssembly module using a web worker -- 9.4. Using pthreads -- Real-world use cases -- Exercises -- Summary -- Chapter 10. WebAssembly modules in Node.js -- 10.1. Revisiting what you know -- 10.2. Server-side validation -- 10.3. Working with Emscripten-built modules -- 10.4. Using the WebAssembly JavaScript API -- Real-world use cases -- Exercises -- Summary -- Part 4. Debugging and testing -- Chapter 11. WebAssembly text format -- 11.1. Creating the game's core logic using WebAssembly text format -- 11.2. Generating a WebAssembly module from the text format -- 11.3. The Emscripten-generated module -- 11.4. Creating the HTML and JavaScript files -- 11.5. Viewing the results -- Real-world use cases -- Exercises -- Summary -- Chapter 12. Debugging -- 12.1. Extending the game -- 12.2. Adjusting the HTML -- 12.3. Displaying the number of tries -- 12.4. Incrementing the number of tries -- 12.5. Updating the summary screen -- Exercises -- Summary -- Chapter 13. Testing-and then what? -- 13.1. Installing the JavaScript testing framework -- 13.2. Creating and running tests -- 13.3. Where do you go from here? -- Exercises -- Summary -- Appendix A. Installation and tool setup -- A.1. Python -- A.2. Emscripten -- A.3. Node.js -- A.4. WebAssembly Binary Toolkit -- A.5. Bootstrap.
Notas:Includes index.
Descripción Física:1 online resource (1 volume) : illustrations