Re: [perl #34608] [PATCH] - fixedbooleanarray.pmc c90 declaration problem

2005-03-30 Thread Leopold Toetsch
Peter Sinnott <[EMAIL PROTECTED]> wrote: > Moving the declaration of s up to the top of the block so declarations > are grouped together and gcc2.x is happy. Thanks, applied. leo

Re: More Garbage Collection Issues

2005-03-30 Thread Leopold Toetsch
Nick Glencross <[EMAIL PROTECTED]> wrote: > Ok, now I understand. This is inspecting the C runtime stack (I think). > The Interpreter remembers the bottom address, and then when the time > comes, a routine runs the depth of the stack. Yes. Exactly. > The values on the stack are then checked whet

use less in perl6?

2005-03-30 Thread Yuval Kogman
Perl 6 has some more interesting capabilities for lexical scoped hinting of tradeoff preferences. For example: use less precision; # the default nums created in this scope are # lower precision floats use less cpu; # many places this can have a desired effect use l

Re: Parameter and trait questions - just how 'only' _is_ 'read-only'?

2005-03-30 Thread Thomas Sandlaß
Luke Palmer wrote: Unless the caller can't see the signature, as is the case with methods. [..] Again, this can't be done unless you know the signature. And in fact, we can't do type inference on methods unless we do type inference everywhere, which we can't do if we want an autoloader. This sound

RE: [Module::Build] Re: Test::META

2005-03-30 Thread Clayton, Nik
> On Tue, Mar 29, 2005 at 08:33:48PM -0500, Randy W. Sims wrote: > > A quickie sample implementation to add more meat. I didn't apply yet > > mainly because I'm wondering if we shouldn't bail and do a complete > > roll-back (eg. don't generate a Build script) if there are any failed > > require

Re: [Module::Build] Re: Test::META

2005-03-30 Thread Randy W. Sims
Clayton, Nik wrote: On Tue, Mar 29, 2005 at 08:33:48PM -0500, Randy W. Sims wrote: A quickie sample implementation to add more meat. I didn't apply yet mainly because I'm wondering if we shouldn't bail and do a complete roll-back (eg. don't generate a Build script) if there are any failed requir

[CVS ci] MMD 8 - dispatch on argument count

2005-03-30 Thread Leopold Toetsch
In the following snippet (from t/pmc/mmd.t) the two function calls dispatch to the correct subroutine: .namespace ["main"] .sub main @MAIN p("ok 1\n") p("-twice", "ok 2\n") .end .namespace [""] .sub p @MULTI(string) ... .sub p @MULTI(string, string) * the two multi subs "p" in the same na

Re: [Module::Build] Re: Test::META

2005-03-30 Thread Michael G Schwern
On Wed, Mar 30, 2005 at 06:12:37AM -0500, Randy W. Sims wrote: > Both. We could fail by default, but allow an option to force it to > ignore missing or conflicting dependencies: Duh. Why didn't I think of that? Of course!

Re: use less in perl6?

2005-03-30 Thread Aaron Sherman
On Wed, 2005-03-30 at 10:20 +0200, Yuval Kogman wrote: > Perl 6 has some more interesting capabilities for lexical scoped > hinting of tradeoff preferences. For example: > > use less precision; # the default nums created in this scope are > # lower precision floats > > use less

Re: use less in perl6?

2005-03-30 Thread Matt Fowles
Aaaron~ On Wed, 30 Mar 2005 08:48:55 -0500, Aaron Sherman <[EMAIL PROTECTED]> wrote: > On Wed, 2005-03-30 at 10:20 +0200, Yuval Kogman wrote: > > Perl 6 has some more interesting capabilities for lexical scoped > > hinting of tradeoff preferences. For example: > > > > use less precision; #

Re: use less in perl6?

2005-03-30 Thread Herbert Snorrason
On Wed, 30 Mar 2005 08:56:58 -0500, Matt Fowles <[EMAIL PROTECTED]> wrote: > On Wed, 30 Mar 2005 08:48:55 -0500, Aaron Sherman <[EMAIL PROTECTED]> wrote: > > use less syntax; > Back out the entire p6 grammar and put in lisp's instead... Huh. I suppose that's the only difference these days..

[CVS ci] MMD 11 - dispatch on PMC types

2005-03-30 Thread Leopold Toetsch
Please have a look at the tests in t/pmc/mmd.t More tests welcome, Thanks, leo

Re: Parameter and trait questions - just how 'only' _is_ 'read-only'?

