ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have been looking into the Ruby language for awhile now.....reading lots of information on its capabilities and whatnot. I bought the Programming Ruby book as well to look into it some more. What blurs the lines is information on Ruby and Ruby on Rails.
I'm just wondering if Ruby has the capability to create PROGRAMS in the sense that say that I want to develop a multimedia program like a music player, Can Ruby build a music player that doesn't require installations of ruby to be on the existing system? I know pretty much all *nix systems have ruby installed by default, but I don't like the sound of developing a music player that acts like a script and requires an existing installation of Ruby on said system.
I know it can call and access native APIs on the platforms it's available on but can such a program be done with Ruby? I'm really into multimedia and I see myself developing multimedia applications.
I just don't understand the capabilities of Ruby and what should this tool be used for?
I too have recently been looking into Ruby. From what I have discovered, it is purely a scripting language and as such requires the Ruby intpreter to actually run. It does not produce binary executables like compiled and linked languages do. Your application would require whatever runtime engines are used for the interpretation to work. If Ruby is installed on pretty much all *nix systems, then you should be okay on that front. This of course means that the versions of Ruby that are already installed on those machines are compatible with your applications. It also means that your application will not run on most Winblows machines without requireing Ruby to be installed by the end-user.
Perhaps you're looking for something like RubyScript2Exe? It also seems like it might be possible to convert Ruby to C code, which can of course then be compiled into a binary.
Ruby is a very portable language, though somewhat young in acceptance, but its performance is terrible (for the moment at least). I think if multimedia is your thing, sticking to C or C++, which are much more commonly used in this area, would be a better idea.
[Note: if you take the second method of converting Ruby code to C, you presumably get the best of both worlds -- the performance of C and the flexibility of Ruby. If it works.]
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.