Ruby Distribution

  • Thread starter Jonathan Faulkenberry
  • Start date
J

Jonathan Faulkenberry

Hi all,
I am a C programmer that is beginning to see the network capaibilities
of Ruby. I am interested in creating a chat application that uses Ruby.
I am a little confused with the distribution of Ruby, though. Is Ruby
strictly scripting? Or can I distribute binaries? The time may come when
I may not want peopel to see my code and simply distribute binaries.
Also, the user may not have Ruby installed and bundling Ruby with the
software would bulk it up a lot. If anyone could help me understand how
Ruby works in terms of distribution/binaries it would be greatly
appreciated.

Jonathan
 
J

James Britt

Jonathan said:
Hi all,
I am a C programmer that is beginning to see the network capaibilities
of Ruby. I am interested in creating a chat application that uses Ruby.
I am a little confused with the distribution of Ruby, though. Is Ruby
strictly scripting? Or can I distribute binaries? The time may come when
I may not want peopel to see my code and simply distribute binaries.
Also, the user may not have Ruby installed and bundling Ruby with the
software would bulk it up a lot. If anyone could help me understand how
Ruby works in terms of distribution/binaries it would be greatly
appreciated.

This topic comes up regularly, so search the archives for more details.

The short answer is that Ruby is text, and the source for a Ruby app may
be obfuscated, but it is still available for human eyes.

However, Ruby integrates well with C, so you may be able to hide the
naughty bits by recoding them in C and calling the compiled libs from
your Ruby code.

Poke around for ruby2c as well.

Also look around for rubyscript2exe for bundling the Ruby interpreter
with your code.

James

--

http://www.ruby-doc.org - Ruby Help & Documentation
http://www.artima.com/rubycs/ - Ruby Code & Style: Writers wanted
http://www.rubystuff.com - The Ruby Store for Ruby Stuff
http://www.jamesbritt.com - Playing with Better Toys
http://www.30secondrule.com - Building Better Tools
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,197
Messages
2,571,040
Members
47,642
Latest member
arunkumar99

Latest Threads

Top