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
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
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
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
> 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
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
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
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!
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
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; #
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..
Please have a look at the tests in t/pmc/mmd.t
More tests welcome,
Thanks,
leo
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
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
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
:
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 *
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
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
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
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
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
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
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
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
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-
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
>
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
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
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
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
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
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
# 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
--
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
# 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
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
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
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
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
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
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Ã)
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
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
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
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.
58 matches
Mail list logo