Home » Community » Coffee corner » Running Linux in a browser
Running Linux in a browser [message #32434] |
Tue, 17 May 2011 18:22 |
|
We all know that todays javascript engines are very powerful... but what I've found today just made me stare at the screen, not believing my eyes
Fabrice Bellard has written an x86 emulator in javascript, capable of booting and running a linux kernel: http://bellard.org/jslinux/. So if you want to run U++ CLI applications in web browser, all you need is to compile it for Pentium MMX processor, put it in an initrd image and put it together with two JS files on your web At least in theory, I haven't tried it (yet)
This really made my day, I just had to share this...
Best regards,
Honza
|
|
|
|
|
Re: Running Linux in a browser [message #32864 is a reply to message #32434] |
Wed, 15 June 2011 17:17 |
harmac
Messages: 16 Registered: January 2011
|
Promising Member |
|
|
Haha, I'd guess it certainly has to be slow as fu**. Considering how incredibly slowly a fully emulated PC runs Minix on my computer, which I've recently tested for the first time using Bochs on my admittedly not too powerful Atom system, I doubt that it would be enjoyable to run it on any weaker platform in a browser. That an emulator implementation is possible in JavaScript is not very surprising, given the functional core of the language, which some may even regard as superior to C++ (although there also seem to be at least as many ugly features in the language as are in C++; I can really suggest anyone interested in JavaScript or computer history or the state of web programming to watch Douglas Crockford's video lectures, some of which, especially the first one and the last ones, include truly mind-provoking views and insights).
Anyway, JavaScript implementations still differ at least as much as do other language implementations (you have probably already heard about compiler incompatibilities in the C/C++ world). jslinux for instance didn't work for me the first time I tried it with the then current Opera (although it seemed to work now some weeks later, maybe it is being improved). It was also not freely licensed, although the website now suggests that that might be planned in the future.
IMHO, the cleaner way to make the browser become the next application platform would be to replace JavaScript with something better instead of using it as the basis for proof-of-concept development in the now and inspire people to use it even more. Then again, the lower depths on which we built our systems are ugly as well. In an ideal world, people would do better.
Nonetheless, exciting technology that this guy has built. Here is an article that links to some of his projects: http://www.softwarequalityconnection.com/2011/03/fabrice-bel lard-portrait-of-a-superproductive-programmer/
|
|
|
Goto Forum:
Current Time: Fri Apr 26 05:15:42 CEST 2024
Total time taken to generate the page: 0.01849 seconds
|