Page 1 of 1
an OS in RUBY?
Posted: Fri May 18, 2007 4:05 pm
by com1
could ANYBODY give me tips of writing an OS in ruby? my OS is designed to be written in C, and i know nothing about ruby.
Posted: Fri May 18, 2007 4:35 pm
by Alboin
Well, you could go two ways here.
First, you could write an interpreter in C, and then have that run the Ruby code. This is slow, and writing the actual kernel in plain script might not be the best idea.
Or, you could create a virtual machine which would then run as the OS, running the Ruby byte code. (Which you would have to somehow compile.) This is probably your best bet. You could even just implement a simple Java machine in C, and then use xruby, or jruby.
An even easier method, however, would be to simply use Perl, and port Parrot so that it can run without an operating system.
Either way, it's going to be a quite a bit of work, and that doesn't even cover reimplementing the Ruby standard functions and such...
Posted: Fri May 18, 2007 11:38 pm
by pcmattman
May I ask why you wish to write an OS designed in C in Ruby? What's wrong with C, it's purpose was for operating system development (the guys at Bell created it so they could write UNIX, back when OS development was black magic).
well I...
Posted: Sat May 19, 2007 1:11 pm
by com1
I saw an OS written in RUBY, and was interested in how it worked, thats all. I wasn't going to implement RUBY in my C OS.
Posted: Sat May 19, 2007 7:54 pm
by Crazed123
Do you know the name of this Ruby-based operating system? I'd rather like to see it.
If you want an idea of how implementing an OS in a very-high-level language works out, take a look at
Movitz.
Posted: Sat May 19, 2007 8:10 pm
by Alboin
Crazed123 wrote:Do you know the name of this Ruby-based operating system? I'd rather like to see it.
ROS, perhaps?
Yup.......
Posted: Sun May 20, 2007 10:03 am
by DeletedAccount
Everything that a Turing machine can do can be done with a Computer ,
What i mean is any feasible computational task can be performed by the
Turing machine....
SO it is theoritically possible to write an OS in Ruby....
But i do not recomend writing an OS in an intrepretative language like RUBY... or BASIC ... try something like PASCAL,C.C++,Oberon etc........
Posted: Sun Jul 01, 2007 2:36 am
by binutils
IMHO, movitz suffers from bootstrap problem..
some kind of usability. had little chat with #movitz @freenode..
http://common-lisp.net/project/movitz/
If you ask to me, "what are you talk about?", i will say this is little offtopic. :)