Live data from Hacker News

Boot a linux kernel right inside your browser.

bellard.org

21–30 of 255 posts

Re: Boot a linux kernel right inside your browser.

#23
post #16

After FFmpeg (used in all your TVs and gadgets, very likely), QEmu (used also by Xen and VBox and other), tcc and his IOCC entries, the DVB-T emission with an ATI card, Fabrice comes, once again with something crazy... He is really impressive...

Don't forget that he discovered the fastest known algorithm for computing an arbitrary digit of pi. If you ever are tempted to get egotistical, just think of this guy. If you are prone to low self esteem, avoid reading about him.

Re: Boot a linux kernel right inside your browser.

#24
I'm utterly dumbfounded. Not only does it boot, it's got emacs, and a compiler.

  Welcome to JS/Linux  
  ~ # emacs test.c
  ~ # cat test.c                                                                                                                                                 
  void main(void) {                                                               
      printf("Hello World!\n");                                                   
  }      
  ~ # tcc test.c -o hello                                                         
  ~ # ./hello                                                                     
  Hello World!
[Edit: just realized that there is already a 'hello.c' in the directory that shows just this with better diction.]

Re: Boot a linux kernel right inside your browser.

#25
post #24

I'm utterly dumbfounded. Not only does it boot, it's got emacs, and a compiler. Welcome to JS/Linux ~ # emacs test.c ~ # cat test.c void main(void) { printf("Hello World!\n"); } ~ # tcc test.c -o hello ~ # ./hello Hello World! [Edit: just realized that there is already a 'hello.c' in the directory that shows just this with better diction.]

adduser works (except you need to create a /home directory)

Re: Boot a linux kernel right inside your browser.

#27
post #11

Earlier quoted context omitted.

Implement emulation of a network card... ;) The tech notes page states that "there is no network emulation at this point".

Yeah. That would be a whole interesting can of worms. Would need PCI/USB/whatever bus your ethernet card was on. Plus emulation of the selected ethernet card itself. Loopback (which is present) is so much simpler.

I guess a tun/tap to some server-side service might be possible too, but perhaps not very interesting. The x86 dynamic library api suggested in the tech notes sounds more useful.

Edit: Easier idea might be adding ttyS1 and connecting that to a websocket on the server. Combined with something like socat or ppp, that ought to work. Since the console is already ttyS0 and connected to the js terminal, it might be doable even with the obfuscated source.

Re: Boot a linux kernel right inside your browser.

#29
post #16

After FFmpeg (used in all your TVs and gadgets, very likely), QEmu (used also by Xen and VBox and other), tcc and his IOCC entries, the DVB-T emission with an ATI card, Fabrice comes, once again with something crazy... He is really impressive...

Don't forget that he discovered the fastest known algorithm for computing an arbitrary digit of pi. If you ever are tempted to get egotistical, just think of this guy. If you are prone to low self esteem, avoid reading about him.

And still, he has normal job in a normal company... Not in a start-up or not in a mega-tech-corp...

Re: Boot a linux kernel right inside your browser.

#30

My favorite bit: # cat /proc/cpuinfo ... f00f bug: yes # Hah! 20 bogomips by the way, at least on Chrome on a MacBook Pro. I sense a whole new era of browser performance testing..

For the curious: http://www.rcollins.org/ddj/May98/F00FBug.html

I'd be curious to know if this is was intentional, or a side-effect of the emulation.

Post reply on HN