Slashdot Mirror


Linux In JavaScript, With Persistent Storage

An anonymous reader writes "Remember Fabrice bellard's [Linux-booting PC emulator in JavaScript] ? This modified version [Note: click on "emulator.html" in that directory to see it in action] allows the same emulator to boot the most recent linux kernel, 3.0.4, as well as providing the user with persistent storage. It is achieved by building a virtual block device, which stores data in HTML5 local storage. The block device can be partitioned and formatted as ext2, so it can be easily used."

171 comments

  1. Great! by Anonymous Coward · · Score: 2, Funny

    So when the web browser becomes the OS we will still be able to issue cryptic command-line incantations to do things that everyone else has to point-and-click to do!

    1. Re:Great! by Anonymous Coward · · Score: 0

      Mod +1 funny.

    2. Re:Great! by rubycodez · · Score: 1

      I thought emacs was the wonderous OS that does that. It's a crappy editor, though

  2. Re:uhhh by Spad · · Score: 5, Insightful

    Because you can? Because nobody else has done it? Because it's cool? Because it's a challenge?

    It depresses me that everyone always responds to these articles with "Why?" and "What's the point?" and "What a waste of time". The whole of human achievement is pretty much the story of people doing things just to see if they can, or because it's interesting to them, or because it's never been done before.

  3. Re:Whiskey Tango Foxtrot! by cryoman23 · · Score: 1

    aww but it is art. Beautiful wonder full art.

    --
    epic sig..... ya i got nothing
  4. Re:uhhh by knuthin · · Score: 1

    Because this guy can.

    --
    Some apps are WYSIWYG. Some others are WYSIWTF.
  5. Re:Whiskey Tango Foxtrot! by Slashdot+Assistant · · Score: 4, Informative
    From the author's site:

    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 Jaeger Monkey (for Firefox 4) and V8 (for Chrome).

  6. Re:uhhh by Anonymous Coward · · Score: 0

    I wouldn't exactly say that javascript is cool.. Now doing it in Hypercard, on a Mac IIx, that would be cool.. and a much bigger challenge.

  7. Educational sandbox? by Irick · · Score: 4, Interesting

    This could be a great thing to embed into online how-tos and the like for teaching basic or even advanced linux. ... heh, embedded linux on the rise again :P

    1. Re:Educational sandbox? by Guylhem · · Score: 1

      Believe me or not but for a 101 bioinformatics course I taught this year, I picked up jslinux to teach grep, pipe and other shell scripting basics.

      This was just the simplest option to get a linux prompt on every machine of the computer lab - and studenta who had brought their own laptops could work on the very same examples as the rest of the class, in an identical environment.

      Busybox grep is good enough for teaching the basics to students, and they can access the very same setup from home if they want to rehearse or try to solve the problems in a different way. .

      What is truly missing is not persistent storage but basic network support, to be able to wget example files. Not anyone can cook an initrd (loop mounted ext2 filesystem)

  8. Re:Whiskey Tango Foxtrot! by niftydude · · Score: 4, Insightful

    Three awesome reasons:

    1) Because you can,
    2) Because no-one else ever has,
    3) Because there are useful lessons that can be learned by performing an exercise like this.

    and I'll go ahead and speculate on the fourth and possibly best reason:
    4) Because the developer enjoyed solving the problems involved in doing it


    The time he spent doing this is probably equivalent to the time you spent watching all 5 seasons of the Battlestar Galactica. I'll leave it to you to decide which was the more monumental waste of time.

    --
    You can never know everything, and part of what you do know will always be wrong. Perhaps even the most important part.
  9. Re:Whiskey Tango Foxtrot! by Svippy · · Score: 1

    He got to the front page of Slashdot. I don't think I need to say more.

    --
    Clicked pie.
  10. Re:Whiskey Tango Foxtrot! by somersault · · Score: 1, Interesting

    I think it's very cool. Technical, yes. Difficult? Probably not that difficult seeing as Linux is designed to be amazingly portable. It doesn't even need the C standard IO library to compile, so really you'd just need to emulate a few low level interfaces for things like memory access, keyboard input and a terminal display. There are a few different ways to implement it, but if he has it running quickly then that would be quite impressive :)

    --
    which is totally what she said
  11. New Java VM/Script? by Doc+Ruby · · Score: 1

    Oracle is making announcements about Java 7 and 8 this week. Supposedly the new stuff is better integration between Java and HTML5, and between Javascript and the JVM.

    Will that revised tech be good support for an interactive user shell with a Javascript commandline calling Java objects, reporting back HTML5 in a DOM? Interactive HTML5 GUI objects that can take GUI events back into Javascript logic or just Javascript glue to Java objects in the JVM?

    Will Android's Dalvik JVM follow that route, or take its own route to that architecture?

    --

    --
    make install -not war

    1. Re:New Java VM/Script? by Anonymous Coward · · Score: 0

      dunno, you can already glue the webkit-view on android to dalvik code. if you want.

      most often there's no point.

    2. Re:New Java VM/Script? by g4b · · Score: 2

      I dont think Java will play a big role anytime soon in most of the web. Especially this demo shows, that js itself has become so powerful, that powerful conversion a compilation apis will evolve, completely removing java from interest in the web. and I fear the people who might consider your path of using integration to a VM in the background will use adobe products more for these tasks, where interaction is already given - even if the flash vm sucks.

      Your point is however interesting, because it shows what you think of, something which crosses barriers of mobile (no adobe!) and desktop browsers - there the only problem is, the number of applications for this model being used both in browsers and mobile devices are too few; the development cost of apps building either on complete web based logic or application based logic for mophos are smaller; and at last: while java is a common thing between android and the desktop, there is already the separation between oracle and dalvik and the separation between ios, symbian, winmob, and others, not all supporting java or flash as common backbone, again throwing up the question if targeted dedicated apps using common apis are not cheaper.

      So my answer is: does not matter what oracle does there. It's a market which already falls from its zenith.

      Java plays a role in conversion languages however at google. I still prefer pyjamas.

    3. Re:New Java VM/Script? by g4b · · Score: 1

      ah yeah, and there is the werewolf in the vampire: .net with silverlight and browsers would compete here too on windows devices.

      but vampires get fewer after generations of desperate although somehow successful geeky witchhunts.

    4. Re:New Java VM/Script? by Doc+Ruby · · Score: 1

      I don't see a GUI shell on a JVM being a Web technology. Except that the GUI and JVM could be remote from each other, transparently. Mainly I'm interested in a GUI shell to an OS and a complete machine, distributed or not. That's not really the "Web", though it could be the "Internet".

      I'm especially interested in a mobile platform that works this way, so Android - which is an OS dedicated to running a JVM.

      I'd like to use a fully dynamic GUI markup format like HTML5 for presentation, Java classes for computation and data management, and all the existing platforms, libraries, code in repos and tools supporting them for application development. I think an environment that's Javascript for interactive programming, Java for compiled heavy lifting, HTML5 for presentation would be very flexible yet highly specific in application. It would be the modern revision to ksh/C/printf, inherently networked, on JVM instead of C/Unix VM.

      I suppose the missing piece would be Sqlite, if it were better integrated to server-side full SQL (explicit JOINs, Java/script stored procedures, etc), corresponding to ksh/C/printf's dbm. Just as Javascript is the dynamic/interactive control language for interfacing HTML5 to Java, Sqlite could be the lightweight data metamodel gluing full SQL to HTML5 local storage.

      With that platform (HTML5/Javascript/JVM/Java/Sqlite), there'd be as little difference between "the Web", a local app, and "the Internet" as there is in C/Unix between domain sockets and remote sockets, or as there is on (properly used) X between distributed client/server and both on localhost. So "the Web" would go away as a distinction. Which, especially for mobile use, is essential given the continuing unreliability and diversity of networks and other hardware in use during a single session or across multiple ones by the same user for a continuing purpose.

      So it does matter what Oracle does. Because it matters how Oracle's new JVM implements Javascript support, since it's the most common JVM in use. And because Oracle's JVM sets the context for what Google does with Dalvik for all the Android devices rapidly eclipsing (pun not intended, but realized and approved :). the rest of the JVM instances. Especially in the context of Oracle's existential lawsuits against Google's Android. The support in each (and, preferably, the same in both) of those defining JVMs will determine whether "Web 3.0" has a platform like the one I described.

      But, probably at least as important to me, is whether I get that platform. I've been waiting for it instead of a VT100 XTerm for over 10 years, ever since a "Netscape GUI CLI" plugin appeared briefly and then disappeared.

      --

      --
      make install -not war

    5. Re:New Java VM/Script? by g4b · · Score: 1

      Now I understand. There is however in this scenario also the possibility that Google will Go another way.

    6. Re:New Java VM/Script? by Velex · · Score: 1

      Java and Javascript are two completely different technologies. The only thing they have in common is a C-like syntax and four letters.

      It's the same thing to glue a Javascript object to a Java object as to glue a C# or Ruby or PHP or Perl or CGI or whatever you're running server-side object to a Javascript or VBScript or Ruby or whatever you're running client-side object.

      I find languages like Javascript and Ruby very interesting, but just don't get it mixed up that Java has anything to do with Javascript. Java is like C++ with training wheels affixed to a rail track (not saying C++ is good, either). It's a very "correct" language, and it's Java's way or the highway. Javascript, on the other hand, gives you more than enough rope to hang yourself, along with several ways to shoot yourself in the foot and a blindfold if you want.

      Very different technologies, and it's a pet peeve of mine when people assume they have anything to do with each other or that they must needs have anything to do with each other. Javascript won't go away in the browser, true, but I'd rather have C#, PHP, or anything else server-side any day of the week. (Javascript server-side with something like Ruby's DRb over AJAX? Might be interesting.)

      --
      Join the Slashcott! Stay away entirely Feb 10 thru Feb 17! Close all tabs to prevent autorefresh!
    7. Re:New Java VM/Script? by Doc+Ruby · · Score: 1

      You are wrong. As Oracle has been announcing, Javascript is now supported by (announced) technology in the Oracle JVM.

      You were correct for a long time. When introduced, the only connection was a superficial syntax similarity that is shared with many other OOP languages. But, as I pointed out, the "Sun" JVM now has Javascript support in it. FWIW, I wasn't talking about the browser, either.

      --

      --
      make install -not war

    8. Re:New Java VM/Script? by JasterBobaMereel · · Score: 1

      ..you can use Javascript as a scripting language in a JVM - no still no connection, you can script JVM with Groovy already does this mean it is Java ... no

      JVM is a virtual machine, the main language for programming it is Java
      You can also program in other languages and script it in several languages - One of this will soon be JavaScript

      --
      Puteulanus fenestra mortis
  12. Re:I hope this JavaScript fad blows over soon. by Anonymous Coward · · Score: 0

    LOL, so those strings of characters you mention which produce an array of bytes which are interpreted mechanically by the processor are soooo much better than the string of characters in javascript which produce an array of bytes which are interpreted mechanically by the processor. Yup, you're right.

  13. Re:I hope this JavaScript fad blows over soon. by Svippy · · Score: 3, Insightful

    Do you want us to use Flash instead? O! Enlighten us, wise one, about the numerous other languages that are available for web browsers!

    --
    Clicked pie.
  14. 9.80 BogoMIPS by Anonymous Coward · · Score: 2, Informative

    Pentium MMX. Is that what everyone gets as well?

    1. Re:9.80 BogoMIPS by Anonymous Coward · · Score: 0

      Yup, Pentium MMX and 9.80 BogoMIPS here too

  15. Sequence of last story and this one... by Junta · · Score: 2

    "Windows 8 is going to use less memory"
    "Oh yeah? Well Linux can run in javascript, ha!"

    --
    XML is like violence. If it doesn't solve the problem, use more.
    1. Re:Sequence of last story and this one... by Anonymous Coward · · Score: 0

      Does that mean they could make a javascript linux Windows 8 Metro App?

  16. New malware vector? by Anonymous Coward · · Score: 3, Interesting

    Rather than using javascript to load infected files that use *.pdf and other infectible formats, they can now run a botnet just using an infected ad straight inside your web browser.

    1. Re:New malware vector? by GuldKalle · · Score: 2

      But where is the advantage? I would assume that the linux VM would face the same restrictions as any other javascript in a browser.

      --
      What?
    2. Re:New malware vector? by ksandom · · Score: 1

      As soon as someone figures out a more useful way to access the internet than simply tunneling through http/s, this will effectively provide rooted-box-in-a-box. Ie stuff-all effort to get a huge number of hosts at your disposal. Persistent storage provides an easy way to resume where you left off.

      --
      Funnyhacks - Wierd, unusual, and fun hacks
    3. Re:New malware vector? by mysidia · · Score: 1

      As soon as someone figures out a more useful way to access the internet than simply tunneling through http/s

      How about a kernel mode driver inside the browser-based Linux box for a network stack tunnelled over HTTP/s to a dedicated application running on the same host as the browser to decapsulate tunnelled traffic and dump it onto a local virtual network bridge, kind of like the one used by VMware Workstation or Xen ?

      Or even just an application utilizing a Java extension API to allow the Linux-in-browser js application to map a little chunk of host memory for raw network I/O

    4. Re:New malware vector? by Anonymous Coward · · Score: 0

      Annoyed user: "Why the fuck the browser got so slow?" (closes tab)
      Wanna-be hacker: "Damn! Foiled again!"

      Mining bitcoins via parasitic computing this way would be more profitable than this kind of "botnet".

      Also, no, I don't think there will ever be connecting to arbitrary services with javascript. It would be too easy to do "var sock=new Socket('blah.com', 25); sock.send('HELO ... MAIL FROM ... RCPT TO ... DATA ... I've got an urgent business proposal ...')"

      So it would be extremely useless botnet.

    5. Re:New malware vector? by GuldKalle · · Score: 1

      As soon as someone figures out a more useful way to access the internet than simply tunneling through http/s [...]

      As soon as that happens, an attacker could just write his program in javascript instead of stuffing it into a VM running on the same JS engine, with the same access restrictions.

      [...] to a dedicated application running on the same host as the browser [...]

      What's with all the hoops? if the attacker can run an application with net access, there is no need for a Linux VM.

      --
      What?
    6. Re:New malware vector? by DragonWriter · · Score: 1

      How about a kernel mode driver inside the browser-based Linux box for a network stack tunnelled over HTTP/s to a dedicated application running on the same host as the browser to decapsulate tunnelled traffic and dump it onto a local virtual network bridge

      So, to break the Linux-in-a-browser out of the browser security sandbox the malware distributor simply has to gain the ability to run a HTTPS server on the same client machine outside that the Linux-in-a-browser can talk to and that will then issue the actual arbitrary network connections.

      But, if the attacker can run arbitrary code that can make network connections outside of the browser on the same client, why do they even need the compromised Linux-in-a-browser at all? You've essentially postulated a "browser based" attack that, as a prerequisite, requires the ability to run arbitrary code outside of the browser on the same machine, rendering the browser-based portion of the attack superfluous.

    7. Re:New malware vector? by mysidia · · Score: 1

      What's with all the hoops? if the attacker can run an application with net access, there is no need for a Linux VM.

      I'm suggesting the application would be something 'legitimate' with legitimate uses eg users who WANT their Linux-in-browser to have network connectivity, to help with training or whatever function this Linux VM is being used for.

    8. Re:New malware vector? by mysidia · · Score: 1

      Who says this has to be arbitrary code?

      I suppose it depends what your definition of 'malware' is; there are application loads that don't require arbitrary connnections either (e.g. masmsively distributed brute force Password cracking). I would consider anything that has access to a users' cookie database through JS and the ability to make any sort of outgoing connection a potential danger.These sort of connections are done every day using Ajax.

      Javascript code is fine. HTML5 provides a technology called Websockets. There was recently an article about about a Javascript based SSH client

  17. Re:I hope this JavaScript fad blows over soon. by bmuon · · Score: 2

    News flash: it won't and it will only get better.

  18. Next step forward in "An OS in a browser in an OS" by knuthin · · Score: 1

    Look at everyone going meta.
    Now I want to run X on this virtual machine and fire up a browser. (Maybe just install Lynx on it if I can't install X on it.)
    That'd be a browser in an OS in a browser in an OS. :D

    --
    Some apps are WYSIWYG. Some others are WYSIWTF.
  19. Re:I hope this JavaScript fad blows over soon. by somersault · · Score: 2

    The special thing about it, is that it's available on almost any modern computing device, down to phones. It's become the Windows of programming languages in a way - not the best option, but it's just so damn common that you should at least learn to use it. I don't know why we don't have any alternative scripting languages for browsers yet. CoffeeScript looks nice, but it just compiles down to JavaScript anyway.. so not the most efficient way to do things if you need to ship your framework as libraries on your website rather than it being built into the browser.

    I did suspect that Ruby was a bit of a fad, but it is a nice language all the same.

    --
    which is totally what she said
  20. Re:I hope this JavaScript fad blows over soon. by Junta · · Score: 4, Insightful

    Hell, it's basically a mistake of history and circumstance that it's so widely available.

    Herein lies the reason why javascript is not 'just a fad'. No matter your opinion of the DOM and javascript syntax, it is *capable* of being used to get the job done and it is everywhere. Other than making tasks absolutely impossible, it's hard to offset in difficulty the benefit of being everywhere. No other language will be everywhere so long as javascript is 'good enough'. Any browser attempting to bring their own favored child in will not meet with adoption because Javascript will work too and on other browsers. Short of getting Microsoft, Google, Apple, and Firefox to adopt the language with *zero* footprint to start with, nothing will change.

    --
    XML is like violence. If it doesn't solve the problem, use more.
  21. Questions by bigsexyjoe · · Score: 1

    What's the login? If I download it, will my js Linux remember things from session to session? Could I install a webserver on it?

    1. Re:Questions by felipekk · · Score: 2

      I logged in with root and no password.

      I guess you could install a webserver on it, then maybe even host those same files (including "emulator.html")...

      Then on another session open a web browser, point to your webserver and open the emulator...

      That way you'd have an emulated web server serving an emulator that is being run on an emulated web browser emulating linux.

    2. Re:Questions by sho-gun · · Score: 2

      standard linux fresh-install login.
      username root
      no password.

    3. Re:Questions by Anonymous Coward · · Score: 0

      root with no password. I don't know. Very unlikely.

      What I want to know is how difficult would it be to install other things on it like the gcc compiler. It would be perfect for the Linux programming intro course offered at my school.

    4. Re:Questions by nstlgc · · Score: 1

      I N C E P T I O N

      --
      I'm Rocco. I'm the +5 Funny man.
    5. Re:Questions by Cyphax · · Score: 1

      The first link in the article above should point to a different version of this emulator, which actually did include gcc and a small hello world program. I remember playing with that shortly and being hugely impressed by the fact that works really, really well. :)
      This whole emulator is massively impressive imo. :)

    6. Re:Questions by Anonymous Coward · · Score: 0

      no login, just enter root as user

      no network though. would be handy if it had network.

    7. Re:Questions by Anonymous Coward · · Score: 0

      You mean standard like that idiotic distribution that gives all users unfettered root access via sudo, and is therefore no better than Windows for security?

  22. Re:uhhh by DMiax · · Score: 1

    why?

    To show that we have gone way too far allowing remote scripting facilities in the browser, to the point that websites can run a complete OS of their choice on our machine just because one clicked a link. Or maybe I am misunderstanding the intention? This is NOT considered a good thing, right?

  23. Login Name and Password? by Anonymous Coward · · Score: 0

    Emm, what's d login name and password?

    5ryn

    1. Re:Login Name and Password? by dev658 · · Score: 0

      You really aren't a hacker. Try 'root' man....

    2. Re:Login Name and Password? by ksandom · · Score: 1

      type in root. It has no password.

      --
      Funnyhacks - Wierd, unusual, and fun hacks
  24. Makes me wish by sgt+scrub · · Score: 2

    While jsLinux is cool, and this is a cool addition, it just makes me wish JavaScript wasn't the only languageVM embedded in the browser. The thought of what could be done if one could take advantage of what the various scripting languages do best instead of trying to fit JavaScript to everything makes me sad.

    --
    Having to work for a living is the root of all evil.
    1. Re:Makes me wish by catbutt · · Score: 1

      Well Dart is coming out in a couple days.

      Although I'm not sold on the "use the best language for the job" mentality, I have better things to do than learn new languages and port my code from one to another. I see no reason why a single language can't do everything from user scripts to systems development, while maintaining elegance and expressiveness. Not saying that language has been invented yet (or will be any time soon), but still.

    2. Re:Makes me wish by xdor · · Score: 1

      I still think those who complain about JavaScript being the only option don't really understand how awesome JavaScript is.

      Heck, if you don't like coding JavaScript for the browser: port your language of choice to JavaScript! Then you can happily code in SmallTalk, ADAScript, MEL Script or whatever other codec you find more appealing.

      Yes, its that flexible

    3. Re:Makes me wish by Anonymous Coward · · Score: 0

      I still think those who complain about [insert favorite language] being the only option don't really understand how awesome [insert favorite language] is. Heck, if you don't like coding [insert favorite language] for the [platform in question]; port your language of choice to [insert favorite language]!

      Yes, Turing-complete language is that flexible!

    4. Re:Makes me wish by xdor · · Score: 1

      Touché

    5. Re:Makes me wish by BZ · · Score: 1

      If you want to embed multiple language VMs in the browser, you immediately start having issues with cross-VM reference cycles causing leaks. The infrastructure needed for breaking those is .... nontrivial. You also get very complicated interactions performance characteristics as the VMs interact. Note that historically browsers have had issues just solving these problems for the JS VM and C++ DOM, without adding more VMs into the mix.

      A better bet may be having a single VM that multiple languages can compile to (a la JVM, which all sorts of things other than Java can target). But at that point, perhaps that VM should simply be the JS VM. For example, you can already compile C code to JS. See http://syntensity.com/static/jsconf_eu_Emscripten_lo.pdf for the recent state of that. Now you do get a slowdown over, say, gcc -O3; the slides list this slowdown as somewhere between 2x and 8x depending on the workload. But JS VMs are pretty continuously improving, and it's not clear how fast running C code on the JVM, say, would be... Would be interesting to have those numbers.

    6. Re:Makes me wish by Anonymous Coward · · Score: 0

      "What could be done..."

      Running an entire OS isn't enough for you?

    7. Re:Makes me wish by sgt+scrub · · Score: 1

      I have better things to do than learn new languages and port my code from one to another

      That sounds a lot like what a person that writes Python, Perl, Squeak, etc... would say when asked to re-write everything in JavaScript for the web. :)

      IMHO. Computer languages are tools. The more tools you know how to use the easier life will be.

      --
      Having to work for a living is the root of all evil.
    8. Re:Makes me wish by sgt+scrub · · Score: 1

      Can I get a link from you of an example please. Something small and easy to dig through would be nice.

      --
      Having to work for a living is the root of all evil.
    9. Re:Makes me wish by sgt+scrub · · Score: 1

      I was referring to your second example, JVM, though it isn't a very good example. All the languages need to be "JIT'd" before use. Parrot is the better example. If they would nail down the embedding API we might have what I think people would like. I certainly would.

      --
      Having to work for a living is the root of all evil.
    10. Re:Makes me wish by BZ · · Score: 1

      Yes, but why is Parrot a better approach than just compiling to JavaScript and using the existing JS VM?

      (And note that Parrot is much like ActiveX: an unspecified single-vendor kinda thing.)

    11. Re:Makes me wish by sgt+scrub · · Score: 1

      1) You loose a lot in translating code. No optimizations.
      2) You can not use libraries native to the language.
      3) You end up having to write/correct the translators with "if (typeof myFunction=='undefined') {"

      unspecified single-vendor? ActiveX is a response to NPAPI with gapping holes in system security. Adding a VM that can interpret native code eliminates ActiveX, NPAPI, and PPAPI while, if done correctly, creates a jail/sandbox for web content.

      --
      Having to work for a living is the root of all evil.
    12. Re:Makes me wish by BZ · · Score: 1

      > 1) You loose a lot in translating code. No
      > optimizations.

      This is true of any intermediate representation not designed with a particular language in mind, to some extent. The emscripten compiler does in fact do a fair amount of optimization, and it's operating on LLVM bitcode that's already had some optimization passes applied.

      > 2) You can not use libraries native to the language.

      In the specific case of emscripten, again, you just compile the libraries,

      > 3) You end up having to write/correct the
      > translators with "if (typeof
      > myFunction=='undefined') {"

      Why correct? You do have to write the translator; you do it once.

      > ActiveX is a response to NPAPI with gapping holes
      > in system security.

      Yes, and an attempt at single-vendor lockin of the web. Pepper is missing the security holes, with any luck, but has the lockin thing in spades.

      If all the UAs could agree on a single VM and if that VM were not controlled by any one company, then hitching the web to that VM might be OK. But unless you want to give a single company control over development of the web, this is not that likely to happen in the near future...

    13. Re:Makes me wish by sgt+scrub · · Score: 1

      Parrot is GPL'd. Being locked into Open Source for code visible to any user isn't much of a lock in.

      --
      Having to work for a living is the root of all evil.
    14. Re:Makes me wish by BZ · · Score: 1

      1) Many project can't use GPL'd code. Opera comes to mind, say.

      2) Being GPL'd in this case just means you can fork it, not that you can affect its development or prevent changes that break you. Google has complete power to evolve Parrot in any way it wants, and if it happens to break other browsers that happen to be using Parrot or breaks websites they have no choice but to deal. It's not quite as bad as being locked into something you _can't_ fork, of course. But don't pretend like it's "not much of a lock in".

    15. Re:Makes me wish by BZ · · Score: 1

      Er, I just realized there's some confusion here (on my end) between Pepper and Parrot. So ignore what I said here while I go and read up on Parrot details. ;)

    16. Re:Makes me wish by sgt+scrub · · Score: 1

      :) and while your at it think about why google didn't spend some effort advancing parrot instead of dumping yet another scripting language on us. it boggles the mind.

      --
      Having to work for a living is the root of all evil.
    17. Re:Makes me wish by JasterBobaMereel · · Score: 1

      The answer is Curl http://en.wikipedia.org/wiki/Curl_(programming_language)

      this is a full programming language that also does markup, scripting, CSS, all in one language ...

      --
      Puteulanus fenestra mortis
    18. Re:Makes me wish by sgt+scrub · · Score: 1

      Curl allows one to have my_python_code.py, my_perl_code.pl, and my_javascript_code.js files on the server and content type tags for perl, python, and javascript and the browser will interpret the three scripting languages and apply the code to the content? That is the behavior I, obviously poorly, tried to describe.

      --
      Having to work for a living is the root of all evil.
  25. Re:uhhh by goombah99 · · Score: 1

    why?

    Isn't it obvious? He wants to have the linux in order to run a browser with javascript.

    --
    Some drink at the fountain of knowledge. Others just gargle.
  26. Re:Its all nice and stuff by wzzzzrd · · Score: 2

    don't click, it's goatse.

    --
    On second thought, let's not go to Camelot. It is a silly place.
  27. Re:I hope this JavaScript fad blows over soon. by Anonymous Coward · · Score: 0

    Well, obviously - that's the only way it can go.

  28. Re:uhhh by somersault · · Score: 2

    What is bad about it, if it's within the bounds of the browser's sandbox?

    --
    which is totally what she said
  29. Java by Anonymous Coward · · Score: 0

    I suppose at some point someone might get a JVM running in Javascript...

    1. Re:Java by Lennie · · Score: 1

      Yes, let's port the JVM to nodejs. So you can run Java on the server.. ;-)

      --
      New things are always on the horizon
  30. Re:I hope this JavaScript fad blows over soon. by dingen · · Score: 1

    Lua is a better scripting language, and Python is a better prototyping language

    So you're saying we should build a Lua/Python interpreter in Javascript so we can use these superior languages in our browsers?

    --
    Pretty good is actually pretty bad.
  31. Sandbox is all you have by tepples · · Score: 1

    Some post-PC pessimists are under the impression that this educational sandbox will soon end up being all you have because the operating system publisher or hardware maker won't give you the cryptographic keys to boot anything else unless you represent a major corporation.

    1. Re:Sandbox is all you have by sourcerror · · Score: 1

      "unless you represent a major corporation"
      So we'll have RedHat, Ubuntu, and Oracle Enterprise Linux and Suse. And I guess the Ubuntu folks get a key for debian as well.
      Of course it would negatively affact minor distributions, and I'm totally against it, but don't pretend that Linux would just suddenly disappear.

    2. Re:Sandbox is all you have by bartonlp · · Score: 1

      The "secure boot" if mandatory will make it almost impossible to recompile source to optimize your system. Also, good by Gentoo. I think mandatory "secure boot" is a big mistake and Microsoft should be ashamed of itself, but monopolies seldom are ashamed.

    3. Re:Sandbox is all you have by Anonymous Coward · · Score: 0

      Only the bootloader needsto be signed for secure boot, so as long as grub is signed, you can boot whatever yoou want. Worst case, upstream grub is signed and a downstream distro has less oppurtunity to ship a beta or forked version of grub.

      Hell, Windows has boot.ini on Win2k3 and below and whatever Vista and above you... you can boot linux from the NTloader just fine if you have a system tah only has MS signing keys and no way to disable secure boot.

    4. Re:Sandbox is all you have by santosh.k83 · · Score: 1

      Either the PC manufacturer has to provide an easy and standardized mechanism for the user to add his own signing keys, OR, provide an easy and standardized mechanism to disable 'secure' booting. If not, the PC will be no more than a glorified MS version of iPad, and I'll be boycotting any such manufacturer. So will a LOT of people I'm sure, and public and legal pressure will certainly be brought to bear on them.

    5. Re:Sandbox is all you have by tepples · · Score: 1

      If not, the PC will be no more than a glorified MS version of iPad, and I'll be boycotting any such manufacturer.

      Until all well-known laptop manufacturers choose to start making "a glorified MS version of iPad". When faced with a choice between a $350 mainstream laptop with only the Windows key and a System76 laptop for twice the price, what will the general public choose?

    6. Re:Sandbox is all you have by santosh.k83 · · Score: 1

      Fortunately I believe people (and even most governments, perhaps not the US one though) won't accepted the dumbing down of the PC to an appliance. I certainly hope so. Besides being taken to court (which will definitely happen if Windows is imposed), the system is also certain to be cracked in time. IOW, we're heading for a mess at best, a protracted battle at worst. The fact that people haven't accepted lockdown even on smartphones and consoles gives me hope that this will turn out to be only yet another temporary roadblock towards universal and open computing.

    7. Re:Sandbox is all you have by Velex · · Score: 1

      You know damned well it doesn't work that way. Ask your local soccer mom. Linux has a scary black background with a cryptic text interface and is either a.) a tool for copyright infringement to steal from hard-working, job-creating content owners b.) only used by subversive teenagers c.) used to commit cyber crimes (just like in The Lawnmower Man and isn't it wonderful that writer in Maine can explain computers to us simple folken, say thankya) d.) a tool of the devil with its black background. Nobody who does Real Work has a need to run Linux. Real Work is done in Word and Excel.

      There are people who honestly think things like this. Yes, there are people who honestly do not realize that linux-based system power incredibly useful software like Apache. There are people who use MyTwitFace every day who think that being able to even pull up the HTML source of a webpage makes someone a potentially dangerous hacker.

      You should be afraid and always strive to prevent those people from gaining political clout. They are not ignorant or stupid. Never think they are ignorant or stupid. I will never understand what they really think. I only understand what they say and do.

      I guess that being said, I'm going to go order my Android tablet now. Powered by a Linux-derived kernel and open-source software. Yet I still need to "root" it to be able to install the free software I want to use and write. I'm not sure what to think of that. I just don't know what to think, and I'm afraid of what the future might hold when this tablet breaks and I want to buy the next latest-and-greatest device.

      --
      Join the Slashcott! Stay away entirely Feb 10 thru Feb 17! Close all tabs to prevent autorefresh!
    8. Re:Sandbox is all you have by tepples · · Score: 1

      Fortunately I believe people (and even most governments, perhaps not the US one though) won't accepted the dumbing down of the PC to an appliance.

      People already accepted the dumbing down of TV-connected video game computers like the C64 to appliances like the NES, and they accepted the dumbing down of the smartphone from Windows Mobile 6 to iOS 1.

    9. Re:Sandbox is all you have by Anonymous Coward · · Score: 0

      they accepted the dumbing down of the smartphone from Windows Mobile 6 to iOS 1.

      That wasn't much of a choice. Windows Mobile 6 is basically unusable garbage. You also seem to be forgetting about Android...

    10. Re:Sandbox is all you have by tepples · · Score: 0

      You also seem to be forgetting about Android...

      I didn't mention Android because it didn't exist in a product when the first iPhone came out.

  32. Re:I hope this JavaScript fad blows over soon. by tepples · · Score: 0

    and Java, C++ and C# are better languages for building large networked applications.

    As for Java: A browser maker wants to blacklist the Java plug-in because of how it interacts with SSL.

    As for C++ and C#: You have to be an administrator to install a C++ or C# program on a PC, and a lot of people don't know the administrative password of the machine they use. This could be because A. they aren't the head of the household or B. they aren't in the IT department. It's even worse on a set-top box:, you have to be a major corporation to get a C++ or C# program digitally signed for installation.

  33. Native Client by tepples · · Score: 1

    Google Chrome has "Native Client", a verifiably type-safe subset of native code. One might, for example, port DOSBox to Native Client.

    1. Re:Native Client by Anonymous Coward · · Score: 0

      You may want to take a look at naclbox: http://www.naclbox.com/

    2. Re:Native Client by sgt+scrub · · Score: 1

      Salt and Pepper, PPAPI, are really cool if you write C/C++. I was talking more broad like Parrot.

      --
      Having to work for a living is the root of all evil.
  34. Re:uhhh by SlashV · · Score: 1

    Droste for the win.

  35. Re:uhhh by houghi · · Score: 2

    You know the reason as to why they respond to these questions with "Why"? Because they can.
    There is no reason to get depressed if people have not the same insight or opinion as you have. It will make your life a whole lot easier (and less depressing).
    I am sure that some things these people do you will find a waste of time. Should they get depressed of that because you ask them "Why?" or "What's the point?".

    The question of why is just as relevant as why not. The only thing it shows by your response is that you have different priorities. And that is a good thing. Remember: We are all individuals. ( ... I'm not.)

    --
    Don't fight for your country, if your country does not fight for you.
  36. Re:Whiskey Tango Foxtrot! by somersault · · Score: 1

    Having read TFA (well, the README), it's as the summary says and the only really new thing here is the HTML5 storage driver. So my last comment would have been better made on the previous article about JS/Linux. This storage driver is very useful if you want to mess around in JS/Linux, so it was a brilliant idea. It would be pretty funny to see X on this, maybe even with WebGL 3D acceleration.. I certainly wouldn't want to wait around for it to compile natively though!

    --
    which is totally what she said
  37. Re:uhhh by Allicorn · · Score: 3, Insightful

    Honestly, this should make you chuckle and smile and say "Wow!"

    "Why" might be in there somewhere but if it's your first port of call, you're a lost cause - hand in your geek card.

    --
    OMG!!! Ponies!!!
  38. Re:sorry this isn't what you people make it out to by Anonymous Coward · · Score: 0

    There should a "Post as Anonymous Troll" option.

  39. buy slashdot by Anonymous Coward · · Score: 0

    mod me out without posting or proving this isn't real
    nice job
    never again
    enjoy your bots and bullshitting people

  40. Year of by JustOK · · Score: 4, Funny

    All hail the year of linux in the browser!

    --
    rewriting history since 2109
  41. Re:Next step forward in "An OS in a browser in an by Anonymous Coward · · Score: 0

    Yes. And the nice thing about this is that you can make things as slow as you need to. For a while, there was a threat that hardware would outpace the demands of software, but now that we're building everything in bloated virtual languages running in virtual machines running on virtual hardware, we can NEST that shit and continue to drive the demand for ever faster hardware.

    Because otherwise, you know, my 2002 desktop runs KDE 4.7, Win7, the latest firefox and thunderbird, and everything else I throw at it with no problems. There's serious danger in that I haven't needed to upgrade it for a decade. We can't have that now, can we?

  42. Re:I hope this JavaScript fad blows over soon. by Anonymous Coward · · Score: 0

    ... Lua is a better scripting language...

    Hahahaha. Oh wait, you were serious? Let me laugh even harder.

    And you think there are things special with Lua? Yeah, maybe special about being awful.
    Nobody thinks there is anything special with JavaScript, it was the one that won the browser scripting wars.
    Where was Lua then? It wasn't even in the running.

    Your awful opinion of JavaScript won't do anything to it.
    It is a very, very capable language. The only terrible thing about working with JavaScript is working with the terrible DOM that it is built around. The HTML DOM is what is wrong with JavaScript.

    It will still be here as long as browsers still exist, and will outlive everyone here probably, unless Native Execution Inside Browser Sandbox takes off. (NEIBS, the new buzzword coming to you in a near future!)

  43. Worthless by Anonymous Coward · · Score: 0

    Doesn't run in my Android browser.

  44. Re:uhhh by circletimessquare · · Score: 1

    why not?

    it'as easy to challenge something someone does, isn't it? now that you have discovered this, what have you done lately? it's hard to do something interesting yourself, huh?

    there's people who dress up like characters from dead tv shows, people who try to grow giant pumpkins, people who bend giant steel beams and call it art, and people who spend years of their lives leveling MMORPG characters. why? why not?

    and, i suppose, there are people who try very hard to comment on slashdot forums in the negative, regardless of intellectual or probative value

    hmmm, maybe you understand the esotericity of human endeavour after all

    --
    intellectual property law is philosophically incoherent. it is your moral duty to ignore it or sabotage it
  45. Recursion by garyebickford · · Score: 1

    That'd be a browser in an OS in a browser in an OS. :D

    ... and that could be extended to an arbitrary depth!

    --
    It's easier to be a result of the past, but more fun to be a cause of the future! http://www.spacefinancegroup.com/
    1. Re:Recursion by ksandom · · Score: 1

      That would be an interesting competition.

      reporter: With me now is Tom who has just booted a computer inside a computer, insiiiiide a computer sixTEEN times!
      tom: Yes, it took about a year to boot the last layer of nesting and takes nearly 2 hours to run ell ess, but it was totally worth it. I'm really excited.
      reporter: And what do you want to do with it now?
      tom: In a couple of years, I hope to be up to 17 layers, and it's my life ambition to get up to 32.

      Seriously though, if I was to do such a thing, I'd put it in a VM to begin with. So at least then I could pause and resume the VM on different hardware so that I could continually upgrade the hardware as newer stuff became available. Now what would be really cool, is to implement hibernate (or suspend to ram and dump the ram) so that the browser could be changed out without rebooting the JSVM. Now that persistent storage is sorted, perhaps that isn't too hard?

      The next thing I'd do is try to automate as much as possible. Because once it starts slowing down, it would be pretty frustrating to interact with.

      --
      Funnyhacks - Wierd, unusual, and fun hacks
    2. Re:Recursion by garyebickford · · Score: 1

      The next thing I'd do is try to automate as much as possible. Because once it starts slowing down, it would be pretty frustrating to interact with.

      :D
      Oblig.: Sand Universe

      --
      It's easier to be a result of the past, but more fun to be a cause of the future! http://www.spacefinancegroup.com/
    3. Re:Recursion by ksandom · · Score: 1

      LOL that was brilliant!

      --
      Funnyhacks - Wierd, unusual, and fun hacks
  46. Re:I hope this JavaScript fad blows over soon. by Anonymous Coward · · Score: 0

    Umm, you don't have to be an administrator to install a C++ or C# program on a PC. I compile and install C, C++ and Java software to my unprivileged user's home directory all the time on Linux, Solaris and Mac OS X systems. I run Windows programs written in C++ and C# from my unprivileged account's desktop just slightly less often. I've never run into problems.

    Heck, my mother (she's 76) has her own PC running Windows 7, and even she knows how to download and install software on her own, while using a non-administrator account.

    Why do you JavaScript morons and Web 2.0 weenies always make the false claim that "you have to be an administrator to install a program on a PC"? Do you realize how badly it undermines your credibility when you so publicly show that you don't even know how to install software?

  47. Re:uhhh by Kjella · · Score: 1

    The whole of human achievement is pretty much the story of people doing things just to see if they can, or because it's interesting to them, or because it's never been done before.

    Most of the achievements that actually push the world forward have been either to impress girls, make money or scientific curiosity. Hobbies don't tend to have the ambition to do any of those things, only to have personal value to you. It'd be a snowball's chance in hell if me watching TV or playing video games lead to anything like an achievement (or well, lately games have been giving me 100s of achievements for random crap). Sports or exercise might get me in better shape, but I'm not about to set any records at anything. I like to develop as a hobby, I think it's cool to be able to control a computer into doing things for me, like some people like to teach their dogs tricks only with less fur and far more obedient.

    The only time I go "Why?" is when I feel you're making it extremely difficult for yourself for no particular reason I can think of, like can you scrub this floor with a toothbrush. Of course you can, but like... why? I fully understand when people want to do it themselves, like make their own pasta from wheat even though it's available in the store but not just arbitrarily limit myself to poor tools. Even within a hobby it's fun to do the best you can. Somehow using a javascript engine to run Linux sounds a bit like using the worst possible tool for the job. Yes, it's half "Wow, you can do that?" but the other half is "With a toothbrush? Seriously?"

    --
    Live today, because you never know what tomorrow brings
  48. Re:sorry this isn't what you people make it out to by somersault · · Score: 1

    You have no clue what you're talking about.

    --
    which is totally what she said
  49. Re:uhhh by larry+bagina · · Score: 2

    That is worthy of attention. More so than climbing Mt Everest but less than inventing the transistor.

    --
    Do you even lift?

    These aren't the 'roids you're looking for.

  50. One in each tab ... by PPH · · Score: 2

    ... and I've got a Beowulf Cluster!

    --
    Have gnu, will travel.
    1. Re:One in each tab ... by Anonymous Coward · · Score: 0

      You might just be on to something here, and I'm imagining the Vagrant guys are already on this. Imagine a one-click staging environment--feed the main tab a branch of puppet/chef & your own app to use, and launch.

  51. Re:I hope this JavaScript fad blows over soon. by Anonymous Coward · · Score: 0

    No, encourage browsers to use the script tag for languages other than JS. That was the original intent.

  52. Re:I hope this JavaScript fad blows over soon. by MightyMartian · · Score: 2

    It's been present on pretty much all browsers of any note since the late 1990s. Love it or hate it, Javascript stopped being a fad a decade ago, and has so much momentum now that unless you want to give up web development, you'd better just man up about it.

    --
    The world's burning. Moped Jesus spotted on I50. Details at 11.
  53. Remember comrade.... by theendlessnow · · Score: 1

    With Linux, the browser runs you!

  54. Re:uhhh by Lord+Kano · · Score: 1

    A Mac IIx, you must have been one of those rich kids. I had a Mac Plus and I fucking loved it!

    LK

    --
    "Hi. This is my friend, Jack Shit, and you don't know him." - Lord Kano
  55. Re:uhhh by Lord+Kano · · Score: 1

    Because this guy's ePenis is bigger than yours and he wants the whole world to know about it.

    LK

    --
    "Hi. This is my friend, Jack Shit, and you don't know him." - Lord Kano
  56. A Persistent Block Device "How To" would be nice. by Anonymous Coward · · Score: 1

    Where are instructions about how to create the advertised 'persistent block device'? Perhaps I missed it but the readme says that "This project allows the virtual machine to access a persistent block device. This means a user can format and partition this device inside it's virtual machine." BUT I do not see the instructions anywhere obvious. Even booting up this virtual machine ... I had to guess to login ... I eventually found user 'root' and an empty password would work to login. A quick 'df -h' does not reveal any persistent block device present. So I ask myself ... after going to all this trouble to host this demonstration ... why aren't there a few more instructions other than "For more details, see the source code." offered?

    Signed perplexed.

  57. Re:uhhh by Anonymous Coward · · Score: 0

    OK, well then, keep an eye on Google News Montreal. Now where do I keep my chopsticks?

  58. Re:Whiskey Tango Foxtrot! by Anonymous Coward · · Score: 0

    This isn't Linux ported to the browser (e.g. C to LLVM to JavaScript, which has been done in other instances). This is a reasonably "normal" build of x86 Linux running on an x86 emulator written in JavaScript, with a few special-cased virtual devices and drivers.

  59. Re:Its all nice and stuff by Anonymous Coward · · Score: 0

    Some of us like goatse, you insensitive clod!

  60. Will it run VMWare vSphere by Anonymous Coward · · Score: 0

    Start it up in VMWare instance. Start up VMWare. Hot move the instance running the web browser to itself. It would so rock.

  61. Obligatory "Yo Dawg"... by Anonymous Coward · · Score: 0

    We heard you like Linux... so we put some Linux in your Linux so you can Linux while you Linux.

  62. Re:this is what I like least about slashdot by oakgrove · · Score: 1

    Today, you is what i like least about Slashdot.

    --
    The soylentnews experiment has been a dismal failure.
  63. Re:I hope this JavaScript fad blows over soon. by santosh.k83 · · Score: 1

    You can only afford to nest virtual machines up to a point, after which the drag on performance becomes unaffordable, even on the fastest machines. A JavaScript x86 emulator is really cool, and it might be interesting to those who want to run (or serve) system code over the net, or push the limits of JS and it's implementation, but that's about the extent of it's potential as far as I can see.

  64. Re:I hope this JavaScript fad blows over soon. by santosh.k83 · · Score: 1

    "(NEIBS, the new buzzword coming to you in a near future!)" Awful... I much prefer NaCl...

  65. Self contained thin client applications, anyone? by Tastecicles · · Score: 1

    This'll be handy for those who've bought into the Google Chromebook and discovered that all they get is a browser... no, seriously, don't you guys think you were even the slightest bit done over, when you can get a webbook for £60 with free lifetime data allowance?

    --
    Operation Guillotine is in effect.
  66. The license of GRUB, for one thing by tepples · · Score: 2

    Only the bootloader needsto be signed for secure boot, so as long as grub is signed, you can boot whatever yoou want.

    The license of GRUB requires that it be distributed with "Installation Information", which includes private keys for signing. Operating systems would need to be shipped with a non-GPL bootloader, and makers of home PCs would have no incentive to include keys for this bootloader because boot-time malware could work by installing it and setting it as default.

    you can boot linux from the NTloader just fine if you have a system tah only has MS signing keys and no way to disable secure boot.

    The NT loader of Windows 8 will check the signature on any kernel it loads, and (I'm guessing) so will the NT loader of Windows 7 and Windows Vista after a service pack to allow their use on machines that require UEFI secure boot.

  67. security problem by Anonymous Coward · · Score: 0

    and still no one sees the security problems and thinks maybe just maybe html5 encompasses far too much for web a browser.

    increase features to hell with the consequences!

  68. Software Restriction Policies by tepples · · Score: 0

    Umm, you don't have to be an administrator to install a C++ or C# program on a PC. I compile and install C, C++ and Java software to my unprivileged user's home directory all the time on Linux, Solaris and Mac OS X systems.

    It appears you've never used a thoroughly locked down machine with /home mounted noexec.

    I run Windows programs written in C++ and C# from my unprivileged account's desktop just slightly less often. I've never run into problems.

    It appears you've never used a thoroughly locked down machine with Software Restriction Policies.

    Why do you JavaScript morons and Web 2.0 weenies always make the false claim that "you have to be an administrator to install a program on a PC"?

    For one thing, PCs have the measures I described above. For another, please address video game consoles and other set-top boxes, which won't run anything unsigned or self-signed.

  69. Re:I hope this JavaScript fad blows over soon. by Anonymous Coward · · Score: 0

    How is Ruby more or less a fad than Python? How is Python a better language? Sure, they follow different language philosophies, but they offer many of the same features and occupy the same niche. And readability depends on one's aesthetic. Is white space more readable than begin end blocks (or curly braces)?

  70. Re:I hope this JavaScript fad blows over soon. by mrmeval · · Score: 1

    Ruby and others in a browser, not so revolutionary now but interesting.
    http://ejohn.org/blog/the-browser-scripting-revolution/

    TCL in a browser, if it were integrated it would be more relevant.
    http://www.tcl.tk/software/plugin/:Python

    I doubt gawk, perl, bash scripting or others will run in a browser soon.

    --
    I'd go on a Vegan diet but the delivery time from Vega is too long. --brownkitty
  71. Re:I hope this JavaScript fad blows over soon. by Anonymous Coward · · Score: 0

    Not sure why this was modded offtopic. This type of "demonstration" is a direct result of the ubiquity, not the extensibility of the language.

  72. Re:I hope this JavaScript fad blows over soon. by Anonymous Coward · · Score: 0

    You should think twice before suggesting that people like the GP "at least learn to use JavaScript". The people who are the most critical of JavaScript are often the ones who have used it the most, who know it the best, and who have likely used many other programming languages. They know in-depth just how awful JavaScript truly is.

  73. Re:A Persistent Block Device "How To" would be nic by deimios666 · · Score: 1

    cat README This will solve your problem.

    --
    I think, therefore you are.
  74. Re:Whiskey Tango Foxtrot! by Doc+Ruby · · Score: 1

    Because they're a geek.

    And you're not. Why are you reading Slashdot, let alone posting to it? Poser.

    --

    --
    make install -not war

  75. Re:A Persistent Block Device "How To" would be nic by Anonymous Coward · · Score: 0

    cat README

  76. Re:uhhh by Doc+Ruby · · Score: 2

    Most SW development isn't either to impress girls, make money, or even "scientific" curiosity (not eve CS). It's to enjoy doing something the doer has never themself done before, and/or have the results from your own labor. A pretty good amount of SW development motivated by that has pushed the world forward.

      That is a lot different from hobbies like watching TV or playing video games. The difference is between producing something, and consuming something. Very little consumption has ever pushed the world forward - probably none by a single person (and any is vastly outweighed by pushing us backwards).

    This particular hobbyist effort might not push the world forward. So what? Its equivalent is "let's make a tiny S-100 bus 6502 CPU into a personal computer mimicking a $100K IBM machine". A few dozen hobbyists doing that pushed the world far forward. The same happened with radio and plenty of other electronic hobbies, and (among the rich) with astronomy, botany and other hobbies become sciences.

    And even here the "Linux in JS" effort is by a hobbyist specializing in embedded script engine development. This particular stunt might not push anything forward but their own expertise - or passion. Which is where world pushes come from.

    Scrubbing a floor with a toothbrush is hazing partly because it's been done before, which makes it even more pointless - and so more tedious. "Linux in JS" is new, and so less pointless. Even if it is a terrible tool for running Linux. It's a pretty good tool for exercising the imagination, and the skills and commitment to back them up.

    --

    --
    make install -not war

  77. Re:sorry this isn't what you people make it out to by Doc+Ruby · · Score: 1

    Liar.

    --

    --
    make install -not war

  78. Education purposes.. by eexaa · · Score: 1

    Did anyone manage to run stuff like gcc in this? It would make a _GREAT_ education tool.

    (network access would be great too, but I guess that would be pretty hard with javascript...)

    1. Re:Education purposes.. by leighklotz · · Score: 1

      Fabrice's original came with tcc and qemacs, both of which he wrote.

  79. iPad by prograde · · Score: 2

    Ok, that was, by far, the easiest way to get Linux running on my iPad.

  80. Re:uhhh by bratwiz · · Score: 1

    It depresses me that some people think whacking away at a keyboard at some random futility is in any way comparable to an achievement along the lines of climbing Everest or inventing the transistor. If I decide to smear myself in feces and shove chopsticks up my ass and run screaming in the street, *just to see if I can*, that's worthy of attention?

    Only if you set them on fire.

  81. Re:I hope this JavaScript fad blows over soon. by somersault · · Score: 1

    I wasn't meaning "you" as in the GP. I was making an analogy that like it or not, you're going to need it in future if you're in certain lnes of work

    --
    which is totally what she said
  82. Re:I hope this JavaScript fad blows over soon. by somersault · · Score: 1

    I really like the look of Pyjamas, another poster mentioned it. I was planning on trying out Python soon anyway, and Pyjamas seems to be a very, very nice way to create portable apps that can be run normally as Python apps under Linux and Windows, or compile to JavaScript for running in browsers (as long as you use no C libraries). Very cool.

    --
    which is totally what she said
  83. JavaScript a la PowerShell? by Doc+Ruby · · Score: 1

    Can I get a JavaScript engine that copies the best features of MS PowerShell script (as PS has copied the best features of JS, Perl, csh, and Java/C++)?

    Mainly I'm looking for a typed object pipeline with reflection the shell can access. Reflection that exposes APIs of all the classes (bundled in apps and in the OS) installed in the system. Which, as Javascript, should mean "installed in the Internet". Javascript that wraps reflection via CORBA or some other webservices registry/server would be extraordinary - a transformative technology. But just an object pipeline with language iterators and collections operators against localhost resources would be awesome.

    --

    --
    make install -not war

  84. Re:Whiskey Tango Foxtrot! by somersault · · Score: 1

    I know it is. It's still linux running on JavaScript in a browser, even if it's not as efficient as it could be.

    --
    which is totally what she said
  85. Sync Browser Linux With Server Linux by Doc+Ruby · · Score: 1

    This web app would be even cooler if the local Linux state could be synced with a server's state. If I could run commands locally, generating a history file that I could send to a server to execute over again there. Or vice versa, where I create state in the local Linux by rerunning history commands downloaded from the server. Or sync either direction, line by line. A kind of "VMWeb".

    As it is I don't see any way to install any app in it, either by downloading a binary or by compiling typed-in source locally. In fact I don't see any network operations exposed to that shell. Which is too bad, since it's running in a complete network browser - to say nothing of reaching the network OS the browser is running in. The busybox installed in this instance doesn't seem to have any network commands enabled.

    --

    --
    make install -not war

  86. Re:Whiskey Tango Foxtrot! by somersault · · Score: 1

    (I guess when I wrote my original comment, I didn't know that though - but then I read TFA)

    --
    which is totally what she said
  87. This Is Not Linux in Javascript by Doc+Ruby · · Score: 4, Insightful

    This cool Web app is not "Linux in Javascript". It is in fact a "Javascript PC Emulator", just as the app says in the app's page title. It's a bootloader and a virtual PC implemented in Javascript running in the browser JS engine. Which loads a stripped-down Linux binary into itself and runs it, as if it were running on the PC. The Linux was written in C, compiled into PC (x86) machine instructions like any PC Linux, and then runs on the Javascript PC emulator.

    I suppose it might be possible to run a Windows binary on it, if that bloatware would fit in the browser. Maybe DOS, or even Novell Netware (though this Linux demo has its networking stripped, and in any case the browser enforces the originating-server-only network access).

    Very admirable project. Truly journalistic bad headline and summary.

    --

    --
    make install -not war

  88. JSLinux by Anonymous Coward · · Score: 0

    No lspci

  89. I'm holding out for the Brainfuck version ... by Kaz+Kylheku · · Score: 1

    which dynamically compiles x86 code into Excel macros.

    *duck*

  90. Re:uhhh by MichaelSmith · · Score: 1

    Its a great way to run Linux in places where installing Linux is strictly forbidden.

  91. Re:9.80 BogoMIPS - f00f? by Anonymous Coward · · Score: 0
    Cpuinfo has some interesting tidbits as well:

    [root@JS/Linux /root]# cat /proc/cpuinfo
    processor : 0
    vendor_id : GenuineIntel
    cpu family : 5
    model : 4
    model name : Pentium MMX
    stepping : 3
    cache size : 0 KB
    fdiv_bug : yes
    hlt_bug : no
    f00f_bug : yes
    coma_bug : no
    fpu : no
    fpu_exception : no
    cpuid level : 1
    wp : yes
    flags :
    bogomips : 9.80
    clflush size : 32
    cache_alignment : 32
    address sizes : 32 bits physical, 32 bits virtual
    power management:

    Like it claiming to have the f00f bug - has anyone verified that this virtual cpu has it and that Linux fix for it works properly?

  92. Re:uhhh by Anonymous Coward · · Score: 0

    Maybe you could make a movie about lazy zombies. That would be great.

  93. Latest kernel by loxosceles · · Score: 1

    ...is actually 3.0.6. kernel.org is back up but it's not updating properly.

  94. Re:uhhh by Mordocai · · Score: 1

    It depresses me that some people think running around with a ball, throwing it, and smashing into other people is in any way comparable to writing javascript that can run a linux kernel. Calling programming -anything- "whacking away at a keyboard at some random futility" vastly underestimates the knowledge required to do anything cool with programming. Yeah, I wrote a calculator when I first started programming. There were thousands of calculators out there that were better and more efficient than mine. However, whacking away at a keyboard at that random futility taught me what I needed to be able to move on to creating bigger and better things. I think it would be damn cool to be able to hit a web site and run linux when I'm stuck at work on a crappy windows computer. Get this to the point I have a fully functional bash shell and a package manager, and to where it can compile small programs, and I will use the crap out of it.

  95. But let's not forget... by randomir · · Score: 1

    .. the (html5) local storage capacity limit in most browsers is 5MiB (to 10MiB).

  96. Re:uhhh by segin · · Score: 1

    Except that this provides practical future value, especially in a world where "web apps" seem to the the Next Big Thing. It may be cost-efficient to run some legacy client application in a browser using JavaScript virtual hardware to translate, e.g. serial port I/O, into some AJAX or similar request towards an equally-legacy (emulated?) mainframe.

    This similarly would allow companies to squeeze additional blood from stones by offering old DOS games running in a JavaScript emulator using HTML5 Local Storage for save games, while keeping the main game executable, bit-for-bit, to that they shipped two or more decades ago on floppy disks (or CD-ROMs).

    Rewriting said games for the modern web is not a port. That is a remake, unless you are using LLVM + Emscripten to port the original C/C++ to the web. And it has to be the original game code, not a brand new codebase from scratch. There are some games whose experience would actually be changed by a remake, due to subtle programmer errors in the original code, which for accuracy's sake, must be maintained.