Re: PGE infinite loop bug

2005-12-26 Thread Patrick R. Michaud
On Fri, Dec 23, 2005 at 12:17:16PM +, Luke Palmer wrote: > The following causes PGE to infinite loop: > > "x" ~~ /[ [ x ]* ]*/ > Thanks -- PGE doesn't yet handle repetitions of zero-length substrings. It's on the TODO list; I worked on it a couple of weeks ago but had to stop to re-think

Re: Match objects

2005-12-26 Thread Patrick R. Michaud
On Fri, Dec 23, 2005 at 02:09:19PM +, Luke Palmer wrote: > What sort of match object should this return, supposing that it didn't > infinite loop: > > "x" ~~ / [ [ (x) ]* ]* / > > Should $/[0][0] be "x", or should $/[0][0][0] be "x"? If it's the > latter, then when do new top-level eleme

Re: How to use Devel::Cover?

2005-12-26 Thread Scott Wang
Thanks for all your helps. I am new in Perl world, my situation is, for example: - my modules, which I like to test, live in "tmp/experiment/lib" folder - my test scripts, which are created to load and exercise the above modules, live in "tmp/experiment/tests" folder - I call our internal test h

Re: Threading PDD?

2005-12-26 Thread Patrick R. Michaud
On Fri, Dec 23, 2005 at 09:33:42PM +0100, Klaas-Jan Stol wrote: > Hi, > > I'm wondering, is there a PDD about Thread implementation in Parrot? I > searched the list archive, and found a lot of info. Dan even mentioned > writing a PDD on the subject, but I havent' been able to find it. This ques

Re: Match objects

2005-12-26 Thread Luke Palmer
On 12/26/05, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > On Fri, Dec 23, 2005 at 02:09:19PM +, Luke Palmer wrote: > > "x" ~~ / [ [ (x) ]* ]* / > > As I understand things, $/[0][0] would be "x". Hmm, that seems wrong. Consider: "xxxyxxyxy" ~~ / [ [ (x) ]* (y) ]* / I argue that by

Re: Match objects

2005-12-26 Thread Patrick R. Michaud
On Mon, Dec 26, 2005 at 07:34:06PM +, Luke Palmer wrote: > On 12/26/05, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > > On Fri, Dec 23, 2005 at 02:09:19PM +, Luke Palmer wrote: > > > "x" ~~ / [ [ (x) ]* ]* / > > > > As I understand things, $/[0][0] would be "x". > > Hmm, that seems w

Re: How to use Devel::Cover?

2005-12-26 Thread Scott Wang
Hi Chris, I am still confus. For example, On my Linux box, I have a module "/tmp/experiment/lib/module_to_test.pm" to be tested, and I have two Perl unit test scripts "/tmp/experiment/tests/test1.pl" and '"/tmp/experiment/tests/test2.pl" to load the module_to_test.pm module and execute the su

Re: Problem with dwimmery

2005-12-26 Thread Daniel Hulme
> As a third possibility, could we huffman-code "do nothing" clauses by > leaving out the appropriate argument? That is: > > while $x-- && some_condition($x); That's a bit too short for my liking: it is likely to lead to the traditional C undetectable bug when you write while $x-- && some_cond

Re: Good Perl6 environment

2005-12-26 Thread Peter Schwenn
Luke, Thank you very much - that should get me more than started. One more pointer, an elaboration, (a general one to documentation one relation of Pugs to embedded Parrot even better): if Pugs doesn't have a feature yet, like much of Rules, does it ship it off to embedded Parrot for potentia

External Parrot as opposed to embedded

