Re: What is Python's answer to Perl 6?

From: John Roth (newsgroups_at_jhrothjr.com)
Date: 10/30/04


Date: Sat, 30 Oct 2004 16:31:24 -0500


"Jeremy Bowers" <jerf@jerf.org> wrote in message
news:pan.2004.10.30.18.40.19.137063@jerf.org...
> On Sat, 30 Oct 2004 12:53:13 +0000, gabriele renzi wrote:
>> well, they failed to implement all of the tests but those implemented
>> actually run faster than CPython.
>
> It is trivial to make something that implements a subset of the language
> run faster than something that implements the entire language.
>
> This is why while I am optimistic and hopeful, I don't consider current
> running speeds to be evidence that they will win. Call me when they've got
> the whole language.
>
> Also, there is the counterarguement that they probably have debug code and
> stuff still in there, or things easily optimized. (I hope so, otherwise
> they are Yet Another Project to fall victim to premature optimization;
> let me say this clearly, it would be a *bad sign* if their code is
> currently optimized.) But that just reinforces my point about the current
> code not being useful as a reference for how fast the final Parrot will
> run.

I suspect that the performance issue is being clouded by the
reference counting mechanism in CPython. Modern garbage collectors
are reputedly significantly faster. If Python 3.0 removes reference
counting it might speed up substantially. Note that IronPython is
reported to run at the same (or better) speed as CPython, even
though the CLR is not optimized for running scripting languages.

John Roth



Relevant Pages

  • Re: What is Pythons answer to Perl 6?
    ... > actually run faster than CPython. ... It is trivial to make something that implements a subset of the language ... they are Yet Another Project to fall victim to premature optimization; ...
    (comp.lang.python)
  • Re: Results of the memswap() smackdown from the thread "Sorting" assignment
    ... (but not as good as Ben's optimization) ... any "GO TO" feature of a language isn't a threat. ... stop being upset at the notion of calling memcpy() from the lib. ... printf("%d\n", FOO); ...
    (comp.programming)
  • Re: multimethod + multiple inheritance
    ... language) then your programming level will be limited. ... context where optimization allows the object to never exists as such). ... I don't care that I could do most of the work using design ... Predicate dispatch handles logical combination of values to select the ...
    (comp.object)
  • Re: SETF and variable issues in Self Similar program.
    ... The way to get a compiler to optimize a tail-call ... call optimization turned on. ... It changes the semantics of the language in a big way. ... In Common Lisp it has to interact with condition handling, ...
    (comp.lang.lisp)
  • Re: Java or C++?
    ... >>>Thus no language can be designed to be optimal on every system. ... >>been made over the past decade in the field of optimization. ... because most of the effort for compiler making goes into C. ... a variable can be held entirely in a register. ...
    (comp.programming)