Re: JavaVM compiler for Python?

Chris Vale (cvale@netcom20.netcom.com)
Mon, 17 Apr 1995 23:12:19 GMT

>>>>> "Dan" == Dan Connolly <connolly@www18.cern.ch> writes:
In article <CONNOLLY.95Apr16102547@www18.cern.ch> connolly@www18.cern.ch (Dan Connolly) writes:

Dan> The list of features supported by the Python class library is
Dan> very nice for the applications I'm interested in --
Dan> distributed hypermedia apps, incl. WWW apps.

Dan> But python's runtime is a little clunky -- threads are iffy,
Dan> and all the dictionary lookups seem to hamper speed
Dan> significantly. (It seems memory hungry, compared to perl
Dan> e.g, also. Try something like:

Dan> a = {} for i in [0..1000]: a['indx' + `i`] = 'value' +
Dan> `i`

Dan> and watch the heap grow!)

Hmm, don't you mean something like
a = {}
for i in range(0,1000):
a['indx'+str(i)] = 'value'+str(i)
?

this seems to take less than a second to generate, and less than 15k
of heap ( 486DX2 66mz running windows/NT 3.5). So what is the problem?
I think you need to learn a little about the language since your code
isn't correct anyway. The problem is you seem to be assuming something
based on your understanding of the underlying architecture rather than
from practial experience. Try it, you might actually like it.

Dan> Reference counting makes for some nasty situations too.

Dan> Anyway... the language and libraries are great.

Dan> And I think the Java VM addresses some of the runtime
Dan> problems. Plus, I expect it to be widely deployed.

Dan> Is anybody (besides me!) thinking about a JavaVM compiler for
Dan> Python?

Dan> I know this implies a lot of re-engineering of the library
Dan> modules, but I think it's a win.

Dan> Dan -- Daniel W. Connolly "We believe in the
Dan> interconnectedness of all things" Research Technical Staff,
Dan> MIT/W3C <connolly@w3.org>
Dan> http://www.w3.org/hypertext/WWW/People/Connolly

-- 
-----------------------------------------------------------------------------
Chris Vale                       | "Outside a dog, a book is mans best friend
cvale@netcom.com                 |  Inside a dog, it's too dark to read"
                                 |                     Groucho Marx
-----------------------------------------------------------------------------