OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Apr 16, 2024 1:52 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: an OS in RUBY?
PostPosted: Fri May 18, 2007 4:05 pm 
Offline
Member
Member

Joined: Sat Apr 28, 2007 11:57 am
Posts: 105
Location: TN
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


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 18, 2007 4:35 pm 
Offline
Member
Member
User avatar

Joined: Thu Jan 04, 2007 3:29 pm
Posts: 1466
Location: Noricum and Pannonia
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. :wink:

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.


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 18, 2007 11:38 pm 
Offline
Member
Member

Joined: Sun Jan 14, 2007 9:15 pm
Posts: 2566
Location: Sydney, Australia (I come from a land down under!)
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).

_________________
Pedigree | GitHub | Twitter | LinkedIn


Top
 Profile  
 
 Post subject: well I...
PostPosted: Sat May 19, 2007 1:11 pm 
Offline
Member
Member

Joined: Sat Apr 28, 2007 11:57 am
Posts: 105
Location: TN
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.

_________________
oh microsoft, microsoft, what souls you have dismayed


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 19, 2007 7:54 pm 
Offline
Member
Member

Joined: Thu Oct 21, 2004 11:00 pm
Posts: 248
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.


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 19, 2007 8:10 pm 
Offline
Member
Member
User avatar

Joined: Thu Jan 04, 2007 3:29 pm
Posts: 1466
Location: Noricum and Pannonia
Crazed123 wrote:
Do you know the name of this Ruby-based operating system? I'd rather like to see it.

ROS, perhaps?

_________________
C8H10N4O2 | #446691 | Trust the nodes.


Top
 Profile  
 
 Post subject: Yup.......
PostPosted: Sun May 20, 2007 10:03 am 
Offline
Member
Member

Joined: Tue Jun 20, 2006 9:17 am
Posts: 566
:P 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.... 8) 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........


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 01, 2007 2:36 am 
Offline
Member
Member
User avatar

Joined: Thu Apr 05, 2007 6:07 am
Posts: 214
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. :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 102 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group