2005-12-26 Thread Peter Schwenn
How does Pugs use Parrot "external" as opposed to "embedded"? (e.g. as expressed in: CAVEATS FOR ALL USERS - Parrot is used to provide Perl6-style regular expressions. Perl5-style regular expressions (eg, rx:perl5/foo/) can be used without any parrot at all. Pugs can be buil

[perl #38028] Some more tests to ops in pir

2005-12-26 Thread via RT
# New Ticket Created by [EMAIL PROTECTED] # Please include the string: [perl #38028] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=38028 > Most are trivial, few are important. Cheers Alberto -- Alberto Simões - Departame

Re: "*** Cannot find a runnable 'ghc' from path" from Pugs Makefile.PL under Cygwin

2005-12-26 Thread Peter Schwenn
Dear self, I've since discovered the prior discussion of Pugs under Cygwin so I know there's probably not yet a simple answer but enough of a work around to go forward (building and using Pugs+Parrot+... under Cygwin.) Peter Schwenn Peter Schwenn wrote: Perl6'ers Under Cygwin (bash), while

Re: GHC Environment for Pugs compilation

2005-12-26 Thread Gaal Yahas
On Fri, Dec 23, 2005 at 02:47:08PM -0500, Peter Schwenn wrote: > In order to Makefile.PL Pugs, what is the environment variable that > points to GHC? It just needs to be in your PATH. Make sure you have version 6.4.1 or a recent development snapshot. -- Gaal Yahas <[EMAIL PROTECTED]> http://gaa

Re: External Parrot as opposed to embedded

2005-12-26 Thread Gaal Yahas
On Fri, Dec 23, 2005 at 11:24:54PM -0500, Peter Schwenn wrote: > How does Pugs use Parrot "external" as opposed to "embedded"? Have the parrot executable in your path. Don't have "parrot" in the PUGS_EMBED environment variable. (TODO: move over PUGS_EMBED to the config.yml file.) -- Gaal Yahas

Re: "*** Cannot find a runnable 'ghc' from path" from Pugs Makefile.PL under Cygwin

2005-12-26 Thread Gaal Yahas
On Mon, Dec 26, 2005 at 12:00:11AM -0500, Peter Schwenn wrote: > I've since discovered the prior discussion of Pugs under Cygwin so I > know there's probably not yet a simple answer but enough of a work > around to go forward (building and using Pugs+Parrot+... under Cygwin.) We'll be very happy

Cygwin versun plain XP (for working with Pugs+Parrot together)

2005-12-26 Thread Peter Schwenn
Dear 6Compilers, Cygwin isn't entirely happy with Parrot (don't know about Pugs). Is the best approach on "plain" windows for setting up perl5+pugs+parrot to: 1. set up a gcc environment 2. get the tar.gz sources involved 3. use gcc's make tomake, make test, make install each

Re: How to use Devel::Cover?

2005-12-26 Thread Chris Dolan
On Dec 25, 2005, at 3:46 PM, Scott Wang wrote: I am new to use Devel::Cover. We have lots of product Perl modules in our product "lib" folder and we have lots of Perl test scripts to cover those modules, right now, we are trying to get the code coverage metrics for our tests on those modu

GHC Environment for Pugs compilation

2005-12-26 Thread Peter Schwenn
In order to Makefile.PL Pugs, what is the environment variable that points to GHC?

"*** Cannot find a runnable 'ghc' from path" from Pugs Makefile.PL under Cygwin

2005-12-26 Thread Peter Schwenn
Perl6'ers Under Cygwin (bash), while building PUGS, Pugs' Makefile.PL (one of its henchmen) needs an environment setting to say where a runnable 'ghc' can be found. I have GHC installed (in its .msi incarnation as required) in c:/cygwin/home/me/ghc I tried: setenv GHC=/home/me/ghc/bin

(Array) introspection

2005-12-26 Thread Ilmari Vacklin
Hi all, do we have any specifications for array introspection, or introspection of data structures (including subroutines) in general? Say I have this array: my @array (1..9 --> Int); I think I get the first bit with .shape; what about the Int? Since arrays are glorified subroutines, per

Re: Cygwin versun plain XP (for working with Pugs+Parrot together)

2005-12-26 Thread jerry gay
On 12/23/05, Peter Schwenn <[EMAIL PROTECTED]> wrote: > Dear 6Compilers, > questions about the internals of parrot (including build/config trouble) are best directed instead to the perl6 internals list, so i've copied them on my response. > Cygwin isn't entirely happy with Parrot (don't know about

[perl #38023] [TODO] build - support pkgconfig

2005-12-26 Thread via RT
# New Ticket Created by Joshua Hoblitt # Please include the string: [perl #38023] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=38023 > Parrot should support pkgconfig by installing a pc data file. It should probably be

Re: How to use Devel::Cover?

2005-12-26 Thread James E Keenan
Scott Wang wrote: Hi Chris, I am still confus. For example, On my Linux box, I have a module "/tmp/experiment/lib/module_to_test.pm" to be tested, and I have two Perl unit test scripts "/tmp/experiment/tests/test1.pl" and '"/tmp/experiment/tests/test2.pl" to load the module_to_test.pm module

Re: How to use Devel::Cover?

2005-12-26 Thread Randy W. Sims
James E Keenan wrote: Scott Wang wrote: Hi Chris, I am still confus. For example, On my Linux box, I have a module "/tmp/experiment/lib/module_to_test.pm" to be tested, and I have two Perl unit test scripts "/tmp/experiment/tests/test1.pl" and '"/tmp/experiment/tests/test2.pl" to load the

Re: How to use Devel::Cover?

2005-12-26 Thread Scott Wang
Hi James and Randy, Thank you so much for your replies! Yes, the modules that we are testing are not for standard distribution. They are created by other folks in my organization to support and to be part of our current automated integration system. They are our internal use. There already are ma

Re: Match objects

2005-12-26 Thread Luke Palmer
On 12/26/05, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > > I argue that by the structure of that rule, you should be able to tell > > which xs go with which y. > > ... > > Is there a counterargument that I'm not seeing? > > I'd say that if you want a structured rule, it should be written > that

Re: Array/list transformations.

2005-12-26 Thread Rob Kinyon
On 12/22/05, Jonathan Scott Duff <[EMAIL PROTECTED]> wrote: > On Thu, Dec 22, 2005 at 04:47:21PM +0100, Michele Dondi wrote: > > Also I wonder if one will be able to push(), pop(), etc. array slices as > > well whole arrays. A' la > > > > my @a=qw/aa bb cc dd ee/; > > my $s=pop @a[0..2]; # or [0,2

Re: Array/list transformations.

2005-12-26 Thread Larry Wall
On Tue, Dec 27, 2005 at 12:10:45AM -0500, Rob Kinyon wrote: : Creating an array whose positions are aliases for positions in another : array can be useful. How about : : my @s := @a[0,2,4] is alias; : : @a[2] = 3; # @s[1] == 3 : @s[1] = 4; # @a[2] == 4 : : The default slicing behavio