Bringing SIMD to the Web via Dart

Channel:InfoQ · Length:27:43 · Published:2013-03-12 · Views:11195

Watch on YouTube

Summary

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 HN recommends it

Pointed to as the original talk by the author of the SIMD-in-JavaScript proposal, whenever SIMD on the web comes up.

Check "Bringing SIMD to the Web via Dart" by John McCutchan — HN, 2014

Python, Ruby & scripting languages · Web development · Software performance & optimization

Subtitles (excerpt)

[Music] all right everyone can hear me great I'm John McCutchen my talk is going to be pretty lowlevel so I hope you enjoyed Seth's talk which was nice and high level gooey stuff I'm going to go right into the VM so let's have some fun to give you an idea of my background uh it's a little bit different to be at a like a web development uh talk uh when I was in university I wrote something called I notify which is a module for the Linux kernel that does file system notifications so if something changes on your dis an event will be delivered to an application it's it's used everywhere every Android phone uses it every Linux desktop every Linux server is using I notify after doing that I started working at PlayStation where I helped Port bullet physics which is a 3D physics library to the PlayStation 3 which is a lot of fun because the PS3 has a very interesting CPU architecture with these uh CPUs called spus which are they're they're interesting in that they can't access main memory directly um so it takes a lot of juggling to get data and code in and out so when that project kind of ramped down I started to just be a go-to optimization guy so if uh a game company that was developing for the Playstation 3

On Hacker News

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; r… — ahoge, 2014-06
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] — mythz, 2013-04
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] — michaelwww, 2013-03

Related videos