Yeah, I'm curious about that too... a couple of years ago I wrote a Python-2-native compiler but was very disappointed to find that it revved up things only 2x to 3x (to less than 1/10 the speed of C code), the matter obviously being that Python's way of object handling already consumed most of the CPU time. Obviously, the need for endless type checks, comparisons and conversions, not to mention memory allocation and deallocation, is a bottleneck, at least in Python -- and though I am not really familiar with the internals of the Ruby interpreter, I think that the problem will be pretty much the same. Also in Smalltalk. So there must really be some fundamental stroke of genius involved....
And if so, what about incorporating this into Ruby 2.x one day?
-- Ruediger Marcus
···
Am Freitag, 8. April 2005 04:14 schrieb Phil Tomson:
In article <1112914652.066124.91370@g14g2000cwa.googlegroups.com>,
Avi Bryant <avi.bryant@gmail.com> wrote:
>Peter Suk wrote:
>> Hello everyone,
>>
>> I thought I'd talk about my new project here, since there is a good
>> chance that someone might be interested in it. I'm planning to put
>> Ruby on top of Smalltalk VMs.
>
>Hi Peter,
>
>I'm definitely interested in this; please keep me posted. Actually, a
>couple of people are aware that I was looking into the possibility of
>doing this as a commercial product - since, from my benchmarking, we
>can get about a 20x to 30x speed increase by hosting Ruby on a
>commercial Smalltalk VM like VisualWorks, it seemed like it might beThis "20x to 30x speed increase" stuff is interesting. I would have
thought it would be closer to something like 5x. Can anyone elaborate on
how those increases are being acheived in the SmallTalk VMs? I'm wondering
if it might also be worthwhile to incorporate some of these ideas into YARV
- parhaps that would get us to high-speed Ruby even faster than trying to
put Ruby on top of a SmallTalk VM?Phil
--
Chevalier Dr Dr Ruediger Marcus Flaig
Institute for Immunology
University of Heidelberg
INF 305, D-69121 Heidelberg
"Drain you of your sanity,
Face the Thing That Should Not Be."
--
Diese E-Mail wurde mit http://www.mail-inspector.de verschickt
Mail Inspector ist ein kostenloser Service von http://www.is-fun.net
Der Absender dieser E-Mail hatte die IP: 129.206.124.135