Auto generated methods (was Re:The S29 Functions Project)

2005-03-13 Thread Rod Adams
Larry Wall wrote: On Sun, Mar 13, 2005 at 01:15:52AM -0600, Rod Adams wrote: : =item multi sub cos (?Num) returns Num : : =item multi method Num::cos () returns Num It would be nice if we could just say the first implies the second. I guess what that effectively means is that even if you take the

Re: The S29 Functions Project

2005-03-13 Thread Rod Adams
Ashley Winters wrote: On Sun, 13 Mar 2005 23:42:41 -0600, Rod Adams <[EMAIL PROTECTED]> wrote: Ashley Winters wrote: For documentary purposes, can we make that $radians? multi sub cos (Num +$degrees) returns Num { return cos :radians($degrees * PI / 180); } my Num $x = cos :degrees(270);

Re: Call for p6ification: Algorithm::Dependency

2005-03-13 Thread Autrijus Tang
On Sun, Mar 13, 2005 at 09:32:52PM -0800, Darren Duncan wrote: > I can't promise a fully correct solution, since I'm not familiar with > this module yet, but I can at least do a large chunk of the > translation on this module, and do it quickly. -- Darren Duncan Wonderful, you++! :) Thanks, /Au

Re: The S29 Functions Project

2005-03-13 Thread Mark A. Biggar
Rod Adams wrote: Ashley Winters wrote: For documentary purposes, can we make that $radians? multi sub cos (Num +$degrees) returns Num { return cos :radians($degrees * PI / 180); } my Num $x = cos :degrees(270); I have changed the trig functions it to have an optional "base" argument. (I'm opti

Re: The S29 Functions Project

2005-03-13 Thread Ashley Winters
On Sun, 13 Mar 2005 23:42:41 -0600, Rod Adams <[EMAIL PROTECTED]> wrote: > Ashley Winters wrote: > >For documentary purposes, can we make that $radians? > > > >multi sub cos (Num +$degrees) returns Num { > >return cos :radians($degrees * PI / 180); > >} > > > >my Num $x = cos :degrees(270); >

Re: "The fate of reduce() in Python 3000"

2005-03-13 Thread Luke Palmer
A. Pagaltzis writes: > Hi all, > > so Guido is talking about his reasoning behind dropping lambda, > reduce(), filter() and map() in the next generation of Python: > > http://www.artima.com/weblogs/viewpost.jsp?thread=98196 > > [Prime quote: "I think having the two choices side-by-side just

Re: The S29 Functions Project

2005-03-13 Thread Rod Adams
Ashley Winters wrote: For documentary purposes, can we make that $radians? multi sub cos (Num +$degrees) returns Num { return cos :radians($degrees * PI / 180); } my Num $x = cos :degrees(270); I have changed the trig functions it to have an optional "base" argument. (I'm option to new names f

Re: Call for p6ification: Algorithm::Dependency

2005-03-13 Thread Darren Duncan
I can't promise a fully correct solution, since I'm not familiar with this module yet, but I can at least do a large chunk of the translation on this module, and do it quickly. -- Darren Duncan At 1:09 AM +1100 3/14/05, Adam Kennedy wrote: At the request of Autrijus, I've just checked the P5 cur

S29, pt1 is up

2005-03-13 Thread Rod Adams
I've posted what I have of S29 at http://www.rodadams.net/Perl/S29.pod http://www.rodadams.net/Perl/S29.html I'll leave it there until it reaches some more final state. Currently up is the "Numerical" section, covering the math related functions. I'd also appreciate a review of "Obsolete" to ma

Re: The S29 Functions Project

2005-03-13 Thread Ashley Winters
On Sun, 13 Mar 2005 18:03:20 -0800, Larry Wall <[EMAIL PROTECTED]> wrote: > On Sun, Mar 13, 2005 at 01:15:52AM -0600, Rod Adams wrote: > > : =item multi sub cos (?Num) returns Num > : > : =item multi method Num::cos () returns Num > > It would be nice if we could just say the first implies the se

Re: The S29 Functions Project

2005-03-13 Thread Rod Adams
Larry Wall wrote: On Sun, Mar 13, 2005 at 01:15:52AM -0600, Rod Adams wrote: : Plan of attack: : : I'm using a recent copy of Perl 5's perlfunc as a very rough template. : At some point, I'll drudge through the A's and S's to look for functions : new to Perl 6. I'll try not to make up too many n

Re: The S29 Functions Project

2005-03-13 Thread Uri Guttman
> "LW" == Larry Wall <[EMAIL PROTECTED]> writes: LW> I can tell you that I want both selects to be dead, but again, I'll LW> have to translate Perl 5 to something. But some of these things LW> can probably be translated to things like LW> Perl5DeprecatedEmulationDoNotUseEverEverA

Re: benchmark darcs with Perl

2005-03-13 Thread Michael G Schwern
On Mon, Mar 14, 2005 at 01:48:23AM +, Mark Stosberg wrote: > On 2005-03-14, Michael G Schwern <[EMAIL PROTECTED]> wrote: > > On Mon, Mar 14, 2005 at 01:25:16AM +, Mark Stosberg wrote: > >> I'm sorry-- I could have made this more productive by posting my own > >> Benchmark > >> code in the

Re: The S29 Functions Project

2005-03-13 Thread Larry Wall
On Sun, Mar 13, 2005 at 01:15:52AM -0600, Rod Adams wrote: : Barring objections, I'm going to attempt to compile a S29. That's great. It's one of the many things I haven't been getting around to doing... : Plan of attack: : : I'm using a recent copy of Perl 5's perlfunc as a very rough template

Re: benchmark darcs with Perl

2005-03-13 Thread Mark Stosberg
On 2005-03-14, Michael G Schwern <[EMAIL PROTECTED]> wrote: > On Mon, Mar 14, 2005 at 01:25:16AM +, Mark Stosberg wrote: >> I'm sorry-- I could have made this more productive by posting my own >> Benchmark >> code in the first place. Look what happens when cmpthese is used. The >> results look

Re: benchmark darcs with Perl

2005-03-13 Thread Michael G Schwern
On Mon, Mar 14, 2005 at 01:25:16AM +, Mark Stosberg wrote: > I'm sorry-- I could have made this more productive by posting my own Benchmark > code in the first place. Look what happens when cmpthese is used. The > results look nonsensical to me: Hmm. I guess the comparison isn't taking into a

Re: "The fate of reduce() in Python 3000"

2005-03-13 Thread Uri Guttman
> "AP" == A Pagaltzis <[EMAIL PROTECTED]> writes: AP> [Prime quote: "I think having the two choices side-by-side just AP> requires programmers to think about making a choice that's AP> irrelevant for their program; not having the choice streamlines AP> the thought process."] it just p

Re: benchmark darcs with Perl

2005-03-13 Thread Mark Stosberg
On 2005-03-13, Michael G Schwern <[EMAIL PROTECTED]> wrote: > > We can just check. > > $ perl -MBenchmark -wle 'timethis(10, sub { `perl -wle "rand for 1..100"` > })' > timethis 10: 11 wallclock secs ( 0.01 usr 0.00 sys + 8.64 cusr 0.14 csys = > 8.79 CPU) @ 1000.00/s (n=10) > > So the tim

Re: A possible solution for s?pintf

2005-03-13 Thread Larry Wall
On Sat, Mar 12, 2005 at 05:12:30PM -0800, Dave Whipp wrote: : Larry Wall wrote: : >I don't see that this buys us anything over just shortening "sprintf" : >to something shorter, like: : > : > print as '%03d %15s', $foo, $bar; : > : >And your argument list falls out naturally from making "as" a li

Re: A possible solution for s?pintf

2005-03-13 Thread Larry Wall
On Sat, Mar 12, 2005 at 10:26:51PM -0600, Rod Adams wrote: : You could easily write the above as : :say (($n1, $n2, $n3)».as('%d')).join; : : What I'm not certain about is if : :say ($n1, $n2, $n3)».as('%d').join; : : does the same thing, but I think it does. Yes, hyper only modifies o

Re: lists in string context

2005-03-13 Thread Juerd
Larry Wall skribis 2005-03-12 16:03 (-0800): > Just for the record, let me say that I expect the limit parameter > to split to be +$limit and not ?$limit. I think a number of seldom-used > options will go this route. Another consideration is whether the > parameter needs to be considered for MMD.

Re: "The fate of reduce() in Python 3000"

2005-03-13 Thread Juerd
A. Pagaltzis skribis 2005-03-13 23:40 (+0100): > [Prime quote: "I think having the two choices side-by-side just > requires programmers to think about making a choice that's > irrelevant for their program; not having the choice streamlines > the thought process."] > But, philosophical point of view

"The fate of reduce() in Python 3000"

2005-03-13 Thread A. Pagaltzis
Hi all, so Guido is talking about his reasoning behind dropping lambda, reduce(), filter() and map() in the next generation of Python: http://www.artima.com/weblogs/viewpost.jsp?thread=98196 [Prime quote: "I think having the two choices side-by-side just requires programmers to think about m

Call for participation: QA perl6 (or actually pugs)

2005-03-13 Thread Yuval Kogman
Hola! I'd just like to mention that the development methodologies Pugs goes by are those of the test driven school (and test development is golf driven ;-). Anywho, since it's interesting from a QA perspective, and it's perl (sort of), I thought it might be a good idea to try and lure you guys in

Pugs 6.0.11 Released!

2005-03-13 Thread Autrijus Tang
I am delighted to announce that Pugs 6.0.11 is now released. Download it from a CPAN near you, or from my home server: http://autrijus.org/dist/Perl6-Pugs-6.0.11.tar.gz SHA1 = 9abe4158791a5bc4ef3a23c31376c2bd5942c6f3 Special thanks to Yuval "nothingmuch" Kogman for his tireless QA effort

Re: benchmark darcs with Perl

2005-03-13 Thread Michael G Schwern
On Sun, Mar 13, 2005 at 09:04:03PM +0100, Francisco Olarte Sanz wrote: > I've checked the Benchmark module docs, and it's not too clear ( for me > ), > but I think they measure user/system time of your proccess. If you are > executing external code via system/backticks etc.. this is normal

Call for p6ification: Algorithm::Dependency

2005-03-13 Thread Adam Kennedy
At the request of Autrijus, I've just checked the P5 current version of Algorithm::Dependency into pugs, and now we need volunteers to P6ify it. Why this module as the next "porting a module" 1. Genuinely useful (for many things) 2. Very heavily tested, with tests accumulated for corner cases and

Re: [perl #34416] bug

2005-03-13 Thread anteusz
Leopold Toetsch via RT Ãrta: Anteusz @ Freemail . Hu <[EMAIL PROTECTED]> wrote: I found two bugs while trying to compile 0.1.2 Parrot is developing rapidly, please use always the CVS version for submitting bugs and patches. But as this one ... I added o => '.o'. ... is still

Re: benchmark darcs with Perl

2005-03-13 Thread Francisco Olarte Sanz
On Sunday 13 March 2005 00:43, Mark Stosberg wrote: > > There is also a benchmarking module cunningly named "Benchmark" which you > > should have a look at. > Now now, I mentioned in the message I looked at 'Benchmark' first and it > didn't work. I got the sense it might have only been timing the

Re: [RFC] adding skip option directly to plan()

2005-03-13 Thread Michael G Schwern
On Sun, Mar 13, 2005 at 02:55:29PM -0500, Geoffrey Young wrote: > sounds like a plan :) Yuk yuk. > I haven't look at the innards in a while, but do you think the > infrastructure is there in Test::Builder to support this now? the last time > I checked I had to jump through some hoops to get an

Re: [RFC] adding skip option directly to plan()

2005-03-13 Thread Geoffrey Young
Michael G Schwern wrote: > On Sat, Mar 12, 2005 at 11:41:08PM -0500, Geoffrey Young wrote: > >>well, this syntax doesn't exist in Test::More at the moment (though I >>probably should get around to a patch like I promised) - it's only in >>Apache-Test. > > > For the record, there's no reason wh

Re: [RFC] adding skip option directly to plan()

2005-03-13 Thread Michael G Schwern
On Sat, Mar 12, 2005 at 11:41:08PM -0500, Geoffrey Young wrote: > well, this syntax doesn't exist in Test::More at the moment (though I > probably should get around to a patch like I promised) - it's only in > Apache-Test. For the record, there's no reason why Test::More has to be the one to decla

Re: [perl #34420] TODO suggestion: clean Parrot's ABI

2005-03-13 Thread Matt Diephouse
Leopold Toetsch <[EMAIL PROTECTED]> wrote: > Jarkko Hietaniemi <[EMAIL PROTECTED]> wrote: > > I think this TODO item should actually be part of > > "#34325: [TODO] parrot release 0.2.0". > > Yep. My "steps towards 0.2.0..." isn't in any way ment to be complete. > Cleaning up the API and properly e

Re: [RFC] adding skip option directly to plan()

2005-03-13 Thread Geoffrey Young
Mark Stosberg wrote: > On 2005-03-13, Geoffrey Young <[EMAIL PROTECTED]> wrote: > >>nevertheless, what you are replying to was just a discussion about a feature >>that doesn't exist in the standard Test::More toolkit but was brought up >>because Apache-Test's plan() works a bit differently and t

Re: [RFC] adding skip option directly to plan()

2005-03-13 Thread Geoffrey Young
Ian Langworth wrote: > On 12.Mar.2005 11:41PM -0500, Geoffrey Young wrote: > > >>nevertheless, what you are replying to was just a discussion >>about a feature that doesn't exist in the standard Test::More >>toolkit but was brought up because Apache-Test's plan() works >>a bit differently and t

Re: [perl #34416] bug

2005-03-13 Thread Leopold Toetsch
Anteusz @ Freemail . Hu <[EMAIL PROTECTED]> wrote: > I found two bugs while trying to compile 0.1.2 Parrot is developing rapidly, please use always the CVS version for submitting bugs and patches. But as this one ... > I added o => '.o'. ... is still the same - no problem here. Strange an

Re: [RFC] adding skip option directly to plan()

2005-03-13 Thread Mark Stosberg
On 2005-03-13, Geoffrey Young <[EMAIL PROTECTED]> wrote: > > nevertheless, what you are replying to was just a discussion about a feature > that doesn't exist in the standard Test::More toolkit but was brought up > because Apache-Test's plan() works a bit differently and there are enough > people w

Re: [perl #34420] TODO suggestion: clean Parrot's ABI

2005-03-13 Thread Leopold Toetsch
Jarkko Hietaniemi <[EMAIL PROTECTED]> wrote: > I suggest that someone should use the tools/dev/parrot_api.pl Yes please. > I think this TODO item should actually be part of > "#34325: [TODO] parrot release 0.2.0". Yep. My "steps towards 0.2.0..." isn't in any way ment to be complete. Cleaning u

[CVS ci] work around dynclasses failure

2005-03-13 Thread Leopold Toetsch
I've committed a patch that currently fixes the t/dynclasses/*.t errors with gcc 3.3.3 and possibly others. While I wasn't able to fully track down the real problem, it seems that dynamic library loading doesn't stand a DOD run, which is artificially triggered by string_compare, when --gc-debug

Re: benchmark darcs with Perl

2005-03-13 Thread Tels
-BEGIN PGP SIGNED MESSAGE- Moin, On Sunday 13 March 2005 00:43, Mark Stosberg wrote: > On Sat, Mar 12, 2005 at 03:29:32PM -0800, Michael G Schwern wrote: > > Well, if you're just going to look at the wall clock, why use the > > shell? > > Err...because I forgot about the simple 'time' com

Re: benchmark darcs with Perl

2005-03-13 Thread Mark Stosberg
On Sat, Mar 12, 2005 at 03:29:32PM -0800, Michael G Schwern wrote: > > Well, if you're just going to look at the wall clock, why use the shell? Err...because I forgot about the simple 'time' command? > my $start_time = time; > `$bin diff 1/1 2>&1`; > my $end_time = time; >

[perl #34416] bug

2005-03-13 Thread via RT
# New Ticket Created by [EMAIL PROTECTED] # Please include the string: [perl #34416] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=34416 > Hi! I found two bugs while trying to compile 0.1.2 I solved the first one. I ha

[perl #34420] TODO suggestion: clean Parrot's ABI

2005-03-13 Thread via RT
# New Ticket Created by Jarkko Hietaniemi # Please include the string: [perl #34420] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=34420 > I suggest that someone should use the tools/dev/parrot_api.pl and clean up the bin