Follow Slashdot stories on Twitter


Forgot your password?

Slashdot videos: Now with more Slashdot!

  • View

  • Discuss

  • Share

We've improved Slashdot's video section; now you can view our video interviews, product close-ups and site visits with all the usual Slashdot options to comment, share, etc. No more walled garden! It's a work in progress -- we hope you'll check it out (Learn more about the recent updates).

Intel Programming Games News

River Trail — Intel's Parallel JavaScript 134

Posted by Soulskill
from the perpendicular-javascript-coming-soon dept.
mikejuk writes "Intel has just announced River Trail, an extension of JavaScript that brings parallel programming into the browser. The code looks like JavaScript and it works with HTML5, including Canvas and WebGL, so 2D and 3D graphics are easy. A demo video shows an in-browser simulation going from 3 to 45 fps and using all eight cores of the processor. This is the sort of performance needed if 3D in-browser games are going to be practical. You can download River Trail as a Firefox add-on and start coding now. Who needs native code?"
This discussion has been archived. No new comments can be posted.

River Trail — Intel's Parallel JavaScript

Comments Filter:
  • by yakovlev (210738) on Friday September 16, 2011 @05:14PM (#37424454) Homepage

    If half the work is unparallelizable then the max theoretical speedup is 2x.

    This is a simple application of Amdahl's law:

    speedup = 1 / ( (1-P) + (P/S) )
    where P is the amount of the workload that is parallelizable and S is the number of cores.
    speedup = 1 / ( (1-0.5) + (0.5/S) )
    lim S-> infinity (speedup) is 1/ 0.5 = 2x

    The likely reason the speedup appears superlinear here is that there are actually two speedups.

    1.) Speedup from parallelizing on multiple threads. From looking at the usage graphs, this is probably about 4x.
    2.) Speedup from vectorizing to use processor AVX extensions: This could be another 4x.

    Total speedup: 16x.

    A 16x speedup is totally believable for vectorizing and parallelizing a simple scientific simulation like the one shown in the video.

... though his invention worked superbly -- his theory was a crock of sewage from beginning to end. -- Vernor Vinge, "The Peace War"