Re: Punie

2005-07-12 Thread Autrijus Tang
On Mon, Jul 11, 2005 at 11:43:55PM -0700, Allison Randal wrote: > >As Schwern will attest, Perl 1 is a quite complicated language, with > >nullary, unary, binary and ternary functions, arrays, hashes, pattern > >matches, transliteration, format, loop control and labels. > > As a test case for the

Re: Possible bug calculating dominators

2005-07-12 Thread Curtis Rawls
On 7/5/05, Leopold Toetsch <[EMAIL PROTECTED]> wrote: > > On Jul 5, 2005, at 8:50, Curtis Rawls wrote: > > > > > I seem to have come across a bug in the compute_dominators() algorithm > > with the following PIR: > > It's not unlikely that there are bugs in that part of imcc. It was > contributed

Re: DBI v2 - The Plan and How You Can Help

2005-07-12 Thread Dean Arnold
RE: Placeholders: since DBIv1 already supports both forms of PH's, I see no reason to deprecate or abandon either form. Furthermore, to my knowledge, none of (ODBC, JDBC, ADO.NET) has abandonded or deprecated the ? form, so I don't see the need for DBI to. RE: LOBs and "SQL Parse Trees": having r

Re: User-defined infix subs/methods?

2005-07-12 Thread Autrijus Tang
On Sat, Jul 09, 2005 at 03:58:45PM -0700, Larry Wall wrote: > It should take a little more effort to mess with the minds of > unsuspecting modules, so maybe the standard syntax is cloned out of > *STANDARD_PERL_6 or some such scary package name. It's the default for > starting all require-like Per

Raw bytes in perl6

2005-07-12 Thread David Formosa \(aka ? the Platypus\)
How do we intend to manipulate raw binary in Perl6? Perl5's use bytes; pragma is rather poor (forcing all strings to be raw in its scope or requiring do {use bytes; ...} type tricks to deal with them) and now Perl6 has real typing perhaps it would be more usefull to have a bytestring type (or and

Re: DBI v2 - The Plan and How You Can Help

2005-07-12 Thread Dean Arnold
BTW: If you need a list of DBD's meeting said requirement, let me know, I just pulled one down. Sure, send it over. [ ] DBD-ADO-2.94.tar.gz 31-Jan-2005 02:4041k GZIP compressed docume> [ ] DBD-ASAny-1.13.tar.gz 31-Oct-2003 15:0030k GZIP compressed docume> [ ] DBD-Amazon-

Re: Devel::Cover Problem: testing || for a default value.

2005-07-12 Thread Michael G Schwern
On Tue, Jul 12, 2005 at 07:45:35AM +, Smylers wrote: > I can see why having 'inline' directives specifically for Devel::Cover > could be seen as ugly, but if instead they are general-purpose > assumptions then it's obviously better to have them next to the code > that's relying on the assumptio

Re: Devel::Cover Problem: testing || for a default value.

2005-07-12 Thread Smylers
Michael G Schwern writes: > "my $foo = $p || $q" is not boolean. I'm not even sure you can call > it "pseudo-boolean" without understanding the surrounding code. How > do you know that $q can never be false? So we want some way of annotating the code which will let Devel::Cover know that you're

Re: AnnoCPAN and a wiki POD idea

2005-07-12 Thread Smylers
Ivan Tubert-Brohman writes: > I'm happy to listen to your suggestions; AnnoCPAN is a work in > progress and I'm still adding features and fixing bugs. Thanks Ivan for your work on this. > I'm also considering the possibility of sending automated emails, > similar to what rt.cpan.org does. Howeve

Re: AnnoCPAN and a wiki POD idea

2005-07-12 Thread Michael G Schwern
On Tue, Jul 12, 2005 at 07:37:05AM +, Smylers wrote: > Opt-out (or no-option) would irritate far too many people (not > necessarily rationally, but it would). But people can only opt in if > they know it exists to opt in to. Perhaps you could send one mail once, > the first time each author h

WTF? - Re: method calls on $self

2005-07-12 Thread Juerd
Larry Wall skribis 2005-07-11 18:29 (-0700): > is that we simply outlaw .foo notation at *compile* time in those > scopes where we know (at compile time) that $_ and $?SELF diverge. > In such a scope you *must* specify $_ or $?SELF (or equivalent). What? That makes having a default at

Re: WTF? - Re: method calls on $self

