Hello,
I've been reading a little about NQP (Not Quite Perl). I was wondering
if NQP is part of the Parrot project, or if it is an independent spec.
I'm wondering if a program written in NQP will be faster in general,
or faster under Rakudo/Parrot, or not fast at all.
Cheers,
Daniel.
--
I'm not
Hello.
We are all familiar with this:
(1..10).WHAT # = Range()
@foo = 1..10;
@foo.WHAT # = Array()
When you assign a range to @foo, the result is an array. Something
similar happens, for example, if you assign a scalar to @foo... The
context of the assignment causes Perl 6 to convert
Am 03.04.2012 17:10, schrieb Daniel Carrera:
(1..10).WHAT # = Range()
@foo = 1..10;
@foo.WHAT # = Array()
When you assign a range to @foo, the result is an array. Something
similar happens, for example, if you assign a scalar to @foo... The
context of the assignment causes Perl 6 to
On 3 April 2012 17:24, Moritz Lenz mor...@faui2k3.org wrote:
You can, very nearly. You just need to write
my @vec is Vector;
because you really want to change the type of the container, not just of the
contents (my Vector @vec would be an array containing Vector objects).
Another option
On 04/03/2012 08:24 PM, Daniel Carrera wrote:
On 3 April 2012 17:24, Moritz Lenz mor...@faui2k3.org wrote:
You can, very nearly. You just need to write
my @vec is Vector;
because you really want to change the type of the container, not just of the
contents (my Vector @vec would be an array
On 3 April 2012 20:38, Moritz Lenz mor...@faui2k3.org wrote:
which version of Rakudo are you using? (I've tried on the last
development version from git)
Rakudo Star 2012.02
% perl6 --version
This is perl6 version 2012.02 built on parrot 4.1.0 revision 0
Hmm... So you'd have to mess with
Branch: refs/heads/master
Home: https://github.com/perl6/specs
Commit: 7658104d48f7400089a8be66e431632e79e7f2cf
https://github.com/perl6/specs/commit/7658104d48f7400089a8be66e431632e79e7f2cf
Author: Herbert Breunung lichtk...@cpan.org
Date: 2012-04-03 (Tue, 03 Apr 2012)
Branch: refs/heads/master
Home: https://github.com/perl6/specs
Commit: 6ef69b98d8afb6e33a271a466fb8e1beb7142eb8
https://github.com/perl6/specs/commit/6ef69b98d8afb6e33a271a466fb8e1beb7142eb8
Author: Herbert Breunung lichtk...@cpan.org
Date: 2012-04-03 (Tue, 03 Apr 2012)