Live data from Hacker News

Boot a linux kernel right inside your browser.

bellard.org

101–110 of 255 posts

Re: Boot a linux kernel right inside your browser.

#101
post #80

This looks awesome! I'm just starting to learn ruby and was going to look today on whether there was a way to run it in a browser very easily. Wonder if this is the answer

For Python there exists such a thing, Skulpt ( http://www.skulpt.org/ ). It emulates the Python VM in client-side JS. This is somewhat more direct than using Python in Linux on a JS-based emu.

I think the Ruby equivalent to that would be HotRuby. http://hotruby.yukoba.jp/

Re: Boot a linux kernel right inside your browser.

#102
post #56

How is this thing loads the kernel? I've read the http://bellard.org/jslinux/tech.html but it doesn't say, Does it loads it over the net or what?

It downloads a kernel image (and a disk image) over the network (open the developer tools in your browser and reload the page, you will see 3 .bin files of 1~2MB being transferred)

Re: Boot a linux kernel right inside your browser.

#103
post #50
post #46

ERROR: your browser is too old to run JS/Linux. You should use a recent browser such as Firefox 4.x or Google Chrome. No, it isn't. Stop using user-agent matching and start using JavaScript feature detection instead.

It does. It tests for ArrayBuffer support, outputting that message if the necessary constructors aren't found. What browser are you using that you expect to be supported? (Safari doesn't have support for ArrayBuffer, but a recent WebKit nightly does, and this runs in that).

I believe Opera does not support typed arrays either.

Re: Boot a linux kernel right inside your browser.

#108
post #39

I'm sad the source has been compressed so there's no easy human-readable View Source, like there was on the VAX emulator that came up a few weeks ago. :( Still awe-inspiring, though. :)

Chrome dev tools now have pretty print built in. Probably need dev channel.
Post reply on HN