From: Dylan Evans Date: 2009-06-04T22:49:24+09:00 Subject: Re: Ruby OS --000e0cd2e1dcb9eba8046b85f623 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On Thu, Jun 4, 2009 at 11:15 PM, Kyle Schmitt wrote= : > On Thu, Jun 4, 2009 at 3:14 AM, Sparky Mat wrote: > > I was considering porting the Ruby 1.9 VM to bare metal (something > > similar to Cleese - http://code.google.com/p/cleese/). I was wondering > > if someone is already working on this. The end goal is to have a Ruby > > OS, with everything running on the VM. I have yet to analyze the > > complete changes needed. > > > Umm, have you thought perhaps of using an existing kernel and just > having one binary, that being ruby? You could then build your whole > userspace on top of that. A peek inside the mind of a genius. Why not use existing code and increase your chances of success? You will have to use binary at some level, and if you did want to use ruby to write kernel modules you could perhaps build on a microkernel (maybe minix) where the system is made up of daemons running in user space. Actually a simple way to prototype the system would be to run it in ms-dos which is as near to no operating system as you can get anyway. > > I've toyed with the idea, but never had the time to really do it. > > It's easy, take a linux, BSD (or any other "Real OS"=99), and add an > entry into the bootloader, telling it that the init program is > whatever binary or executable script you wish. You could add entries > for irb, a commodore 64 basic interpreter, and an apple-basic > interpreter in less than 5 minutes. > > I know just booting into irb or commodore basic may count as an OS > from the 8-bit days, but it really doesn't cut it now days :) So > after proving it works to yourself, try writing your own init as a > ruby 1.9 script. > > my 2=A2 > > --Kyle > > --=20 "The UNIX system has a command, nice ... in order to be nice to the other users. Nobody ever uses it." - Andrew S. Tanenbaum --000e0cd2e1dcb9eba8046b85f623--