2005-07-12 Thread Yuval Kogman
I feel a "me too" post is in order. I've written code that is 2-3 levels of nested given/when in a method of an object that wasn't the topic. I did not feel confused at all, juggling .foo and ./foo, which are visually distinct, and different to type. They convey a big difference of meaning, even

Re: WTF? - Re: method calls on $self

2005-07-12 Thread Aankhen
On 7/12/05, Juerd <[EMAIL PROTECTED]> wrote: > [snip] > Disallowing .method here means a huge step back in time. Back to > $_.method or $object.method. > [snip] I agree with what is being said here. `.method` is a great way to eliminate a lot of repetitive, tedious typing. Surely there is a viab

Re: Test::Cmd -- Recommended?

2005-07-12 Thread Nik Clayton
Ian Langworth wrote: On 7/8/05, James E Keenan <[EMAIL PROTECTED]> wrote: One other curiosum: As a result of my Phalanx work, I've gotten in the habit of using File::Temp to create 'anonymous' directories and files in which to conduct testing. This is one of the many features of Test::Cmd,

What do use and require evaluate to?

2005-07-12 Thread Ingo Blechschmidt
Hi, what do use and require evaluate to? S06 suggests it's probably some kind of Module object: The result of a use statement is a (compile-time) object that also has an .assuming method, allowing the user to bind parameters in all the module's subroutines/methods/etc. si

Re: Punie

2005-07-12 Thread Leopold Toetsch
Allison Randal wrote: I'd like to add Punie to the Parrot repository. Great. And for more fun I've created the basics of a NCI interface [1] for ast functions. Heavily underdocumented and unfinished (as of an hour hacking time ;-), but maybe someone takes it over and continues it. It needs t

Re: Punie

2005-07-12 Thread Leopold Toetsch
Leopold Toetsch wrote: needs trunk rev 8598 for some added NCI signatures in src/call_list.txt. or branches/leo-ctx5 r8599. leo

Re: Devel::Cover Problem: testing || for a default value.

2005-07-12 Thread mjcarman
David Golden wrote: > > I think this is a coverage vs correctness distinction. The idea that > I was trying to convey is that while these expressions use a boolean > operator for a shortcut, they aren't really about truth vs. falsity > of the overall expression, *except* when they are being used

Re: MML dispatch

2005-07-12 Thread Mark Reed
On 2005-07-11 23:46, "Damian Conway" <[EMAIL PROTECTED]> wrote: > 3. Work out the Manhattan distance from the argument list to each >variant's parameter list. OK, sorry if I missed this in an earlier discussion. For purposes of calculating this Manhattan distance, I gather that we're

Re: Devel::Cover Problem: testing || for a default value.

2005-07-12 Thread Shlomi Fish
On Monday 11 July 2005 23:17, Michael G Schwern wrote: > On Mon, Jul 11, 2005 at 07:38:57PM +0300, Yuval Kogman wrote: > > > So what should I do to eliminate it? > > > > Maybe Just Nothing > > > > The issue is that you can't special case get_current_coords to be > > truish, as far as Devel::Cover i

Re: MML dispatch

2005-07-12 Thread TSa (Thomas Sandlaß)
Mark Reed wrote: And one more dumb question: why is it that the L[1] metric is superior to the L[2] metric for this purpose? I am also interested in the rational behind the approach to manage MMD my means of a metric instead of a partial order on the types. Metric is a geometric concept which i

Re: MML dispatch

2005-07-12 Thread TSa (Thomas Sandlaß)
Damian Conway wrote: This is a much less dwimmy solution than Yuval's or Luke's, but it has the advantage that those eight steps reduce to eight words: Unique least-inherited most-specialized match, or default Do I read this correctly as dispatching partly in the class hierarchy and partly

Re: How to write a self.pm (Re: method calls on $self)

2005-07-12 Thread TSa (Thomas Sandlaß)
Autrijus Tang wrote: The compiler, in turn inspect whether there's an bound $_ in scope with $?SELF set. It is not trivial, because this should work: sub baz (&c) { c() } method foo { baz { .bar } } # $_ is free in inner closure But this needs to fail: sub baz (&c) { c(1) }

Re: MML dispatch

2005-07-12 Thread Mark Reed
On 2005-07-12 12:22, "TSa (Thomas Sandlaß)" <[EMAIL PROTECTED]> wrote: > I am also interested in the rationale behind the approach to manage MMD > my means of a metric instead of a partial order on the types. > Metric is a geometric concept which in my eyes doesn't fit type > theory. The geometri