2005-03-30 Thread Aaron Sherman
On Tue, 2005-03-29 at 16:00 -0700, Luke Palmer wrote: > Unless the caller can't see the signature, as is the case with methods. I need to understand this piece. In this code: class X { method meth() {...} } class Y is X { method meth() is

Re: Parameter and trait questions - just how 'only' _is_ 'read-only'?

2005-03-30 Thread Luke Palmer
Aaron Sherman writes: > On Tue, 2005-03-29 at 16:00 -0700, Luke Palmer wrote: > > > Unless the caller can't see the signature, as is the case with methods. > > I need to understand this piece. > > In this code: > > class X { > method meth() {...} > } > class Y is

Re: Parameter and trait questions - just how 'only' _is_ 'read-only'?

2005-03-30 Thread Larry Wall
On Wed, Mar 30, 2005 at 09:40:26AM -0700, Luke Palmer wrote: : There _is_ a way to do it, actually, but we need to really screw around : with what kinds of things are inferred. In the case: : : my $a; : $a.m(1); : : We assign the type "objects with an 'm' method that can take a single :

Re: cvs commit: parrot/t/pmc freeze.t

2005-03-30 Thread Nicholas Clark
On Wed, Mar 30, 2005 at 09:11:51AM +0200, Leopold Toetsch wrote: > Bernhard Schmalhofer <[EMAIL PROTECTED]> wrote: > > +void freeze(visit_info *info) { > > +IMAGE_IO *io = info->image_io; > > +io->vtable->push_integer(INTERP, io, PMC_int_val(SELF)); > > +STRING *

Re: Parameter and trait questions - just how 'only' _is_ 'read-only'?

2005-03-30 Thread Thomas Sandlaß
HaloO Luke, you wrote: No, I think I agree with you here. But what happens if you change you're second-to-last line to: my $a = foo(); $a.meth() = 8; Perl 6 is both a statically typed language and a dynamically typed language, and the problems that I am addressing are mostly about the dyna

[MSWin32] t/op/spawnw.t

2005-03-30 Thread Ron Blaschke
F currently fails on Windows. The reason is that the test expects the exit code in the higher byte of the termination status. In other words: set S1, 'perl -e "exit(123)"' set I1, 99 spawnw I1, S1 shr I2, I1, 8 print "return code: " p

Re: Parameter and trait questions - just how 'only' _is_ 'read-only'?

2005-03-30 Thread Aaron Sherman
On Wed, 2005-03-30 at 11:40, Luke Palmer wrote: > No, I think I agree with you here. But what happens if you change > you're second-to-last line to: > > my $a = foo(); > $a.meth() = 8; > > Perl 6 is both a statically typed language and a dynamically typed > language, and the problems th

Re: Parameter and trait questions - just how 'only' _is_ 'read-only'?

2005-03-30 Thread Thomas Sandlaß
Larry Wall wrote: I think it's perfectly fine for the compiler to make use of whatever information it has. The trick is to never make any unwarranted assumptions, such as "Nobody will ever add another class with an 'm' method." Er, isn't that not just the wrong way around? The point is to do the b

Re: Parameter and trait questions - just how 'only' _is_ 'read-only'?

2005-03-30 Thread Luke Palmer
Thomas Sandlaà writes: > And of course the builtin functionality and the packages available > from CPAN save the typical small scale programmer from extensive > declarations. But to use a complex module you have to read > documentation to get the idea to call .meth() in the first place. > And then

Re: Parameter and trait questions - just how 'only' _is_ 'read-only'?

2005-03-30 Thread Aaron Sherman
On Wed, 2005-03-30 at 13:17, Thomas Sandlaß wrote: > HaloO Luke, > > you wrote: > > No, I think I agree with you here. But what happens if you change > > you're second-to-last line to: > > > > my $a = foo(); > > $a.meth() = 8; > > > > Perl 6 is both a statically typed language and a dyn

Re: Parameter and trait questions - just how 'only' _is_ 'read-only'?

2005-03-30 Thread Aaron Sherman
On Wed, 2005-03-30 at 13:53, Luke Palmer wrote: > class CodeProxy { > has Code $.code is rw; > sub call ($a) { > $.code($a); > } > } > This is valid Perl 6, and anyone who says otherwise (because of type > signatures) is changing the Perl philosophy too

Re: Parameter and trait questions - just how 'only' _is_ 'read-only'?

2005-03-30 Thread Larry Wall
On Wed, Mar 30, 2005 at 12:05:12PM +0200, Thomas Sandlaß wrote: : If I understand you correctly the use statement is more like a : linker/loader directive than a compile time interface include? That is up to the module being used. "use" is a linker, but it's only required to link enough informati

Re: Parameter and trait questions - just how 'only' _is_ 'read-only'?

2005-03-30 Thread chromatic
On Wed, 2005-03-30 at 14:29 -0500, Aaron Sherman wrote: > What I do not think should be allowed (and I may be contradicting Larry > here, which I realize is taking my life in my hands ;) is violating the > compile-time view of the "static" type tree. That is, you can load an > object "foo" at run-

Pugs Q for the Parrot FAQ?

2005-03-30 Thread Nicholas Clark
Based on the wheat on IRC this evening, is this question/answer worth adding to the Parrot FAQ on parrotcode.org? Pugs is going great shakes - why not just toss Parrot and run Perl 6 on Pugs? Autrijus Tang, the lead on the Pugs project, notes that an *unoptimised* Parrot is already 30% faster tha

Re: Pugs Q for the Parrot FAQ?

2005-03-30 Thread Jeff Horwitz
On Wed, 30 Mar 2005, Nicholas Clark wrote: > Based on the wheat on IRC this evening, is this question/answer worth adding > to the Parrot FAQ on parrotcode.org? > > Pugs is going great shakes - why not just toss Parrot and run Perl 6 on Pugs? [snipped long response] and let's not forget bytecode

Re: Pugs Q for the Parrot FAQ?

2005-03-30 Thread Aaron Sherman
On Wed, 2005-03-30 at 14:58, Nicholas Clark wrote: > Based on the wheat on IRC this evening, is this question/answer worth adding > to the Parrot FAQ on parrotcode.org? > > Pugs is going great shakes - why not just toss Parrot and run Perl 6 on Pugs? > > Autrijus Tang, the lead on the Pugs projec

Re: Parameter and trait questions - just how 'only' _is_ 'read-only'?

2005-03-30 Thread Aaron Sherman
On Wed, 2005-03-30 at 14:57, chromatic wrote: > I certainly plan to continue to instrument code at runtime (and not just > really slushy, partially slushy, and permafrost compile time). That's FINE, and no one should stop you! What I was referring to was only the items that an interface definiti

Re: Parameter and trait questions - just how 'only' _is_ 'read-only'?

2005-03-30 Thread chromatic
On Wed, 2005-03-30 at 15:27 -0500, Aaron Sherman wrote: > Like I said, if you allow run-time munging of the type interfaces, then > you can't tell if this is valid or invalid: > > my X $a; > $a.m(1); > > you have to allow it always, regardless of the definition of X. In fact, > you c

Re: Parameter and trait questions - just how 'only' _is_ 'read-only'?

2005-03-30 Thread Thomas Sandlaß
Luke Palmer wrote: class CodeProxy { has Code $.code is rw; sub call ($a) { $.code($a); } } This is valid Perl 6, Hmm, a sub in a class? I guess that should be a method. OTOH a class is just a funny module, so might be OK. But that is the syntax realm. a

Re: Parameter and trait questions - just how 'only' _is_ 'read-only'?

2005-03-30 Thread Thomas Sandlaß
chromatic wrote: A compiler that assumes incorrectly and disallows programmers to do useful things because its holds those assumptions as precious is wrong -- especially in cases where even the programmer can't tell if code is valid or invalid until the program actually runs. Me neither. One should

Re: Parameter and trait questions - just how 'only' _is_ 'read-only'?

2005-03-30 Thread Thomas Sandlaß
Aaron Sherman wrote: No, that was most of the point. &foo did not declare a return type, and while my code was simplistic, we obviously cannot be certain what &foo might return in the general case. Sorry that I've spoiled that. But I wonder if it's just in the examples here on the list or a general

Re: Parameter and trait questions - just how 'only' _is_ 'read-only'?

2005-03-30 Thread Luke Palmer
Thomas Sandlaà writes: > Aaron Sherman wrote: > >No, that was most of the point. &foo did not declare a return type, and > >while my code was simplistic, we obviously cannot be certain what &foo > >might return in the general case. > > Sorry that I've spoiled that. But I wonder if it's just in the

Re: Parameter and trait questions - just how 'only' _is_ 'read-only'?

2005-03-30 Thread Luke Palmer
Thomas Sandlaà writes: > Luke Palmer wrote: > >class CodeProxy { > >has Code $.code is rw; > >sub call ($a) { > >$.code($a); > >} > >} > > > >This is valid Perl 6, > > Hmm, a sub in a class? I guess that should be a method. OTOH a > class is just a funny

Re: Parameter and trait questions - just how 'only' _is_ 'read-only'?

2005-03-30 Thread Luke Palmer
Aaron Sherman writes: > What I do not think should be allowed (and I may be contradicting > Larry here, which I realize is taking my life in my hands ;) is > violating the compile-time view of the "static" type tree. That sentence is getting pretty C++-derived-like, which Perl is hardly anymore.

Re: Parameter and trait questions - just how 'only' _is_ 'read-only'?

2005-03-30 Thread Luke Palmer
Aaron Sherman writes: > On Wed, 2005-03-30 at 13:53, Luke Palmer wrote: > > > class CodeProxy { > > has Code $.code is rw; > > sub call ($a) { > > $.code($a); > > } > > } > > > This is valid Perl 6, and anyone who says otherwise (because of type > > sig

Phalanx

2005-03-30 Thread Walter Goulet
Hi, Ok, so I've been trying to get started with testing Net-SSLeay for the Phalanx project. Now the problem I've been having is getting my arms around how to improve the coverage of the tests included with that module. It doesn't look like this module uses the t/ framework, rather a series of s

Re: t/dynclass failures due to using installed libs

2005-03-30 Thread Bob Rogers
From: Leopold Toetsch <[EMAIL PROTECTED]> Date: Mon, 28 Mar 2005 11:30:21 +0200 Bob Rogers <[EMAIL PROTECTED]> wrote: > ... If the prefix is disabled via > PARROT_TEST, this fixes the immediate problem: > [EMAIL PROTECTED]> PARROT_TEST=1 perl -Ilib t/dynclass/foo.t >

Re: [PROPOSAL] infix MMD operators

2005-03-30 Thread Bob Rogers
From: Leopold Toetsch <[EMAIL PROTECTED]> Date: Wed, 30 Mar 2005 08:57:55 +0200 Bob Rogers <[EMAIL PROTECTED]> wrote: > I guess I was hoping for access to a lower-level mechanism. FWIW, > Common Lisp is an example of a dynamic HLL that doesn't allow certain > ops to be overload

Re: Parameter and trait questions - just how 'only' _is_ 'read-only'?

2005-03-30 Thread Luke Palmer
Aaron Sherman writes: > > Please think carefully about how dynamic you want Perl 6 to be > > > Dynamic is good, but there's such a thing as too much of a good thing. > > > > We'd like Perl 6 to be as dynamic as Perl 5. > > We'd think that is impossible. Perl 5 had full control of the > run-ti

Re: Phalanx

2005-03-30 Thread Andy Lester
et started with testing Net-SSLeay for the Phalanx project. Now the problem I've been having is getting my arms around how to improve the coverage of the tests included with that module. It doesn't look like this module uses the t/ framework, rather a series of scripts in a given subdirectory

Re: Phalanx

2005-03-30 Thread Gabor Szabo
On Wed, 30 Mar 2005 21:45:23 -0600, Walter Goulet <[EMAIL PROTECTED]> wrote: > Hi, > > Ok, so I've been trying to get started with testing Net-SSLeay for the > Phalanx project. Now the problem I've been having is getting my arms > around how to improve the coverage of the tests included with that

Re: Phalanx

2005-03-30 Thread Walter Goulet
Gabor Szabo wrote: On Wed, 30 Mar 2005 21:45:23 -0600, Walter Goulet <[EMAIL PROTECTED]> wrote: Hi, Ok, so I've been trying to get started with testing Net-SSLeay for the Phalanx project. Now the problem I've been having is getting my arms around how to improve the coverage of the tests included

Re: [Module::Build] Re: Test::META

2005-03-30 Thread Randy W. Sims
Ken Williams wrote: On a related note, we should probably finally make the prerequisite-specification system treat the requirement level (requires vs. recommends vs. conflicts) and requirement scope (build vs. test vs. runtime) as completely orthogonal. Currently there's no such thing as build

[perl #34617] builtin namesspaces issue - t/pmc/object-meths_28.imc && t/pmc/object-meths_28.imc

2005-03-30 Thread via RT
# New Ticket Created by Peter Sinnott # Please include the string: [perl #34617] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=34617 > --- osname= linux osvers= 2.4.27-ti1211 arch= i386-linux-thread-multi cc= cc --

Re: Pugs Q for the Parrot FAQ?

2005-03-30 Thread Patrick R. Michaud
On Wed, Mar 30, 2005 at 08:58:59PM +0100, Nicholas Clark wrote: > Based on the wheat on IRC this evening, is this question/answer worth adding > to the Parrot FAQ on parrotcode.org? > > Pugs is going great shakes - why not just toss Parrot and run Perl 6 on Pugs? > [...] Beyond all that, there is

[perl #34618] [PATCH] lang/perl6/doc/overview.pod typos

2005-03-30 Thread via RT
# New Ticket Created by Offer Kaye # Please include the string: [perl #34618] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=34618 > Hi, The attached patch fixes some small typos in overview.pod This is my first patch, s

Re: [perl #34605] [PATCH] t/pmc/sys.t failure with MinGW32

2005-03-30 Thread Francois PERRAD
At 08:07 30/03/2005 +, you wrote: François" PERRAD <[EMAIL PROTECTED]> wrote: > --- data.pl.orig 2005-02-21 11:56:08.0 +0100 > +++ data.pl 2005-03-19 11:53:30.0 +0100 ^^^ Please provide one patch for #34605 and #34606, diffed from Parrot root directory one direc

Re: [Module::Build] Re: Test::META

2005-03-30 Thread Ken Williams
On Mar 30, 2005, at 4:53 PM, Randy W. Sims wrote: Should we completely open this up so that requires/recommends/conflicts can be applied to any action? install_recommends => ... testcover_requires => ... etc. I like it. But for some reason I find it a little scary. Doing this would require a lit

Re: Parameter and trait questions - just how 'only' _is_ 'read-only'?

2005-03-30 Thread Thomas Sandlaß
Luke Palmer wrote: Okay, now we're starting to talk past each other. I /think/ Thomas orignially suggested that we use type inference to determine whether to lvalue cast an argument or not, which is what I got all worked up about. Actually I was returning to the subject of co- or contravariance of

Re: [perl #34618] [PATCH] lang/perl6/doc/overview.pod typos

2005-03-30 Thread chromatic
On Wed, 2005-03-30 at 13:56 -0800, Offer Kaye wrote: > The attached patch fixes some small typos in overview.pod Hm, I think this file is very out of date, but it's a good patch fixing real typos and it's nice to close tickets early. > This is my first patch, so if I'm doing anything wrong, ple

Re: Parameter and trait questions - just how 'only' _is_ 'read-only'?

2005-03-30 Thread Chip Salzenberg
According to Luke Palmer: > [Perl 5] had to construct lvalues out of all arguments (for which > that made sense) because the sub might modify them. No, actually, that wasn't the reason. Perl 5 passes all values by implicit mutable reference because it's faster, not because it's better. I suspect

Re: Parameter and trait questions - just how 'only' _is_ 'read-only'?

2005-03-30 Thread Thomas Sandlaß
Thomas Sandlaà wrote: Any might just be a glb (greatest upper bound) of Int and Str, written Sorry that should read lub (least upper bound). Glb means greatest lower bound and is spelled Int&Str or all(Int,Str) in Perl6. -- TSa (Thomas SandlaÃ)

Re: Parameter and trait questions - just how 'only' _is_ 'read-only'?

2005-03-30 Thread Aaron Sherman
On Wed, 2005-03-30 at 17:09, Luke Palmer wrote: > Aaron Sherman writes: > > What I do not think should be allowed (and I may be contradicting > > Larry here, which I realize is taking my life in my hands ;) is > > violating the compile-time view of the "static" type tree. > > That sentence is ge

Re: Parameter and trait questions - just how 'only' _is_ 'read-only'?

2005-03-30 Thread chromatic
On Wed, 2005-03-30 at 18:35 -0500, Aaron Sherman wrote: > When the Perl 6 compiler sees: > > my X $a; > $a.m(1); > > What should it do? > > Options: > > * Accept the method call regardless of the definition of X > * Accept the method call if it matches the signature

Perl 6 Summary for 2005-03-07 through 2005-03-22 (resend)

2005-03-30 Thread Matt Fowles
Below is a resend of the most recent summary, it bounced when being sent to the perl6-announce list. Apologies to those who receive it twice, but I am told that the second read through provides interesting insights into subtle foreshadowing... Perl 6 Summary for 2005-03-07 through 2005-03-22 A

Re: [Module::Build] Re: Test::META

2005-03-30 Thread Michael G Schwern
On Wed, Mar 30, 2005 at 05:53:37PM -0500, Randy W. Sims wrote: > Should we completely open this up so that requires/recommends/conflicts > can be applied to any action? > > install_recommends => ... > testcover_requires => ... > etc. This sounds useful and solves a lot of problems at one sweep.