WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Micro Core on Javascript PC Emulator  (Read 8535 times)

Offline danielibarnes

  • Hero Member
  • *****
  • Posts: 548
Micro Core on Javascript PC Emulator
« on: June 13, 2011, 02:02:44 PM »
Description:
Micro Core ported to the Javascript PC Emulator by Fabrice Bellard.

Link:
http://daniel.koolserve.com/jslinux/

Sources:
http://daniel.koolserve.com/src/

This is primarily a proof-of-concept. Includes the screen extension and dependencies. It also compiles a small C program on bootup in /home/tc.
« Last Edit: December 27, 2011, 06:05:49 PM by danielibarnes »

Offline Lee

  • Hero Member
  • *****
  • Posts: 645
    • My Core wiki user page
Re: Micro Core on Javascript PC Emulator
« Reply #1 on: June 13, 2011, 02:53:07 PM »
That's "kool", but holy mackerel Is it ever slow! (on a six year old Dell Dimension w/dual core CPU and 512MB)

I just logged in as tc w/no password.  What will it do next?  And when?  ;D

Never mind - there's the prompt...

... Ok, that was neat.  Not terribly useful, but neat.  Running it with some pretty conky graphs along side illuminates the nature of the slowness - it maxes out the CPU -and- gets into using swap.  It does let the CPU go idle upon shutdown of the vm, but doesn't seem to free up the memory - that's probably Firefox holding on to the memory though.



32 bit core4.7.7, Xprogs, Xorg-7.6, wbar, jwm  |  - Testing -
PPR, data persistence through filetool.sh          |  32 bit core 8.0 alpha 1
USB Flash drive, one partition, ext2, grub4dos  | Otherwise similar

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: Micro Core on Javascript PC Emulator
« Reply #2 on: June 13, 2011, 03:01:54 PM »
That http://daniel.koolserve.com/jslinux/ link brought my machine to it's knees. Opera memory usage
shot up to 85% and it's CPU usage went to 92%. Took a few minutes to get the tab closed and regain
control of my computer.

Offline gutmensch

  • Administrator
  • Hero Member
  • *****
  • Posts: 605
  • I can make it disappear, have no fear!
    • remembrance blog
Re: Micro Core on Javascript PC Emulator
« Reply #3 on: June 14, 2011, 02:26:30 AM »
@daniel: nice work! when I read about jslinux a few weeks ago I already wondered, when someone will try to bring tc to it :D

@rich: better use a browser with good js performance... until opera 11 I think it was not even close to ff4/chrome ;)
If I seem unduly clear to you, you must have misunderstood what I said. (Alan Greenspan)

Offline danielibarnes

  • Hero Member
  • *****
  • Posts: 548
Re: Micro Core on Javascript PC Emulator
« Reply #4 on: June 14, 2011, 07:17:08 AM »
If anyone has any ideas, please post! That is one of the primary reasons for my releasing this.

Firefox 4 seems to have best performance. It runs reasonably fast for me, but I have a dual E5520 @ 2.26GHz w/4GB. I have another version of the page where I added a second serial port and use it to send data to/from the Javascript. That was cool.

There are a few things missing:
  • No framebuffer. You think it's slow now? Try adding graphics. :)
  • No virtual network adapter. Would take some work, but possible.
  • No persistent storage. This is important to me, as I'd like to create hands-on Tiny Core Tutorials.

Not terribly useful yet, but I am working on it. I added screen to give it a little more usefulness.
« Last Edit: June 14, 2011, 08:07:14 AM by danielibarnes »

Offline Lee

  • Hero Member
  • *****
  • Posts: 645
    • My Core wiki user page
Re: Micro Core on Javascript PC Emulator
« Reply #5 on: June 14, 2011, 09:39:42 AM »
FYI: My experience, mentioned above, was with Minefield 3.0.4.

32 bit core4.7.7, Xprogs, Xorg-7.6, wbar, jwm  |  - Testing -
PPR, data persistence through filetool.sh          |  32 bit core 8.0 alpha 1
USB Flash drive, one partition, ext2, grub4dos  | Otherwise similar