r29287 - docs/Perl6/Spec

2009-12-07 Thread pugs-commits
Author: lwall
Date: 2009-12-07 22:59:21 +0100 (Mon, 07 Dec 2009)
New Revision: 29287

Modified:
   docs/Perl6/Spec/S03-operators.pod
   docs/Perl6/Spec/S12-objects.pod
Log:
[S03,S12] remove redundant .Int and .true in describing conditional semantics


Modified: docs/Perl6/Spec/S03-operators.pod
===
--- docs/Perl6/Spec/S03-operators.pod   2009-12-07 20:06:06 UTC (rev 29286)
+++ docs/Perl6/Spec/S03-operators.pod   2009-12-07 21:59:21 UTC (rev 29287)
@@ -3504,11 +3504,11 @@
 }
 
 because it will always choose the C case.  Instead use something like
-a conditional context uses:
+a conditional context uses internally:
 
 given $boolean {
-when .Bool.Int.true {...}
-when .Bool.Int.not {...}
+when .Bool == 1 {...}
+when .Bool == 0 {...}
 }
 
 Better, just use an C statement.

Modified: docs/Perl6/Spec/S12-objects.pod
===
--- docs/Perl6/Spec/S12-objects.pod 2009-12-07 20:06:06 UTC (rev 29286)
+++ docs/Perl6/Spec/S12-objects.pod 2009-12-07 21:59:21 UTC (rev 29287)
@@ -1913,7 +1913,7 @@
 Conditionals evaluate the truth of a boolean expression by testing
 the return value of C<.Bool> like this:
 
-$obj.Bool.Int != 0
+$obj.Bool != 0
 
 Never compare a value to "C", or even "C".  Just use it
 in a boolean context.  Well, almost never...



Re: Perl 6 IDEs

2009-12-07 Thread Gabor Szabo
2009/12/7 Gabor Szabo :
> 2009/12/6 Víctor A. Rodríguez (Bit-Man) :
>> Hi perlsixers,
>>
>> we've been working a bit on Perl 6 lately [1] and some work, even the
>> basic coding, would be great if we use some IDE.
>> I'm a regular Eclipse user and EPIC seems the natural choice for me,
>> but it doesn't support Perl 6 (yet). Also tied to install Padre on top
>> of Ubuntu but just went to nowhere :-P
>
> What went wrong?
> How could I help you get you going?
>

Well, it seems I finally manged to build a very experimental package for Linux.
It even worked on one system I tried on which was not the one I built it on. :-)

If any of you is interested - though it does not contain the perl 6 plugin yet -
you can download the first experimental version of a Perl 5 package
containing Padre.
http://perlide.org/download/binary/perl-5.10.1-xl-0.01.tar.gz

after downloading

$ tar xzf perl-5.10.1-xl-0.01.tar.gz

and

$ ./perl-5.10.1-xl-0.01/perl/bin/padre.sh

notice one needs to run the shell file!

please check it out and let me know what distribution and what version
have you tried and
if it worked or not. Based on this, tomorrow I'll attempt to build a
version that includes the
Perl 6 plugin as well. Or go back to the drawing board to find another
way to build it.

Gabor


Re: Perl 6 IDEs

2009-12-07 Thread Moritz Lenz
Hi,

On Sun, Dec 06, 2009 at 01:47:37PM -0300, Víctor A. Rodríguez (Bit-Man) wrote:
> but it doesn't support Perl 6 (yet). Also tied to install Padre on top
> of Ubuntu but just went to nowhere :-P

I'm sure the Padre developers will appreciate your feedback, and can help you
with the setup.

> Did anyone tried any other Perl 6 aware IDE ??

I'm a vim fanboy, and there's a pretty decent syntax hilighting module for
Perl 6 here:
http://github.com/petdance/vim-perl

Not a full IDE, but enough for me.

Cheers,
Moritz


Re: Perl 6 IDEs

2009-12-07 Thread John Harrison
http://github.com/petdance/vim-perl has vim syntax highlighting for perl 6.

2009/12/7 Steffen Schwigon 

> "Víctor A. Rodríguez (Bit-Man)"  writes:
> > Hi perlsixers,
> >
> > we've been working a bit on Perl 6 lately [1] and some work, even the
> > basic coding, would be great if we use some IDE.
> > I'm a regular Eclipse user and EPIC seems the natural choice for me,
> > but it doesn't support Perl 6 (yet). Also tied to install Padre on top
> > of Ubuntu but just went to nowhere :-P
> >
> > Did anyone tried any other Perl 6 aware IDE ??
>
> There is a Perl6 aware cperl-mode.el for Emacs which works quite ok.
> Don't start a war on whether it's an IDE. I just wanted to mention it.
> Find it in the Pugs repository.
>
> Kind regards,
> Steffen
> --
> Steffen Schwigon 
>



-- 
John "ash" Harrison


