SEND + MORE = MONEY (works now in pugs with junctions!)

2005-03-10 Thread Sam Vilain
Rod Adams wrote: And as one who recently proposed a way of getting Prolog like features in Perl (through Rules, not Junctions), I understand the appeal completely. Junctions are not the way to that goal. They are something different. > Taking multiple values at once is what junctions are all abo

Re: Parrot 0.1.2 with MinGW32 (some experimets)

2005-03-10 Thread Matt Diephouse
On Thu, 10 Mar 2005 22:23:07 +0100, Leopold Toetsch <[EMAIL PROTECTED]> wrote: > Matt Diephouse <[EMAIL PROTECTED]> wrote: > > > Some of these same tests are failing on debian, fedora, and freebsd > > (fresh checkouts). It looks like someone broke something. > > Release or current CVS? Current C

Re: Parrot 0.1.2 with MinGW32 (some experimets)

2005-03-10 Thread Leopold Toetsch
Matt Diephouse <[EMAIL PROTECTED]> wrote: > Some of these same tests are failing on debian, fedora, and freebsd > (fresh checkouts). It looks like someone broke something. Release or current CVS? leo

Problem with Readonly and Devel::Cover

2005-03-10 Thread Kevin Scaldeferri
Anyone seen this message with Readonly running under Devel::Cover: Invalid tie at (eval 22)[/usr/local/lib/perl5/site_perl/5.8.0/Readonly.pm:338] line 9 It's a little spooky... my tests used to be fine, but then I made a couple innocuous changes in one test file (changing log levels) and I star

Re: Junctions - feedback and desires

2005-03-10 Thread Luke Palmer
Rod Adams writes: > Dave Whipp wrote: > > >Rod Adams wrote: > > > >>I do not believe that you can create a 'lazy junction'. But I don't > >>recall the topic coming up before, so we'll have to wait for Damian > >>to come back unless someone else knows for certain. > > > > > >My understanding is t

Re: MMD as an object.

2005-03-10 Thread Rod Adams
David Storrs wrote: On Thu, Mar 10, 2005 at 02:22:20PM -0600, Rod Adams wrote: David Storrs wrote: On Wed, Mar 09, 2005 at 03:38:52PM -0600, Rod Adams wrote: use Foo; # from above, exports &bar is MMD::Random multi sub bar {...} Does this generate an error, since one could expect thi

Re: MMD as an object.

2005-03-10 Thread Bob Rogers
From: Leopold Toetsch <[EMAIL PROTECTED]> Date: Thu, 10 Mar 2005 10:53:11 +0100 Rod Adams <[EMAIL PROTECTED]> wrote: > It seems to me that there are several advantages to making a group of > multi with the same short name a single object, of type > MultiSub|MultiMethod, which int

Re: sub and method name overlap.

2005-03-10 Thread Jonathan Scott Duff
On Thu, Mar 10, 2005 at 03:27:23PM -0600, Rod Adams wrote: > Given: > >class Foo { > method Bar () {...}; >} > >sub Bar (Any $x) {...}; >my Foo $f; > >Bar $f; > > > Is that last line the same as: >&Bar.($f); > or >$f.Bar; I don't see how it can be anything bu

Re: MMD as an object.

2005-03-10 Thread David Storrs
On Thu, Mar 10, 2005 at 02:22:20PM -0600, Rod Adams wrote: > David Storrs wrote: > >On Wed, Mar 09, 2005 at 03:38:52PM -0600, Rod Adams wrote: > >> use Foo; # from above, exports &bar is MMD::Random > >> multi sub bar {...} > >> > >>Does this generate an error, since one could expect this particu

Re: Junctions - feedback and desires

2005-03-10 Thread Uri Guttman
> "RA" == Rod Adams <[EMAIL PROTECTED]> writes: >> >> My understanding is that all lists are conceptually >> lazy. "any(2..Inf)" is perfectly valid. >> >> RA> The list being fed into the junction can be lazy. But I believe that RA> the list gets iterated over completely in the

Re: Junctions - feedback and desires

