Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Concurrency and Parallel Computing in JavaScript

Strange Loop Conference via YouTube

Overview

Explore concurrency and parallel computing in JavaScript through this 41-minute conference talk from Strange Loop 2013. Gain insights into the JavaScript execution model, asynchronous programming techniques, and modern parallel hardware utilization. Discover how to leverage promises for better flow control and error handling, implement web workers for long-running tasks, and harness SIMD programming for performance optimization. Learn about the Parallel JavaScript proposal and its potential impact on future web development. Delve into practical examples, including asynchronous image loading, personalization scenarios, and parallel array operations, to enhance your understanding of concurrent and parallel programming in the JavaScript ecosystem.

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

Reviews

Start your review of Concurrency and Parallel Computing in JavaScript

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.