[#3986] Re: Principle of least effort -- another Ruby virtue. — Andrew Hunt <andy@...>

> Principle of Least Effort.

14 messages 2000/07/14

[#4043] What are you using Ruby for? — Dave Thomas <Dave@...>

16 messages 2000/07/16

[#4139] Facilitating Ruby self-propagation with the rig-it autopolymorph application. — Conrad Schneiker <schneik@...>

Hi,

11 messages 2000/07/20

[ruby-talk:04099] Re: What are you using Ruby for?

From: matz@... (Yukihiro Matsumoto)
Date: 2000-07-18 01:30:37 UTC
List: ruby-talk #4099
Hi,

In message "[ruby-talk:04086] Re: What are you using Ruby for?"
    on 00/07/17, Robert Feldt <feldt@ce.chalmers.se> writes:

|* Being able to "freeze" an object and dump it to an exe that can be
|executed stand-alone (without interpreter or external libs/exts) on a
|non-Ruby aware machine. I distribute my jobs on a network of workstations
|and it's not very nice to have to install Ruby on all of them prior to
|execution.
|
|* Native compilation for Wintel machines. Could add some extra boost to
|performance-hungry applications?!

rb2c may help you.  

  http://www-lab09.kuee.kyoto-u.ac.jp/~hiwada/ruby/rb2c/

|* Profiling Ruby code. Someone doing this today? How?

Try profile.rb in the standard library.

  ruby -r profile your-script

|* I understand the basics of mix-in and single inheritance. But how should
|you choose between them? I tend to use mix-in as much as possible since it
|seems more flexible. Anyone got some rule-of-thumbs?

Use inheritance, just like in other SI language, to represent is-a
relation.  And if a set of function provide features that can be
shared among classes, make it mix-in.

|* Anyone actually doing GUI stuff on Wintel machines? Didn't put much
|effort into it, but I couldn't get TK to work...

I hope Ruby/Gtk become mature enough soon.

							matz.

In This Thread