2005-03-10 Thread Rod Adams
Dave Whipp wrote: Rod Adams wrote: I do not believe that you can create a 'lazy junction'. But I don't recall the topic coming up before, so we'll have to wait for Damian to come back unless someone else knows for certain. My understanding is that all lists are conceptually lazy. "any(2..Inf)"

Re: Parrot 0.1.2 with MinGW32 (some experimets)

2005-03-10 Thread psinnottie
Strangely all the tests ( well pyclass pycomplex and pyfunc so far ) pass on freebsd but do so very very slowly and parrot is eating memory like there is no tomorrow. Gets above 300meg during each of the tests. Not sure if this is new as its a long time since I tried parrot on freebsd. -O

Re: Junctions - feedback and desires

2005-03-10 Thread Rod Adams
Sam Vilain wrote: Rod Adams wrote: I do not believe that is possible. This is the "filtering" or "unification" behavior that people keep wanting junctions to have, which they do not. Aww! But what about all the great problems that could be expressed with them? I know of two languages that consi

Re: Junctions - feedback and desires

2005-03-10 Thread Dave Whipp
Rod Adams wrote: I do not believe that you can create a 'lazy junction'. But I don't recall the topic coming up before, so we'll have to wait for Damian to come back unless someone else knows for certain. My understanding is that all lists are conceptually lazy. "any(2..Inf)" is perfectly valid.

Re: Junctions - feedback and desires

2005-03-10 Thread Sam Vilain
Rod Adams wrote: I do not believe that is possible. This is the "filtering" or "unification" behavior that people keep wanting junctions to have, which they do not. Aww! But what about all the great problems that could be expressed with them? I know of two languages that consider this to be a co

Re: Parrot 0.1.2 with MinGW32 (some experimets)

2005-03-10 Thread chromatic
On Thu, 2005-03-10 at 16:36 -0500, [EMAIL PROTECTED] wrote: > Seems to have went all wrong between 20:35 and 21:35 on 9th(gmt). > With only the loosest understanding of stuff I think ( a little > knowledge can be a dangerous thing) it may be related to > > pmc.c > > revision 1.95 > date: 2005/0

Re: Parrot 0.1.2 with MinGW32 (some experimets)

2005-03-10 Thread psinnottie
> Some of these same tests are failing on debian, fedora, and freebsd > (fresh checkouts). It looks like someone broke something. Seems to have went all wrong between 20:35 and 21:35 on 9th(gmt). With only the loosest understanding of stuff I think ( a little knowledge can be a dangerous thing) i

Re: MMD as an object.

2005-03-10 Thread Rod Adams
Leopold Toetsch wrote: Rod Adams <[EMAIL PROTECTED]> wrote: It seems to me that there are several advantages to making a group of multi with the same short name a single object, of type MultiSub|MultiMethod, which internally holds references to the all the various routines that share that short

sub and method name overlap.

2005-03-10 Thread Rod Adams
Given: class Foo { method Bar () {...}; } sub Bar (Any $x) {...}; my Foo $f; Bar $f; Is that last line the same as: &Bar.($f); or $f.Bar; Does it matter if we change C< sub Bar > to C< multi sub Bar >? Is there some form of implicit multi sub that gets created to make C<

Re: Test::Builder->create

2005-03-10 Thread Michael Graham
> If script startup and module loading really is the culprit you could try the > mod_perl approach. > > Load all required modules and then for each script, fork a new perl process > which uses do "testxxx.t" to run each script. That's a good idea - thanks! I gave it a try and these are the times

Re: MMD as an object.

2005-03-10 Thread Rod Adams
David Storrs wrote: On Wed, Mar 09, 2005 at 03:38:52PM -0600, Rod Adams wrote: There lingers the case of: use Foo; # from above, exports &bar is MMD::Random multi sub bar {...} Does this generate an error, since one could expect this particular &bar to be Manhattan? Or does it assume Ran

Re: Junctions - feedback and desires

