LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-22-2006, 03:34 AM   #1
Smokey
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 313

Rep: Reputation: 30
What can Ruby offer?


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?

Last edited by Smokey; 11-22-2006 at 03:51 AM.
 
Old 11-22-2006, 04:52 AM   #2
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
Quote:
I know pretty much all *nix systems have ruby installed by default,
linux maybe, Unix definitely not.
 
Old 11-22-2006, 10:34 AM   #3
rstewart
Member
 
Registered: Feb 2005
Location: Sunnyvale, CA
Distribution: Ubuntu
Posts: 205

Rep: Reputation: 38
Hi,

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.

Ciao!
 
Old 11-23-2006, 03:33 AM   #4
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
In truth the only things you are likely find on most real live production unix machines
are perl and java.
 
Old 11-23-2006, 07:29 PM   #5
taylor_venable
Member
 
Registered: Jun 2005
Location: Indiana, USA
Distribution: OpenBSD, Ubuntu
Posts: 892

Rep: Reputation: 43
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.]
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What does Windows offer? Mojojo General 50 01-14-2006 01:09 PM
ipod offer siku General 6 04-14-2005 02:55 PM
Please offer assistance mr2324jgf Linux - Networking 1 02-22-2004 02:01 PM
I can offer my help CatSC Programming 10 11-28-2003 01:43 PM
GPL, What does it offer? gdbugger Linux - General 1 03-14-2003 06:09 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration