From: William Djaja Tjokroaminata Date: 2002-10-17T01:43:51+09:00 Subject: Re: Psyco Totally agree. As I am not really into "power programming" but more into "performance" (considering my Fortran background and my current project), I am not too interested in adding features to Ruby, but really wish that something can be done to increase Ruby efficiency. Although currently several solutions exist to varying degrees (such as Inline, rb2c, and SWIG), I think it will be nice not having to leave the Ruby framework (by having to deal explicitly with C/C++). Python already has Psyco, which can increase Python execution speed (at the cost of large memory consumption) without any change to the Python code itself. Python also already has Pyrex, which lets the programmer to fine-tune the Python code for increased performance. I think that kind of "extension" will really give a programmer a freedom of choice. For "rapid development", one can stay within the current Ruby syntax; on the other hand, for "performance coding", one can fine-tune a Ruby code ala Pyrex (instead of reopening that old C book :) ). Regards, Bill ============================================================================ Justin Johnson wrote: > The real problem is that Ruby is so dynamic. This is great for programmers > but gives compilers a hard time. > Naive example: > (1 + 2) > Most languages wouldn't have any problem recognizing this as a number > addition and generating quick instructions. Any good compiler would > precompute this as 3 and use the result in the compiled code directly.