2005-03-10 Thread Rod Adams
Terrence Brannon wrote: I gave a talk on Perl 6 Junctions at the Thousand Oaks Perl Mongers meeting last night http://www.hcoop.net/~terry/perl/talks/p6-junctions/index.html and two questions/desires came out of it: 1: will it be possible to know which element of a junction is currently

Re: Parrot 0.1.2 with MinGW32 (some experimets)

2005-03-10 Thread Matt Diephouse
On Thu, 10 Mar 2005 18:33:00 +0100, Michal Jurosz <[EMAIL PROTECTED]> wrote: > Failed TestStatus Wstat Total Fail Failed List of Failed > > imcc/t/imcpasm/opt1.t 1 256491 2.04% 48 > t/dy

Re: Parrot 0.1.2 with MinGW32 (imcc/t/syn/file.t)

2005-03-10 Thread Michal Jurosz
I am sorry for mystification. Without my cheat 'imcc/t/syn/file.t' fail too. # --- imcc/t/syn/file.t --- imcc/t/syn/file.# Failed test (imcc/t/syn/file.t at line 388) # got: 'error:imcc:No such file or directory # in file 'temp.imc' line 2 # ' # expected: 'error:imcc:No such fi

Re: Adding linear interpolation to an array

2005-03-10 Thread David Storrs
> At 17:53 +0100 3/10/05, Thomas Sandlaß wrote: [request for clarification of 'covariant' and 'contravariant' usage] > >'Co' means together like in coproduction. And 'contra' is the opposite > >as in counterproductive. With instanciating parametric types the question > >arises how a subtype relatio

Re: Adding linear interpolation to an array

2005-03-10 Thread Doug McNutt
At 17:53 +0100 3/10/05, Thomas Sandlaß wrote: >'Co' means together like in coproduction. And 'contra' is the opposite >as in counterproductive. With instanciating parametric types the question >arises how a subtype relation between instanciating types propagates >to the template. E.g with Int <: Nu

Re: Adding linear interpolation to an array

2005-03-10 Thread Michele Dondi
On Thu, 10 Mar 2005, [UTF-8] Thomas SandlaÃ~_ wrote: 'Co' means together like in coproduction. And 'contra' is the opposite 'Streaming of digestive byproducts'? ;-) Sorry for the OT - couldn't resist! This pun fir

Parrot 0.1.2 with MinGW32 (some experimets)

2005-03-10 Thread Michal Jurosz
Failed TestStatus Wstat Total Fail Failed List of Failed imcc/t/imcpasm/opt1.t 1 256491 2.04% 48 t/dynclass/pybuiltin.t 5 1280 65 83.33% 1-2, 4-6 t/dynclass/pyclass.t

Re: Adding linear interpolation to an array

2005-03-10 Thread Thomas SandlaÃ
HaloO Luke, you wrote: The words 'covariant' and 'contravariant' in this context seem like voodoo math. Please explain what you mean. 'Co' means together like in coproduction. And 'contra' is the opposite as in counterproductive. With instanciating parametric types the question arises how a subtyp

Re: MMD as an object.

2005-03-10 Thread Miroslav Silovic
[EMAIL PROTECTED] wrote: What about multi subs? They can be defined everywhere. Given: multi sub *foo(A $a, B $b) {...} Is this something like: %globals{"foo"} --> MultiSub{"foo_A_B" => Sub, ...} What about a not so global multi: multi sub foo(A $a, B $b) {...} Thanks for clarifying, leo Uh

Junctions - feedback and desires

2005-03-10 Thread Terrence Brannon
I gave a talk on Perl 6 Junctions at the Thousand Oaks Perl Mongers meeting last night http://www.hcoop.net/~terry/perl/talks/p6-junctions/index.html and two questions/desires came out of it: 1: will it be possible to know which element of a junction is currently being used? E.g.:

Re: some misc Perl 6 questions

2005-03-10 Thread Thomas Sandlaß
Larry Wall wrote: That's...sick... I love it. *Please* don't tell Damian. Well there are some people who consider it quite sane :) http://www.cduce.org/papers/icalp04.pdf Abstract: This paper studies the problem of matching sequences against regular expressions in order to produce structured val

