news4geeks.net
19May/110

Linux kernel runs inside web browser

0saves

An independent programmer has used JavaScript to build a PC emulator capable of running Linux inside a web browser.

French hacker Fabrice Bellard says his JavaScript PC Emulator can run the 2.6.20 Linux kernel inside Mozilla's Firefox 4 and Google's Chrome 11, two browsers designed to significantly advance JavaScript speeds. "I did it for fun, just because newer JavaScript engines are fast enough to do complicated things," Belllard writes. But he believes the emulator could be used to benchmark JavaScript engines.


According to Bellard – known for creating the FFmpeg open source multimedia project and the QEMU processor emulator – his JavaScript PC emulator is about two times slower on Chrome's V8 JavaScript engine than on Firefox's Jaeger Monkey engine, and this was promptly seized upon by JavaScript creator Brenden Eich, who's now the chief technology officer at Mozilla. Bellard tested the 32-bit version of both browsers.

Douglas Crockford - the man who "discovered" JSON and now servers as senior JavaScript architect at Yahoo! – recently released a new JavaScript benchmark based on JSLint, his own JavaScript code quality tool. Firefox 4 bested Chrome on this test too, as did Microsoft's Internet Explorer 10 preview.

Fabrice Bellard wrote his PC Emulator with pure JavaScript using the typed array specification, which provides an API for using native binary data, and he has tested his creation on browsers running atop Linux, Windows, and Mac OS.

The emulated hardware includes a 32-bit x86 compatible CPU, a 8259 programmable interrupt controller, a 8254 programmable interrupt timer, and a 16450 UART (universal asynchronous receiver/transmitter). According to Bellard, the emulated CPU is comparable to an Intel 486 chip, though it does not include a floating point unit. Bellard was able to emulate a floating point unit, however, using the Linux kernel.

Bellard believes his emulator could be used for client-side cryptographic processing. Or – if you're looking for a more serious pursuit – he also points out it could eventually let you play old DOS games.

(Source: theregister.co.uk)

 

The Linux Foundation has released its annual report on the state of the software, and reports that Microsoft has made it into the Top 20 of companies that ...
READ MORE
Windows 8 hardware rules ‘derail user-friendly Linux’
The question of whether Secure Boot technology in UEFI firmware could exclude Linux from PCs running Windows 8 has taken a fresh twist. Red Hat engineer Matthew Garrett, one of ...
READ MORE
New kernel patch slashes Linux’s power appetite
Linux users working on laptops and other portable devices may soon have cause to rejoice thanks to a new kernel patch that finally promises to fix power regression problems ...
READ MORE
Linus Torvalds dubs GNOME 3 ‘unholy mess’
Linux daddy Linus Torvalds has dropped GNOME 3 in favor of the Xfce graphical desktop interface, dubbing GNOME 3 an "unholy mess". Last week, on Google+, various penguins discussed the ...
READ MORE
Firefox’s four release channels explained
By now, it should be easy to pick a browser. Most of you probably settled on a favorite ages ago, and it’s going to take some seriously cool ...
READ MORE
Microsoft makes Top 20 list of Linux kernel
Windows 8 hardware rules ‘derail user-friendly Linux’
New kernel patch slashes Linux’s power appetite
Linus Torvalds dubs GNOME 3 ‘unholy mess’
Firefox’s four release channels explained

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

No trackbacks yet.