SHARE
Facebook X Pinterest WhatsApp

Run Linux in a Web Browser Using JavaScript

May 18, 2011

Programmer Fabrice Bellard this week unvieled a project he’s been working on that enables Linux to run inside a web browser window. Using JavaScript, his program emulates an x86 processor that is speedy enough to run the OS.

It may not be as fast as current processors, but the JavaScript PC Emulator does run at the same speed as an Intel 486 chip from the ’90s. To make up for the lack of a built-in floating point unit that would normally handle numeric processing, the Linux OS itself takes up the slack.

Bellard’s emulator runs a version of the Linux 2.6.20 core. Bellard discussed it on Saturday, stating that “I did it for fun, just because newer JavaScript engines are fast enough to do complicated things. 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 (forFirefox 4) and V8 (for Chrome).”

Recommended for you...

Web 3.0 and the Future Of Web Development
Rob Gravelle
Jun 23, 2022
CodeGuru and VBForums Developer Forums and Community
James Payne
Apr 7, 2022
Understanding CSS Template Layout
Vipul Patel
Mar 29, 2022
Criminals Pay More for Code Signing Certificates Than for Guns or Passports
HTML Goodies Logo

The original home of HTML tutorials. HTMLGoodies is a website dedicated to publishing tutorials that cover every aspect of being a web developer. We cover programming and web development tutorials on languages and technologies such as HTML, JavaScript, and CSS. In addition, our articles cover web frameworks like Angular and React.JS, as well as popular Content Management Systems (CMS) that include WordPress, Drupal, and Joomla. Website development platforms like Shopify, Squarespace, and Wix are also featured. Topics related to solid web design and Internet Marketing also find a home on HTMLGoodies, as we discuss UX/UI Design, Search Engine Optimization (SEO), and web dev best practices.

Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.