Wednesday, May 18, 2011

Meet a Linux emulator all done in JavaScript

There is no doubt whatsoever that the browsers are evolving more and more, and being able to run increasingly complex applications and heavy. But a developer (who probably had a good time off) was well: he created an entire Linux emulator in Javascript that runs in your browser!

The author's achievement, Fabrice Bellard, managed to develop completely in Javascript a machine with x86 architecture and runs a version (in text mode only) Linux. And the machine settings, although archaic to the current settings, the attention we're talking about a machine with a processor speed close to a 486 running in your browser, and with a fully functional Linux system!

It should also run Doom
Obviously, they lack some basic instructions on the processor: it has no FPU (floating point unit) for example, but this is solved by using Linux kernel release (2.6.20), which has an FPU emulator. In other cases, such as lack of protected mode 16-bit, there's plenty to do.

"But what would I do with a Linux emulator on my browser if it only runs in text mode and does not even network?"- You might be wondering. Why, it can be used as a platform for benchmarking systems Javascript, as well as a test platform applications, or even to run some older games, even if it was done in DOS. Moreover, it is useful to impress friends and chicks.

An important detail is that the emulator only showed run well in Chrome and Firefox 4 on other browsers, or it has not run or made ​​a mistake that was very old browser (such as Opera and IE8 11). In any case, it is worth a look.