High-Performance WebGL Apps with LLJS and asm.js
summary
Describes how C/C++ compiled to JavaScript via Emscripten and a spec called asm.js yields near-native speed by using 32-bit integer tricks, typed arrays and no GC; shows a lljs extension that adds C-like pointers and stack allocation so vector math compiles to raw heap reads and writes. Demonstrates a WebGL cloth physics demo running ~20 ms in Firefox (~35 ms in Chrome), explains AOT compiled machine-code caching, and notes missing dynamic allocation and bugs.
AI-written summary · about
chapters (11)
- 0:00Start
- 0:14James Long
- 6:17No Garbage Collection
- 12:53Chrome
- 14:36Current Benchmarks
- 16:40Low-Level Javascript
- 18:34Constructor Function
- 22:08Pointers
- 25:35Dynamic Allocation
- 27:19Cloth Demo
- 31:15Live Editor
related talks
30mNative Speed on the Web: JavaScript and asm.js
34mBack to the FUTURE! From C++ to JS
29mWebAssembly - the Final Frontier
23mA Love Story Between JavaScript and C++
41mCreating High-Performance Web Apps with WebAssembly
46mTurbocharging Client-Side Processing: Leveraging asm.js
28mWebAssembly: Of Portability, and Performance
39mWebAssembly for the rest of us
