an OS in RUBY?
an OS in RUBY?
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.
oh microsoft, microsoft, what souls you have dismayed
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...
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...
C8H10N4O2 | #446691 | Trust the nodes.
-
- Member
- Posts: 566
- Joined: Tue Jun 20, 2006 9:17 am
Yup.......
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........
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........
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. :)
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. :)