Feeds

Linux kernel runs inside web browser

JavaScript mimics 486 PC

Choosing a cloud hosting partner with confidence

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. ®

Providing a secure and efficient Helpdesk

More from The Register

next story
Preview redux: Microsoft ships new Windows 10 build with 7,000 changes
Latest bleeding-edge bits borrow Action Center from Windows Phone
Google opens Inbox – email for people too thick to handle email
Print this article out and give it to someone tech-y if you get stuck
Microsoft promises Windows 10 will mean two-factor auth for all
Sneak peek at security features Redmond's baking into new OS
UNIX greybeards threaten Debian fork over systemd plan
'Veteran Unix Admins' fear desktop emphasis is betraying open source
Entity Framework goes 'code first' as Microsoft pulls visual design tool
Visual Studio database diagramming's out the window
Google+ goes TITSUP. But WHO knew? How long? Anyone ... Hello ...
Wobbly Gmail, Contacts, Calendar on the other hand ...
DEATH by PowerPoint: Microsoft warns of 0-day attack hidden in slides
Might put out patch in update, might chuck it out sooner
Redmond top man Satya Nadella: 'Microsoft LOVES Linux'
Open-source 'love' fairly runneth over at cloud event
prev story

Whitepapers

Choosing cloud Backup services
Demystify how you can address your data protection needs in your small- to medium-sized business and select the best online backup service to meet your needs.
Forging a new future with identity relationship management
Learn about ForgeRock's next generation IRM platform and how it is designed to empower CEOS's and enterprises to engage with consumers.
Security for virtualized datacentres
Legacy security solutions are inefficient due to the architectural differences between physical and virtual environments.
Reg Reader Research: SaaS based Email and Office Productivity Tools
Read this Reg reader report which provides advice and guidance for SMBs towards the use of SaaS based email and Office productivity tools.
Storage capacity and performance optimization at Mizuno USA
Mizuno USA turn to Tegile storage technology to solve both their SAN and backup issues.