develooper Front page | perl.perl6.language | Postings from August 2000

Re: the C JIT

Thread Previous | Thread Next
From:
Nathan Wiger
Date:
August 31, 2000 15:37
Subject:
Re: the C JIT
Message ID:
39AEDE3E.70C0A62F@west.sun.com
"David L. Nicol" wrote:
>
>         my dog $spot;
> to
>         dog spot;
> 
> If we only allow this where enough info is available to allocate dog-sized
> pieces of memory directly, Perl can blaze through the code that deals with
> dogs.

I don't see what barewords gain us here. Who says that

   my dog $spot;

Already won't micromanage memory through implicit constructors? That's
certainly the current idea behind:

   my int $x = 5;    # $x = int->CREATE, $x->STORE(5)

This would call an implicit constructor on the 'int' class. The 'int'
subclass would optimize things so that $x would get all the
computational virtues and all the bondage and discipline of strong
typing.

More details on this can be found here:

http://www.mail-archive.com/perl6-language-objects%40perl.org/msg00137.html
http://www.mail-archive.com/perl6-language-objects%40perl.org/msg00105.html
http://www.mail-archive.com/perl6-language-objects%40perl.org/msg00152.html

-Nate

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About