
Bringing SIMD to the Web via Dart
About this video
John McCutchan of Google explains how Dart and the Dart VM expose SIMD instructions to speed up web software. He covers what SIMD is and how it applies to graphics and games.
Why it appears in the archive
Pointed to as the original talk by the author of the SIMD-in-JavaScript proposal, whenever SIMD on the web comes up.
AI-generated summary and labels from the source dataset; verify important details against the video. Source & credits.
From the Hacker News discussion
Check "Bringing SIMD to the Web via Dart" by John McCutchan: [VIDEO] He's also the guy wrote the proposal for ECMAScript: [LINK] Also, using SIMD is way easier than using shaders. You just write something like this: double average (Float32x4List list) { var n = list.length; var sum = new Float32x4.zero(); for (int i = 0; i < n; i++) { sum += list[i]; } var total = sum.x + sum.y + sum.z + sum.w; return total / (n * 4); } Instead of: double average (Float32List list) { var n = list.length; var sum = 0.0; for (int i = 0; i < n; i++) { sum += list[i]; } return sum / n; }
Read original comment ↗Why Dart? SIMD - Single Instruction Multiple Data - Speeds up things like WebGL, added to Dart VM, not available in JavaScript except through an experimental technique in FireFox [VIDEO]
Read original comment ↗They've also published a new RayTracer OO benchmark showing the Dart VM far out performing V8: [LINK] Guessing being able to use native SIMD instructions inside the Dart VM should help with gaming and other graphics intensive apps: [VIDEO]
Read original comment ↗