JavaScript: Now Powerful Enough to Run Linux
May 18, 2011 by Rob Nijkamp Source article

Programmer Fabrice Bellard's latest project is a JavaScript program that emulates an x86 processor fast enough to run Linux in a Web browser. The JavaScript PC Emulator can do the work of an Intel 486 chip from the 1990s, but doesn't have a built-in floating point unit for numeric processing, Bellard said. Linux itself can emulate that, and a version of the operating system's core--2.6.20--runs on the foundation.

Linux Web browser 

Linux in a Web browser window

Bellard published a technical description of the JavaScript PC Emulator and now the project caught the notice of prominent techies, including Brendan Eich, a Mozilla programmer and the creator of JavaScript. "I did it for fun, just because newer JavaScript engines are fast enough to do complicated things," Bellard said of the project. "I happen to be interested by the implementation of JavaScript engines these days--but I don't know yet if I will write my own any time soon! Anyway, this emulator was a way to learn how to write optimized code for recent JavaScript engines, in particular JaegerMonkey (for Firefox 4) and V8 (for Chrome)."

Bellard suggests some possibilities for more serious use, including benchmarks or running old DOS games. But probably the project's biggest practical repercussion is simply the news that JavaScript has matured enough to run an entire computer-within-a-computer.

Place your comment about JavaScript: Now Powerful Enough to Run Linux

You must me logged in to write a comment

Be the first to place a comment