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)
Tabla de Contenidos:
  • Intro
  • Copyright
  • Brief Table of Contents
  • Table of Contents
  • Preface
  • Acknowledgments
  • About this Book
  • About the Author
  • About the Cover Illustration
  • Part 1. First steps
  • Chapter 1. Meet WebAssembly
  • 1.1. What is WebAssembly?
  • 1.2. What problems does it solve?
  • 1.3. How does it work?
  • 1.4. Structure of a WebAssembly module
  • 1.5. WebAssembly text format
  • 1.6. How is WebAssembly secure?
  • 1.7. What languages can I use to create a WebAssembly module?
  • 1.8. Where can I use my module?
  • Summary
  • Chapter 2. A look inside WebAssembly modules
  • 2.1. Known sections
  • 2.2. Custom sections
  • Summary
  • Chapter 3. Creating your first WebAssembly module
  • 3.1. The Emscripten toolkit
  • 3.2. WebAssembly modules
  • 3.3. Emscripten output options
  • 3.4. Compiling C or C++ with Emscripten and using the HTML template
  • 3.5. Having Emscripten generate the JavaScript plumbing code
  • 3.6. Having Emscripten generate only the WebAssembly file
  • 3.7. Feature detection: How to test if WebAssembly is available
  • Real-world use cases
  • Exercises
  • Summary
  • Part 2. Working with modules
  • Chapter 4. Reusing your existing C++ codebase
  • 4.1. Using C or C++ to create a module with Emscripten plumbing
  • 4.2. Using C or C++ to create a module without Emscripten
  • Real-world use cases
  • Exercises
  • Summary
  • Chapter 5. Creating a WebAssembly module that calls into JavaScript
  • 5.1. Using C or C++ to create a module with Emscripten plumbing
  • 5.2. Using C or C++ to create a module without Emscripten plumbing
  • Real-world use cases
  • Exercises
  • Summary
  • Chapter 6. Creating a WebAssembly module that talks to JavaScript using function pointers
  • 6.1. Using C or C++ to create a module with Emscripten plumbing
  • 6.2. Using C or C++ to create a module without Emscripten plumbing
  • Real-world use cases
  • Exercises.
  • Appendix B. ccall, cwrap, and direct function calls
  • B.1. ccall
  • B.2. cwrap
  • B.3. Direct function calls
  • B.4. Passing an array to a module
  • Appendix C. Emscripten macros
  • C.1. emscripten_run_script macros
  • C.2. EM_JS macros
  • C.3. EM_ASM macros
  • Appendix D. Exercise solutions
  • D.1. Chapter 3
  • D.2. Chapter 4
  • D.3. Chapter 5
  • D.4. Chapter 6
  • D.5. Chapter 7
  • D.6. Chapter 8
  • D.7. Chapter 9
  • D.8. Chapter 10
  • D.9. Chapter 11
  • D.10. Chapter 12
  • D.11. Chapter 13
  • Appendix E. Text format extras
  • E.1. Control flow statements
  • E.2. Function pointers
  • WebAssembly in Action
  • Index
  • List of Figures
  • List of Tables
  • List of Listings.