January 13th, 2007, 08:31 PM
Ruby Script: RedHat->XP?
I have a Ruby script that was developed on Linux (RH 3), will I have a problem running this script on XP?
January 14th, 2007, 07:23 PM
Nevermind...it runs beutifully. Which leads me to another question...Is Ruby platform independent?
Originally Posted by pbatt
January 15th, 2007, 06:04 PM
Welcom to devshed. =D Now, there is an edit button. Please use it. Also, don't quotes yourself, especially in a case such as this where there were only two posts. I don't think so, but I'm not sure. (not a ruby programmer)
"Java makes impossible things possible, but makes easy things difficult." - Somebody
January 20th, 2007, 01:52 AM
Hello, welcome to the forums. Yes Ruby is quite platform and os intendant. It is a fairly high level language so there is not much need for a lot of hardware or os specific coding. For just about any general app, including ones that have pretty GUI or preform things with sockets or even threading, it will cross platform perfectly.
The only cases that it wont cross of as easily is if you are using things in Linux like the `echo "hey"` in ruby script. That would receive an error within windows because windows does not have a echo command. So as long as your coding style doesn't relie on anything about the host os then you are in the clear for portablity. I have even read that ruby could almost be compiled for just about any platform as long as it has a c compiler or a java one.