Re: MMD as an object.

2005-03-10 Thread David Storrs
On Wed, Mar 09, 2005 at 03:38:52PM -0600, Rod Adams wrote: > There lingers the case of: > >use Foo; # from above, exports &bar is MMD::Random > >multi sub bar {...} > > Does this generate an error, since one could expect this particular &bar > to be Manhattan? Or does it assume Rando

Re: Regarding status of Parrot and pure perl Perl6 compiler

2005-03-10 Thread Markus Laire
Millsa Erlas wrote: What is the current status of the development of the Parrot and the Perl 6 compiler written in Perl? I hope that producing a Perl 6 compiler written in Perl 6 and the Parrot VM is still a high priority and is being actively developed as the premier compiler and VM for the Per

Re: Test::Builder->create

2005-03-10 Thread Fergal Daly
On Tue, Mar 08, 2005 at 10:11:09PM -0500, Michael Graham wrote: > > > > Would this make it possible to run many test scripts (each with its own > > > plan) within the same perl process? 'Cos that would be nifty. > > > > Yes. Though beyond testing testing libraries I don't know why you'd want to

Re: Argument Patterns

2005-03-10 Thread Leopold Toetsch
Luke Palmer <[EMAIL PROTECTED]> wrote: > Leopold Toetsch writes: >> All infix operators are multi subs. I can't imagine that we want to pay >> the penalty for simple operations like: >> >> $a = $b + $c >> >> to inspect the values of operands, constraints, rules and what not. > Having written se

Re: MMD as an object.

2005-03-10 Thread Leopold Toetsch
Rod Adams <[EMAIL PROTECTED]> wrote: > It seems to me that there are several advantages to making a group of > multi with the same short name a single object, of type > MultiSub|MultiMethod, which internally holds references to the all the > various routines that share that short name. Discussion

Re: [perl #33103] Subclass op & subclass naming

2005-03-10 Thread Leopold Toetsch
Simon Glover <[EMAIL PROTECTED]> wrote: > ... However, if we > want to create an anonymous subclass, using the 2-argument form of the > subclass op, then we hit a problem -- the code: > newclass P0, "City" > subclass P1, P0 > newclass P2, "State" > subclass P3, P2 > en

Re: MMD as an object.

2005-03-10 Thread Miroslav Silovic
[EMAIL PROTECTED] wrote: It would behave like a tied sub (or method), with a .dispatch method to decide which of the contained routines should be called this particular time. Manhattan would be the default. However, one can override the dispatch logic; implementing Luke's Patterns idea, for exa

RFC: general feedback on module port

2005-03-10 Thread Darren Duncan
If any of you are willing, I would appreciate any general feedback on my first complete module port to Perl 6, including test suite, particularly if any parts don't look like proper Perl 6. I haven't tried executing it yet, since Pugs lacks some features. But it will be easier on them if what t

[perl #34394] [TODO] implement the splice vtable in *PMCArrays

2005-03-10 Thread via RT
# New Ticket Created by Leopold Toetsch # Please include the string: [perl #34394] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=34394 > The splice opcode has the functionality of the perl5 function, so that should be ra

Re: [perl #34391] [TODO] thr-primes.imc should not use PerlUndef

2005-03-10 Thread Leopold Toetsch
Bernhard Schmalhofer <[EMAIL PROTECTED]> wrote: > Hi, > the example 'thr-primes.imc' should not use the PerlUndef PMC, as the > Perl* PMCs are being moved into 'dynclasses'. > Replacing the PerlUndef PMC with the standard Undef PMC mostly works. > However, after 499 is found as a prime, an infin

aggregate clone vtable

2005-03-10 Thread Leopold Toetsch
- Array, PerlArray, Hash, PerlHash clone is a deep copy - {Fixed,Resizable}PMCArray is a shallow copy The deep copy of Array and Hash breaks (infinite recursion) with self-referential structures. I think the deep copy should be a shallow copy. Deep copy can always be done in a safe way by freeze/