Re: What do use and require evaluate to?

2005-07-12 Thread Gaal Yahas
On Tue, Jul 12, 2005 at 12:15:30PM +, Ingo Blechschmidt wrote: > In Perl 5, %INC maps the partial path names of the modules > loaded to their absolute ones. What should the keys and values > of %*INC be in Perl 6? Conceptually, the Perl 5 %INC maps from what to which. It also imposes

Re: MML dispatch

2005-07-12 Thread TSa (Thomas Sandlaß)
Mark Reed wrote: On 2005-07-12 12:22, "TSa (Thomas Sandlaß)" <[EMAIL PROTECTED]> wrote: I am also interested in the rationale behind the approach to manage MMD my means of a metric instead of a partial order on the types. Metric is a geometric concept which in my eyes doesn't fit type theory.

[perl #36520] TODO: Steal Good Ideas from Dan

2005-07-12 Thread via RT
# New Ticket Created by Will Coleda # Please include the string: [perl #36520] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=36520 > Someone should go through Dan's blog and convert all the ideas (esp. from the WCB seri

Re: Punie

2005-07-12 Thread Bernhard Schmalhofer
Autrijus Tang schrieb: If the goal is to demonstrate the capability of the upcoming expression parser and minimal AST, I think "bc", the arbitrary precision calculator language, is a good candidate. Indeed it is. The nice thing about 'bc' is that is fairly simple, but still has variables and

Re: Punie

2005-07-12 Thread Allison Randal
On Jul 12, 2005, at 0:37, Autrijus Tang wrote: That's cool. In that case I'll commit the test suite from perl-1.0_16 as TODO tests to the Punie tree, if that's okay with you. :) Most welcome. I'm following a naming convention in the t/ directory of changing the original "io.print"-style file

Re: MML dispatch

2005-07-12 Thread Larry Wall
On Tue, Jul 12, 2005 at 08:13:22PM +0200, "TSa (Thomas Sandlaß)" wrote: : Actually it's a pitty, that the multi method call syntax isn't as : rich as the single method call syntax where we have .?method, .+method : and .*method. Something like (Snoopy, Mr_PotatoHead, HopeDiamond).*foo : doesn't exi

Re: What do use and require evaluate to?

2005-07-12 Thread Larry Wall
On Tue, Jul 12, 2005 at 12:15:30PM +, Ingo Blechschmidt wrote: : Hi, : : what do use and require evaluate to? : : S06 suggests it's probably some kind of Module object: : The result of a use statement is a (compile-time) object that also has : an .assuming method, allowing

Re: Raw bytes in perl6

2005-07-12 Thread Larry Wall
On Tue, Jul 12, 2005 at 04:53:49AM -, David Formosa (aka ? the Platypus) wrote: : How do we intend to manipulate raw binary in Perl6? Perl5's use : bytes; pragma is rather poor (forcing all strings to be raw in its : scope or requiring do {use bytes; ...} type tricks to deal with them) : and

Need to talk to an EU patent attorney

2005-07-12 Thread Michael G Schwern
Barbie's journal, via Ovid, made me aware of patent EP1170667 "Software Package Verification" granted last month in the EU. http://gauss.ffii.org/PatentView/EP1170667 It appears to patent basic software testing frameworks. There is a nine month window to oppose this patent. I believe Test::Ha

Re: User-defined infix subs/methods?

2005-07-12 Thread Larry Wall
On Tue, Jul 12, 2005 at 05:27:48PM +0800, Autrijus Tang wrote: : On Sat, Jul 09, 2005 at 03:58:45PM -0700, Larry Wall wrote: : > It should take a little more effort to mess with the minds of : > unsuspecting modules, so maybe the standard syntax is cloned out of : > *STANDARD_PERL_6 or some such sc

Mobilizing PM groups for parrot..

2005-07-12 Thread Will Coleda
Anyone have any ideas on how you might harness a PM group to work on parrot? (Resending from correct account)

Re: Hackathon notes

2005-07-12 Thread Larry Wall
On Thu, Jul 07, 2005 at 06:37:58PM +0800, Autrijus Tang wrote: : * A closure form of `but` is desugared into a `do given` block that : eliminates the need of returning $_ explicitly. So those two forms : are equivalent: : : my $foo = Cls.new but { : .attr = 1; : }; : : my

Re: Raw bytes in perl6

2005-07-12 Thread Yuval Kogman
On Tue, Jul 12, 2005 at 13:55:56 -0700, Larry Wall wrote: > On the other hand, if the basic Str type is unwilling to take on the > burden of being parameterized, we could generate all our funny string > types by mapping a string name to an array declaration. > > my Str $foo is Array of byte;

Re: Need to talk to an EU patent attorney

2005-07-12 Thread Adrian Howard
On 12 Jul 2005, at 22:00, Michael G Schwern wrote: Barbie's journal, via Ovid, made me aware of patent EP1170667 "Software Package Verification" granted last month in the EU. http://gauss.ffii.org/PatentView/EP1170667 [snip] Oh for f**k's sake :-( Don't know any patent lawyers myself, but it

Re: Need to talk to an EU patent attorney

2005-07-12 Thread Adrian Howard
On 12 Jul 2005, at 23:07, Adrian Howard wrote: [snip] Don't know any patent lawyers myself, but it might be worth dropping a line to one or more of: http://www.nosoftwarepatents.com/en/m/about/contact.html http://fsfeurope.org/ [snip] http://www.eurolinux.org/ also might be worth as

Re: Need to talk to an EU patent attorney

2005-07-12 Thread Tels
-BEGIN PGP SIGNED MESSAGE- Moin, On Tuesday 12 July 2005 23:00, Michael G Schwern wrote: > Barbie's journal, via Ovid, made me aware of patent EP1170667 "Software > Package Verification" granted last month in the EU. > http://gauss.ffii.org/PatentView/EP1170667 > > It appears to patent ba

Re: Mobilizing PM groups for parrot..

2005-07-12 Thread Allison Randal
On Jul 12, 2005, at 13:51, Will Coleda wrote: Anyone have any ideas on how you might harness a PM group to work on parrot? Harness them to do what? Write tests? Clean up documentation? There's certainly precedent (Phalanx), but you need a bunch of small, achievable goals. Allison

Re: How to write a self.pm (Re: method calls on $self)

2005-07-12 Thread Larry Wall
On Tue, Jul 12, 2005 at 12:36:23PM +0800, Autrijus Tang wrote: : On Mon, Jul 11, 2005 at 09:04:54PM -0700, Larry Wall wrote: : > On Tue, Jul 12, 2005 at 10:17:01AM +0800, Autrijus Tang wrote: : > : On Mon, Jul 11, 2005 at 06:29:28PM -0700, Larry Wall wrote: : > : The obvious thought is to have yet

Re: Mobilizing PM groups for parrot..

2005-07-12 Thread Will Coleda
That was kind of my point, yes. =-) Hey, Allison - you drafted up the project plan for TPF grant for parrot, neh? Are you the defacto Project Manager for parrot? Or is that position unfilled? On Jul 12, 2005, at 6:56 PM, Allison Randal wrote: On Jul 12, 2005, at 13:51, Will Coleda wrote

Re: Devel::Cover Problem: testing || for a default value.

2005-07-12 Thread David Golden
[EMAIL PROTECTED] wrote: I respectfully disagree. I think you're focusing too much on the low-level behavior of || returning one of its operands. That behavior makes Perl's syntax flexible and a little ambiguous. Because Perl doesn't make a distinction between "assign with a default value" and

Re: DBI v2 - The Plan and How You Can Help

2005-07-12 Thread Sam Vilain
Dean Arnold wrote: RE: LOBs and "SQL Parse Trees": having recently implemented LOB support for a JDBC driver (and soon for a DBD), I can assure you that SQL parse trees are unneeded to support them. For databases Great! Perhaps you can shed some light on how to do it for this, then. SQL comma

HTTP::Recorder

2005-07-12 Thread Ian Langworth
I'd like to improve HTTP::Recorder. I've contacted Linda Julien (http://search.cpan.org/~leira/) via her CPAN email address, but I've received no response. The module hasn't been touched in over a year and every RT ticket seems to have gone unanswered (http://rt.cpan.org/NoAuth/Bugs.html?Dist=HTTP-

Re: Need to talk to an EU patent attorney

2005-07-12 Thread Sébastien Aperghis-Tramoni
Tels wrote: On Tuesday 12 July 2005 23:00, Michael G Schwern wrote: Barbie's journal, via Ovid, made me aware of patent EP1170667 "Software Package Verification" granted last month in the EU. http://gauss.ffii.org/PatentView/EP1170667 It appears to patent basic software testing frameworks.

Re: HTTP::Recorder

2005-07-12 Thread Michael G Schwern
On Tue, Jul 12, 2005 at 07:35:40PM -0400, Ian Langworth wrote: > I'd like to improve HTTP::Recorder. I've contacted Linda Julien > (http://search.cpan.org/~leira/) via her CPAN email address, but I've > received no response. The module hasn't been touched in over a year > and every RT ticket seems

Re: Raw bytes in perl6

2005-07-12 Thread Yuval Kogman
On Wed, Jul 13, 2005 at 00:46:49 +0300, Yuval Kogman wrote: > Perhaps the most interesting aspect of the string-is-a-list mindset > is that Parsec can parse any list of crap into any structured crap. > It's only affinity towards real strings and characters is the > builtin library of useful rules.

Re: Raw bytes in perl6

2005-07-12 Thread Sam Vilain
Yuval Kogman wrote: By the way, a nice use case for using the rules engine could be "parsing" a stream of SAX events into a structure... XML::Simple in perl6 could be really as simple as it sounds =) Can anyone see this being retrofitted on top of current rules semantics? How does PGE relate to t

Perl 6 Summary for 2005-07-05 through 2005-07-12

2005-07-12 Thread Matt Fowles
Perl 6 Summary for 2005-07-05 through 2005-07-12 All~ Welcome to another summary from the frog house. A house so green it can be seen from outerspace (according to google earth). Perl 6 Compiler Building Pugs Workaround Sam Vilain posted a useful work around to the error "err

Re: Devel::Cover Problem: testing || for a default value.

2005-07-12 Thread James E Keenan
Michael G Schwern wrote: The other examples in the ticket play out the same way: bless {}, ref $class || $class; I encountered the coverage problem inherent in this code in the constructor of a module whose maintenance I recently assumed. (For that matter, I could have encountered

Re: Testing a Script Distributed with a Module

2005-07-12 Thread James E Keenan
James E Keenan wrote: Michael G Schwern wrote: Oh yeah, forgot about that. Its not in your path so you have to give it the full path to the program. The directories in blib have no relation to where the file came from. Non-binary executables always go into blib/script. Binary executabl

Re: 5.004_xx in the wild?

2005-07-12 Thread James E Keenan
Michael G Schwern wrote: On Mon, Jul 04, 2005 at 03:59:23PM -0400, James E Keenan wrote: I've only developed in 5.6+ environments. Can anyone provide a link to what I would have to do to make my modules compatible with 5.4 and/or 5.5? Step one: Install 5.4.5 and 5.5.4. Step two: Try out

Re: Devel::Cover Problem: testing || for a default value.

2005-07-12 Thread Michael G Schwern
On Tue, Jul 12, 2005 at 10:44:02PM -0400, James E Keenan wrote: > >The other examples in the ticket play out the same way: > > > > bless {}, ref $class || $class; > > > > I encountered the coverage problem inherent in this code in the > constructor of a module whose maintenance I recently ass

Re: 5.004_xx in the wild?

2005-07-12 Thread Michael G Schwern
On Tue, Jul 12, 2005 at 10:52:44PM -0400, James E Keenan wrote: > > qr// is the only > >thing I really miss. > > > > > After spending/wasting a couple of hours trying to do regex tests with > just 'ok', I agree. like() takes a string. like( $foo, qr/regex/ ); # same like( $foo

partcl accelerator

2005-07-12 Thread Will Coleda
After a patch to prebuild PGE/Glob.pir and use the precompiled bytecode, I'm seeing the following timings with "hello.tcl" in partcl's examples: CokeZero:~/research/parrot/languages/tcl/examples wcoleda$ time ../..//../parrot ../tcl.pbc hello.tcl Hello World real0m0.313s user0m0.1

Re: Perl 6 Summary for 2005-07-05 through 2005-07-12

2005-07-12 Thread Damian Conway
Matt Fowles summarized: Method Call on Invocant Now " ./method "is gone, and " .method " only works when " $_ =:= $?SELF ". Important qualification: Within a method or submethod, C<.method> only works when C<$_ =:= $?SELF>. C<.method> is perfectly lega