Intel announced an open-source project, River Trail, to expand the JavaScript parallel programming feature.
The browser no longer only executes lightweight tasks, but applications with high computing workload must still be executed in the native mode because native applications have performance advantages. For example, it can take full advantage of parallel processing capabilities of multi-core processors. JavaScript, a general language for Web development, does not allow applications to access multiple cores. It is time to keep JavaScript up with the times. River Trail is a parallel programming extension of JavaScript, allowing Web applications to utilize the multi-core cores of the processor and vector extension commands. Intel developers said their goal is to make parallel JavaScript programming as simple as writing common JavaScript programs. Its Demo shows that 4000 objects are physically simulated using WebGL. The speed of the serial version is only 3fps, and the parallel version can reach 45fps.
Intel also introduced that River Trail can be seamlessly connected to existing technologies and can work together with APIs of other HTML5 new technologies. The above WebGL Demo is a good example, shows the good compatibility of River Trail. Currently, River Trail still exists as a Firefox browser extension. It is unclear whether it will attract the attention of other manufacturers and introduce it to their respective Javascript Engines, such as V8. In addition, in the comments in the original article, Intel also explained the differences between River Trail and Web Workers, and welcomed all developers to join this open-source project.
The following is an introduction video of this project. At the end of the video, you can see the WebGL Demo mentioned in this article.
Http://developers.solidot.org/article.pl? Sid = 11/09/20/0116210 & amp; from = rss