[perl #70886] mt.exe fails to create perl6.exe.manifest -- why is it even trying?

2009-12-07 Thread Ronald Blaschke via RT
I think I can reproduce the issue.  For a reason I haven't found yet, an
installed parrot's pbc_to_exe runs the following.

mt.exe -nologo -manifest perl6.exe.manifest
-outputresource:perl6.exe.manifest;1

The correct command would be as follows.

mt.exe -nologo -manifest perl6.exe.manifest -outputresource:perl6.exe;1

pbc_to_exe in the build directory does the right thing, the installed
pbc_to_exe does not.

Ron


Re: Perl 6 IDEs

2009-12-07 Thread Bit-Man
Hi Gabor,

2009/12/7 Gabor Szabo :
> 2009/12/6 Víctor A. Rodríguez (Bit-Man) :
>> Hi perlsixers,
>>
>> we've been working a bit on Perl 6 lately [1] and some work, even the
>> basic coding, would be great if we use some IDE.
>> I'm a regular Eclipse user and EPIC seems the natural choice for me,
>> but it doesn't support Perl 6 (yet). Also tied to install Padre on top
>> of Ubuntu but just went to nowhere :-P
>
> What went wrong?
> How could I help you get you going?

Honestly I tried to install it by September, and some dependences were
outdated in my Ubuntu 9.04 box (I tried the manual install), then
decided to wait for 9.10 (and honestly I haven't upgraded it yet :-P)

I'm installing it right now using Perl 5.10.1 on top of Ubuntu 9.04 using CPAN.

Thanks !
-- 
Víctor A. Rodríguez (http://www.bit-man.com.ar)
El bit Fantasma (Bit-Man) - Programming: love it or leave it.
Perl Mongers Capital Federal (http://cafe.pm.org/)
GNU/Linux User Group - FCEyN - UBA (http://glugcen.dc.uba.ar/)


Re: Perl 6 IDEs

2009-12-07 Thread Steffen Schwigon
"Víctor A. Rodríguez (Bit-Man)"  writes:
> Hi perlsixers,
>
> we've been working a bit on Perl 6 lately [1] and some work, even the
> basic coding, would be great if we use some IDE.
> I'm a regular Eclipse user and EPIC seems the natural choice for me,
> but it doesn't support Perl 6 (yet). Also tied to install Padre on top
> of Ubuntu but just went to nowhere :-P
>
> Did anyone tried any other Perl 6 aware IDE ??

There is a Perl6 aware cperl-mode.el for Emacs which works quite ok.
Don't start a war on whether it's an IDE. I just wanted to mention it.
Find it in the Pugs repository.

Kind regards,
Steffen 
-- 
Steffen Schwigon 


[perl #71086] [BUG] Unexpected result when doing .kv from within the List class in Rakudo

2009-12-07 Thread Carl Mäsak
# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #71086]
# in the subject line of all future correspondence about this issue. 
# http://rt.perl.org/rt3/Ticket/Display.html?id=71086 >


 rakudo: for .kv { .say }
 rakudo 7ef386: 0␤a␤1␤b␤2␤c␤
 rakudo: class List is also { method d { for self.kv { .say } }
}; .d
 rakudo 7ef386: 0a␤1b␤2c␤
* masak submits rakudobug

I'd expect those two lines of code to yield the same results. Either
my expectations are wrong, or Rakudo is.


Re: Perl 6 IDEs

2009-12-07 Thread Gabor Szabo
2009/12/6 Víctor A. Rodríguez (Bit-Man) :
> Hi perlsixers,
>
> we've been working a bit on Perl 6 lately [1] and some work, even the
> basic coding, would be great if we use some IDE.
> I'm a regular Eclipse user and EPIC seems the natural choice for me,
> but it doesn't support Perl 6 (yet). Also tied to install Padre on top
> of Ubuntu but just went to nowhere :-P

What went wrong?
How could I help you get you going?

Gabor


[perl #71096] [BUG] Can't refer to variables outside of a BEGIN block in Rakudo

2009-12-07 Thread Carl Mäsak
# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #71096]
# in the subject line of all future correspondence about this issue. 
# http://rt.perl.org/rt3/Ticket/Display.html?id=71096 >


 rakudo: my $a; BEGIN { $a = 42 }
 rakudo 7ef386: Symbol '$a' not predeclared in  [...]
 should that work?
 I don't think so
 std:  my $a; BEGIN { $a = 42 }
 std 29276: ok 00:01 106m␤
 ng: my $a; BEGIN { $a = 42 }
 ng 7fc485: sh: ./perl6: No such file or directory␤
 moritz_: oh yeah, ng doesn't work.
 in p6eval, that is.
 it works fine locally. :)
 and it accepts that oneliner.
* masak submits rakudobug


[perl #71088] [BUG] .trans after .subst blows up in Rakudo

2009-12-07 Thread Carl Mäsak
# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #71088]
# in the subject line of all future correspondence about this issue. 
# http://rt.perl.org/rt3/Ticket/Display.html?id=71088 >


 rakudo: "".subst(/x/, "").trans()
 rakudo 7ef386: too few positional arguments: 1 passed, 2 (or
more) expected [...]
 is this one known?
 it looks familiar.
 Hmm
 It does
 But that might be because we've had similar bugs in the past
 it's the getting-Parrot-strings bug, I know.
 but is this particular instance reported?
 I don't know
* masak submits rakudobug just to be safe
 :)


Perl 6 IDEs

2009-12-07 Thread Bit-Man
Hi perlsixers,

we've been working a bit on Perl 6 lately [1] and some work, even the
basic coding, would be great if we use some IDE.
I'm a regular Eclipse user and EPIC seems the natural choice for me,
but it doesn't support Perl 6 (yet). Also tied to install Padre on top
of Ubuntu but just went to nowhere :-P

Did anyone tried any other Perl 6 aware IDE ??

Thanks !

[1] : http://sites.google.com/site/perl6hackaton/
-- 
Víctor A. Rodríguez (http://www.bit-man.com.ar)
El bit Fantasma (Bit-Man) - Programming: love it or leave it.
Perl Mongers Capital Federal (http://cafe.pm.org/)
GNU/Linux User Group - FCEyN - UBA (http://glugcen.dc.uba.ar/)