Overview
Syllabus
Intro
Trying A Definition (2)
Agenda
JavaScript Execution Model
Example: Asynchronous Image Loading
Fixed Asynchronous Image Loading
Asynchronous Image Loading Flow
A More Complex Scenario: Personalization
Enter: Promises
Internal State of a Promise
Encoding Flow with Promises
Handling Errors with Promises
Long Running Scripts
How to Handle Long Running Events
Enter: Web Workers
Concurrency Model with Web Worker
Modern Parallel Hardware
Task Parallelism with Web Workers
SIMD Programming
SIMO Examples
Adding SIMD to JavaScript
SIMD Example in JavaScript (2)
Parallel JavaScript (formerly River Trail)
Adding Parallelism to JavaScript
A New Concept: Temporal immutability
Example: Increment (2)
Example: Sum
Parallel JavaScript + Typed Objects: Grayscale
Some Sample Applications
Conclusion
Taught by
Strange Loop Conference