Re: How to pass a ref from a language with no refs

2006-09-27 Thread Mark Stosberg
Mark Stosberg wrote: > > When Perl 5 has references and Perl 6 doesn't, I don't know what to > expect to when I need to pass a hash reference to a Perl 5 routine. > > Such details make no appearance currently in the Perl 6 spec, but I'm > trying to gather them on

Re: Common Serialization Interface

2006-09-25 Thread Mark Stosberg
Brad Bowman wrote: > > Both Data::Dumper and Storable provide hooks to customize serialization > ($Data::Dumper::Freezer|Toaster, STORABLE_freeze|_thaw). > Other modules like YAML and Clone could also possibly reuse a > common state marshalling interface. > > Is there some common element to this

Re: Good list-flattening question.

2006-09-21 Thread Mark Stosberg
Mark J. Reed wrote: > Ok, I dkimmed through the synopses again and didn't see this offhand. > > If I have two arrays @a and @b and I wish to create a two-element list > out of them - a la Perl5 ([EMAIL PROTECTED], [EMAIL PROTECTED]) - what's the > correct way to do > that in Perl6? If it's stil

Re: the CGI.pm in Perl 6 (create a design on the wiki)

2006-09-19 Thread Mark Stosberg
Juerd wrote: > > It does make sense to have a single toolkit that does all this. It does > not make sense to have a single .pm that does all this. There's > absolutely no need for having all these different tasks in one module. > There's not even any benefit. You can just as well use a couple of >

Re: renaming "grep" to "where"

2006-09-18 Thread Mark Stosberg
Darren Duncan wrote: > Putting aside legacy issues for the moment, > > I suggest that it might be appropriate to rename the .grep list operator > to .where, so we can say, for example: > > @filtered = @originals.where:{ .foo eq $bar }; > > We already have a "where" keyword in the language, whi

use perl5:CGI as a solution (was: Re: the CGI.pm in Perl 6)

2006-09-18 Thread Mark Stosberg
Aankhen wrote: > > The major feeling was that there should be no CGI.pm (if someone was > hellbent on using it, they could use the Perl 5 module). In theory, "use perl5:CGI" could be a fine solution. In practice, it hasn't worked out well for me. Even something that seems simple like passing a h

request for addition to administative field to Synopsis

2006-09-17 Thread Mark Stosberg
Hello, As I've worked on smart linking, I've found some gaps in the spec, often of the variety of "obvious" parts that should largely work the same as Perl 5. For example, "say" was formally spec'ed until recently, or "print" for that matter. I have a suggestion which I believe make the docs mo

How to pass a ref from a language with no refs (was: Re: use perl5:CGI as a solution)

2006-09-17 Thread Mark Stosberg
Juerd wrote: > > Please note that eventually, perl5:CGI is supposed to work as expected. For that to happen, there will first have be some documentation telling me what expectations to have. When Perl 5 has references and Perl 6 doesn't, I don't know what to expect to when I need to pass a hash

Who uses CGI.pm HTML generation? (was: Re: the CGI.pm in Perl 6)

2006-09-17 Thread Mark Stosberg
David Cantrell wrote: > > I wonder how many people really use the HTML-generating bits of CGI.pm? > I know I never have, nor have they been used that I can remember > anywhere that I've worked, or in any of the non-work projects I've > collaborated in. It's always been 'print ""' or more recently

use perl5:CGI as a solution (was: Re: the CGI.pm in Perl 6)

2006-09-17 Thread Mark Stosberg
Aankhen wrote: > > The major feeling was that there should be no CGI.pm (if someone was > hellbent on using it, they could use the Perl 5 module). In theory, "use perl5:CGI" could be a fine solution. In practice, it hasn't worked out well for me. Even something that seems simple like passing a h

best practice for web form stickiness (was: Re: the CGI.pm in Perl 6)

2006-09-17 Thread Mark Stosberg
Juerd wrote: > > Personally, I am *against* HTML generating for elements that are not > form fields. And for form fields, I think the solution should be in the > templating thing, not elsewhere. Stickiness makes sense on invalid data > only anyway, and we need to put the error message and a pointer

Re: CGI Session management (was Re: the CGI.pm in Perl 6)

2006-09-17 Thread Mark Stosberg
> > I agree completely. In that vein, I think that one thing a lot of web > developers would like to have available more easily would be session > management. In PHP it's as simple as $_SESSION['key'] = 'value'. I > understand that CGI.pm is a fundemantally different concept from PHP and > tha

Re: Trying to use Perl5 modules (documented on wiki)

2006-09-17 Thread Mark Stosberg
Audrey Tang wrote: > > 在 Sep 11, 2006 2:07 PM 時,Trey Harris 寫到: > >> In a message dated Mon, 11 Sep 2006, Richard Hainsworth writes: >>> I am trying to find out how to use (in perl6) perl5 modules that >>> contain subroutines. >> >> Imports from Perl 5 modules don't currently work. > > Actually,

sub ($self: $foo ) (was: Re: single named param)

2006-09-12 Thread Mark Stosberg
Larry Wall wrote: > > I'm trying to decide if > >sub ($self: $just_a_named_param) > > can meaningfully put anything into $self. It seems doubtful, and it should > probably be > >submethod ($self: $just_a_named_param) I agree. If sub ($self: $foo) works than it reduces privacy, sinc

Re: Inf appears to be unspec'ed

2006-09-11 Thread Mark Stosberg
Mark Stosberg wrote: > The formal definition of "Inf" appears to be missing from the spec > documents. Since I'm not exactly sure how Perl 6 treats "Inf", I'll > leave submitting this patch to someone else. > > Once the spec is added, a smart link

Re: "not" and "true" appear unspec'ed, too

2006-09-11 Thread Mark Stosberg
Mark Stosberg wrote: > The formal definition of "Inf" appears to be missing from the spec > documents. Since I'm not exactly sure how Perl 6 treats "Inf", I'll > leave submitting this patch to someone else. > > Once the spec is added, a smart link

Inf appears to be unspec'ed

2006-09-10 Thread Mark Stosberg
The formal definition of "Inf" appears to be missing from the spec documents. Since I'm not exactly sure how Perl 6 treats "Inf", I'll leave submitting this patch to someone else. Once the spec is added, a smart link to it should be added from: t/builtins/math/infinity.t Mark

Re: the CGI.pm in Perl 6

2006-09-09 Thread Mark Stosberg
Darren Duncan wrote: > P.S. I originally sent this to just Mark Stosberg yesterday, and he > suggested I sent it to perl6-users for more exposure, so here it is, > slightly edited. And here is my reply to Darren, slightly edited. I'm only interested in CGI.pm so much as it holds

CATCH: changing the topic and preserving the call stack

2006-09-07 Thread Mark Stosberg
I'll hold up some error handling in CGI::Application as "use case" some for some CATCH spec refinements. The Perl 5 code is below for reference. First, we handle the exception conditionally based /not/ on the exception itself, but whether we have an exception handle installed to deal with it. Is i

Re: C outside of C

2006-09-07 Thread Mark Stosberg
Trey Harris wrote: > markstos++ pointed out the following behavior: > > use v6-alpha; > > { > when 1 ~~ 0 { > say "Surprise!" > } > } > > This code prints "Surprise!", because $_ is undef, which is false, just > like 1 ~~ 0 is. > > I'd like to make the following suggestions

gather/take definition missing

2006-09-06 Thread Mark Stosberg
I found 6 references to "gather" in Perl6/Spec/*, but none of them were a formal definition. It would great if an official entry for gather/take could be added. Mark

Re: clarify: how WALK arguments can be combined

2006-09-05 Thread Mark Stosberg
Brad Bowman wrote: > Mark Stosberg wrote: >> In the Objects chapter, a WALK pseudo-class is spec'ed for using >> when calling sets of methods: >> >> http://feather.perl6.nl/syn/S12.html#Calling_sets_of_methods >> >> These are the arguments listed that

clarify: how WALK arguments can be combined

2006-09-04 Thread Mark Stosberg
In the Objects chapter, a WALK pseudo-class is spec'ed for using when calling sets of methods: http://feather.perl6.nl/syn/S12.html#Calling_sets_of_methods These are the arguments listed that can be used with WALK: :canonical # canonical dispatch order :ascendant # most-deri

Re: when calling sets of methods, what happens to the return values?

2006-09-04 Thread Mark Stosberg
Mark Stosberg wrote: > S12 describes a feature to call sets of methods at the same time: > > http://feather.perl6.nl/syn/S12.html#Calling_sets_of_methods > > I would like the spec to clarify what happens to the return values of > all these methods. > > I'm fine

Re: multi method dispatching of optional arguments (further refined)

2006-09-03 Thread Mark Stosberg
Luke Palmer wrote: > I don't follow your examples. What is the logic behind them? > > On 9/3/06, Mark Stosberg <[EMAIL PROTECTED]> wrote: >> Examples: >>Arguments (<1 2>) to signatures 1. (@a?) and 2. (@a) calls 2 > > For example, I would ex

when calling sets of methods, what happens to the return values?

2006-09-02 Thread Mark Stosberg
S12 describes a feature to call sets of methods at the same time: http://feather.perl6.nl/syn/S12.html#Calling_sets_of_methods I would like the spec to clarify what happens to the return values of all these methods. I'm fine with a simple answer, such as that they are not available, or only th

Re: multi method dispatching of optional arguments (further refined)

2006-09-02 Thread Mark Stosberg
Mark Stosberg wrote: > Hello, > > I think it would helpful if the spec addressed "who wins" in MMD when > optional arguments are present. > > I just submitted these failing tests for pugs which illustrate the > issue. > > not ok 11 - Arguments (a => '

Re: multi method dispatching of optional arguments

2006-09-02 Thread Mark Stosberg
Mark Stosberg wrote: > Hello, > > I think it would helpful if the spec addressed "who wins" in MMD when > optional arguments are present. > > I just submitted these failing tests for pugs which illustrate the > issue. > > not ok 11 - Arguments (a => '

multi method dispatching of optional arguments

2006-09-02 Thread Mark Stosberg
Hello, I think it would helpful if the spec addressed "who wins" in MMD when optional arguments are present. I just submitted these failing tests for pugs which illustrate the issue. not ok 11 - Arguments (a => 'b') to signatures 1. () and 2. (*%h) calls 2 not ok 14 - Arguments () to signatures

Re: request: clarify how symbolic references with OO

2006-09-02 Thread Mark Stosberg
Mark Stosberg wrote: > > &::($meth)(self:); Well, audreyt just made this work (r12960), which I what I what I thought should work in the first place: self.$meth(). So I'm happy. (But my curiosity about the spec for symbolic refs and OO still stands. ) Mark

request: clarify how symbolic references with OO

2006-09-01 Thread Mark Stosberg
In reading about symbolic references, I didn't find any specific language that mentioned using them in conjunction with methods or OO. I would like to see specific language and examples added to the spec to clarify this. Here's a specific example which currently doesn't work in pugs. It's attempti

Re: could 'given' blocks have a return value?

2006-08-30 Thread Mark Stosberg
Agent Zhang wrote: > > According to S04, given {} is at statement level, so you can't use it > directly as an expression. But Perl 6 always allow you to say > > my $foo = do given {...} > > As well as > > my $foo = do if foo {...} else {...} I confirmed this both work now with pugs! I thin

could 'given' blocks have a return value?

2006-08-29 Thread Mark Stosberg
Sometimes I use 'given' blocks to set a value. To save repeating myself on the right hand side of the given block, I found I kept want to do this: my $foo = given { } ...and have whatever value that was returned from when {} or default {} populate $foo. It turns out pugs already allow this, thr

Re: named arguments: What's the signature?

2006-08-29 Thread Mark Stosberg
Trey Harris wrote: > > > Slurpy parameters follow any required or optional parameters. They are > marked by a C<*> before the parameter: > > sub duplicate($n, *%flag, [EMAIL PROTECTED]) {...} > > Named arguments are bound to the slurpy hash (C<*%flag> > in the above example). Such

named arguments: What's the signature?

2006-08-29 Thread Mark Stosberg
Regarding The S06 description of named arguments: http://feather.perl6.nl/syn/S06.html#Named_arguments What I find missing here is documentation of the signature to use if you want to declare "I accept an arbitrary number of named arguments". (Like the param() methods common in Perl5 do). Maybe

return Types: what are the enforcement details?

2006-08-29 Thread Mark Stosberg
I'm interested in helping to write some tests for "return types", but I'd like some clarifications about them first. Are they just "declarations" that help Perl optimize stuff, or they actually contracts? As this little script shows, both "inner" and "of" are valid syntax now with pugs, but neithe

multi subs with identical signatures: should be a warning ?

2006-08-27 Thread Mark Stosberg
First, what's the recommended reference for learning how dispatching to the right 'multi' sub is resolved. ? I'd like to know the expected behavior in this case: multi sub foo () { say "b: " } multi sub foo () { say "a: " } foo(); I would expect it would throw an error or at least a warning, sin

feedback on the draft documentation spec

2006-08-25 Thread Mark Stosberg
Perl6::Spec::Documentation is a draft spec for documentation formats for use with Perl6. My own reading of it is that POD still exists and is supported, while a new wiki-like format "kwid" is added, and a framework for various dialects is supported. POD was successful for its simplicity. It was

clarifying the spec for 'ref'

2006-08-23 Thread Mark Stosberg
I noticed in pugs, 'ref' does not return 'HASH' and 'ARRAY' as Perl5 does, but returns values including 'Hash', 'Array' and 'Array::Const'. I don't find meaningful mentions of 'HASH' and 'ARRAY' by grep'ing docs/Perl6 (or even "ref"!), so I wanted to check in here about the meaningfulness of this

clarify: does "Dog is Mammal" load Mammal for you?

2006-08-21 Thread Mark Stosberg
In S12, we see a number examples of: class Dog is Mammal http://dev.perl.org/perl6/doc/design/syn/S12.html However, it's not clear if it is necessary to preload Mammal for Dog to function properly here, or what that syntax would be. Testing with current version of pugs, this doesn't happen.

typo fix: trinary -> ternary

2006-08-16 Thread Mark Stosberg
In Perl6/Spec/Operator.pod "Trinary" should be "Ternary". Mark

Re: Backwards (?) kwalitee definition on qa.perl.org

2006-03-08 Thread Mark Stosberg
On 2005-07-09, Nik Clayton <[EMAIL PROTECTED]> wrote: > http://qa.perl.org/phalanx/kwalitee.html says: > > What is kwalitee? > > Kwalitee is inexact quality. We don't know exactly what it is, > but we know it when we see it. > > Isn't that backwards? I thought 'kwalitee' was suppos

best way to migrate to Test::WWW::Selenium ?

2006-03-06 Thread Mark Stosberg
(This message is targeted at the Test::WWW::Selenium maintainers, but I think the response will be of interest to others here ). I've got a test suite built with Selenium, but I would like to the output in TAP to centralize the reporting, perhaps using Smolder once I Smolder installed. It appear

Re: ANNOUNCE - Smolder 0.01

2006-03-06 Thread Mark Stosberg
On 2006-03-05, Michael Peters <[EMAIL PROTECTED]> wrote: > > > Yuval Kogman wrote: >> On Sat, Mar 04, 2006 at 09:09:00 -0500, Michael Peters wrote: >>> It's very similar in nature to the Pugs smoke test server, but is completely >>> project agnostic. It's also completely self contained (contains lo

TODO test paradox: better TODO test management?

2006-01-31 Thread Mark Stosberg
Here's my test-first TODO test management paradox: If I write a failing test and share it through the central repo, the smoke bot fails and keeps sending us e-mail until it is fixed, which can be annoying when these are un-implemented features and not bugs. The effect can be quit paying attention

Re: TAP as XML

2005-12-13 Thread Mark Stosberg
On Tue, Dec 13, 2005 at 02:01:18PM -0500, Michael Peters wrote: > >>>It uses (among other things) Test::TAP::Model and > >>>Test::TAP::HTMLMatrix, and uses YAML as an intermediate test-run format. > >> > >>Actually, Test::TAP::HTMLMatrix is what I currently use for test reports > >>that > >>get e

Re: TAP as XML

2005-12-13 Thread Mark Stosberg
On 2005-11-22, Michael Peters <[EMAIL PROTECTED]> wrote: > > > Stevan Little wrote: >> Michael, >> >> You might want to look at some of the work on the Pugs test suite. >> >> http://m19s28.vlinux.de/cgi-bin/pugs-smokeserv.pl >> >> It uses (among other things) Test::TAP::Model and >> Test::TAP::

create test scripts that run from the web as well from the web

2005-12-13 Thread Mark Stosberg
Now that I'm using Selenium, I wanted to integrate some of the perl testing tools I already like. http://selenium.thoughtworks.com/ I found one way to do this was to create a test script that runs as a CGI script. Adding just one line to the top of the script allows it to run from the web or fro

Re: Running test suites under PersistentPerl

2005-12-07 Thread Mark Stosberg
On 2005-12-07, Mark Stosberg <[EMAIL PROTECTED]> wrote: >> >> Limitations and Caveats with the system: >> >> * Scripts that muck about with STDIN, STDOUT or STDERR will probably >>have problems. >> >> * The usual persistent environment cave

integrating Selenium with a traditional perl test suite ?

2005-12-07 Thread Mark Stosberg
Hello, So I'm now using and liking Selenium after several recommendations from this list. I'm interested to know how other people integrate it with a traditional perl test suite. It seems like there are two possibilities: http://selenium.thoughtworks.com/ 1. Use "prove" as the primary test sui

Re: Running test suites under PersistentPerl

2005-12-07 Thread Mark Stosberg
On 2005-12-05, Michael Graham <[EMAIL PROTECTED]> wrote: > > This should be compatible with regular (non-PersistentPerl) use as well. > > ... > > Limitations and Caveats with the system: > > * Scripts that muck about with STDIN, STDOUT or STDERR will probably >have problems. > > * The usual p

Re: automated web testing with selenium

2005-11-28 Thread Mark Stosberg
On 2005-11-02, Luke Closs <[EMAIL PROTECTED]> wrote: > > Also, yesterday Test::WWW::Selenium was uploaded to CPAN, so Selenium > can now be driven by perl! Test::WWW::Selenium seems interesting, but I could use an example it would be useful to use, versus the standard techniques. From the docs,

Re: testing Javascript applications ?

2005-11-28 Thread Mark Stosberg
On 2005-11-28, Ovid <[EMAIL PROTECTED]> wrote: > --- Mark Stosberg <[EMAIL PROTECTED]> wrote: > >> What are other folks doing to test web applications that make heavy >> use >> of JavaScript? > > If you want to leverage your Perl testing knowledge,

testing Javascript applications ?

2005-11-28 Thread Mark Stosberg
It used to be that WWW::Mechanize was a "good enough" testing tool for my web applications. It doesn't do Javascript, but I used very minimal Javascript and thus worked around that limitation. Along comes AJAX. It offers benefits that make JavaScript seem worth using. But now how I can test t

A binary testing system with a log of system calls?

2005-08-01 Thread Mark Stosberg
Hello, I help test the darcs ( http://www.darcs.net/ ) binary with Perl. The code itself is written in Haskell, but that doesn't matter here. A developer had an interesting request, which I would like to pursue. Where there is a test failure in the Perl test script, he would like to look at a se

Re: prove with Devel::Cover example?

2005-07-10 Thread Mark Stosberg
On Sat, Jun 04, 2005 at 02:10:37AM -0700, Michael G Schwern wrote: > On Fri, Jun 03, 2005 at 02:04:50PM -0500, Pete Krawczyk wrote: > > }How can I use 'prove' and Devel::Cover together? I tried: > > > > HARNESS_PERL_SWITCHES=-MDevel::Cover prove file.t > > Kinda surprised there's not a --cover s

OT: integrating RSS with mail readers (was: Re: AnnoCPAN and a wiki POD idea)

2005-07-08 Thread Mark Stosberg
On 2005-07-08, Michael G Schwern <[EMAIL PROTECTED]> wrote: > >> PS. An AnnoCPAN tip: Notice that if you are an author, you can subscribe >> to all comments on your modules: >> http://www.annocpan.org/~MARKSTOS/recent.rss > > Not knowing anything about RSS I put the URL into Firefox and it asked me

AnnoCPAN and a wiki POD idea

2005-07-08 Thread Mark Stosberg
If you haven't see AnnoCPAN, it's a new way to share comments on Perl POD: Example: http://www.annocpan.org/dist/Net-ICal-0.15/lib/Net/ICal.pm I have an idea about taking it a step further-- making it easier to close the loop with the author to integrate updates. CPAN documentation could be st

Looking into integrating Test::TAP::HTMLMatrix with prove

2005-07-08 Thread Mark Stosberg
t have meaningful data on them and aren't synchronized (STDOUT and STDERR). Mark -- . . . . . . . . . . . . . . . . . . . . . . . . . . . Mark StosbergPrincipal Developer [EMAIL PROTECTED] Summersault, LLC 765-939-9301 ext 202 database driven websites . . . . . http://www.summersault.com/ . . . . . . . .

How to get started with Test::TAP::HTMLMatrix

2005-07-02 Thread Mark Stosberg
Hello, I'd like to use Test::TAP::HTMLMatrix to better visualize the state of large test runs. However, I can't tell from the docs how to run the test suite such that it gets involved in the process. Could someone provide an example? Thanks! Mark -- http://mark.stosberg.com/

Re: prove with Devel::Cover example?

2005-06-04 Thread Mark Stosberg
On 2005-06-04, Michael G Schwern <[EMAIL PROTECTED]> wrote: > On Fri, Jun 03, 2005 at 02:04:50PM -0500, Pete Krawczyk wrote: >> }How can I use 'prove' and Devel::Cover together? I tried: >> >> HARNESS_PERL_SWITCHES=-MDevel::Cover prove file.t > > Kinda surprised there's not a --cover switch. I w

prove with Devel::Cover example?

2005-06-03 Thread Mark Stosberg
Ok, I'm feeling brain dead about this one-- this seems easy but I'm missing it. How can I use 'prove' and Devel::Cover together? I tried: perl -MDevel::Cover prove ... but didn't cover the scripts that ran. Mark

Re: examples of testing cookies with WWW::Mechanize ?

2005-04-05 Thread Mark Stosberg
On 2005-04-05, Mark Stosberg <[EMAIL PROTECTED]> wrote: > This is how I figured out how to test a cookie with WWW::Mechanize: > > my $ses_id_from_cookie = > $a->cookie_jar->{COOKIES}->{".$CFG{SITE_DOMAIN}"}->{'/'}->{CGISESSID}->[1]; >

examples of testing cookies with WWW::Mechanize ?

2005-04-05 Thread Mark Stosberg
This is how I figured out how to test a cookie with WWW::Mechanize: my $ses_id_from_cookie = $a->cookie_jar->{COOKIES}->{".$CFG{SITE_DOMAIN}"}->{'/'}->{CGISESSID}->[1]; ok($ses_id_from_cookie, "admin - Login screen sets cookie ($ses_id_from_cookie)"); Surely there is an easier/better way th

best practices for returning a "technical failure" page to a web browser?

2005-04-05 Thread Mark Stosberg
uot;Internal Server Error" than a normal result page. Mark -- . . . . . . . . . . . . . . . . . . . . . . . . . . . Mark StosbergPrincipal Developer [EMAIL PROTECTED] Summersault, LLC 765-939-9301 ext 202 database driven websites . . . . . http://www.summersault.com/ . . . . . . . .

Re: a less fragile way to test when we need to read and write to STDOUT?

2005-04-05 Thread Mark Stosberg
On 2005-04-01, George Nistorica <[EMAIL PROTECTED]> wrote: > > For commands that need more than one input (i.e. shell installers) you > can use the Expect module, which you can use to test such programs, that > wait your input for more than one time. Thanks for the tip. It led me to Test::Expect,

Re: a less fragile way to test when we need to read and write to STDOUT?

2005-04-04 Thread Mark Stosberg
On 2005-04-01, George Nistorica <[EMAIL PROTECTED]> wrote: > > For commands that need more than one input (i.e. shell installers) you > can use the Expect module, which you can use to test such programs, that > wait your input for more than one time. Thanks for the tip. It led me to Test::Expect,

Re: a less fragile way to test when we need to read and write to STDOUT?

2005-03-31 Thread Mark Stosberg
On 2005-04-01, Michael G Schwern <[EMAIL PROTECTED]> wrote: >> commands with Perl? > > When using open2 you have to be careful to close WRITE before you READ so > the program does not hang waiting for more input. Once you've fixed that > the technique above should be just fine. > > sub echo { >

a less fragile way to test when we need to read and write to STDOUT?

2005-03-31 Thread Mark Stosberg
r two people something got slightly off, causing the test to hang indefinitely. Windows users weren't having problems with the first method, so maybe I should just go back to that. I'm I missing an easier and less fragile way to test interactive commands with Perl? Thanks! Mark

darcs patch: add modules/README to darcsworld

2005-03-29 Thread Mark Stosberg
Tue Mar 29 09:23:05 EST 2005 Mark Stosberg <[EMAIL PROTECTED]> * add modules/README to darcsworld I see several other files that are in SVN, that didn't show up in darcs when I sync'ed this morning. In particular, there are several more 'Algorithm-*' modul

darcs patch: add PORTING_HOWTO to darcs. (and 2 more)

2005-03-28 Thread Mark Stosberg
Mon Mar 28 12:13:41 EST 2005 Mark Stosberg <[EMAIL PROTECTED]> * add PORTING_HOWTO to darcs. Mon Mar 28 12:19:27 EST 2005 Mark Stosberg <[EMAIL PROTECTED]> * add request for specific example subroutine signature porting Mon Mar 28 12:24:10 EST 2005 Mark Stosberg <[

darcs patch: add PORTING_HOWTO to darcs. (and 1 more)

2005-03-28 Thread Mark Stosberg
Mon Mar 28 12:13:41 EST 2005 Mark Stosberg <[EMAIL PROTECTED]> * add PORTING_HOWTO to darcs. Mon Mar 28 12:15:36 EST 2005 Mark Stosberg <[EMAIL PROTECTED]> * add p5 -> p6 hash sigil change New patches: [add PORTING_HOWTO to darcs. Mark Stosberg <[EMAIL PROTECTED

Re: Fwd: [ANN: WWW::Agent 0.03 has entered CPAN: rho@bigpond.net.au]

2005-03-19 Thread Mark Stosberg
On 2005-03-19, Andy Lester <[EMAIL PROTECTED]> wrote: > > login: { # block to define > how to log in >url m|https?://james.bond.edu.au/.*| or die "there is nothing to > log in here" > and fill uid $username

darcs patch: typo fix

2005-03-19 Thread Mark Stosberg
Sat Mar 19 16:23:21 EST 2005 Mark Stosberg <[EMAIL PROTECTED]> * typo fix New patches: [typo fix Mark Stosberg <[EMAIL PROTECTED]>**20050319212321] < > { hunk ./ext/Pugs-Documentation/perlkwidspec.kwid 272 be ample room for people to make out-of-band hacks for specif

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 +0000, 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

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: [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: 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; >

benchmark darcs with Perl

2005-03-12 Thread Mark Stosberg
darcs [1] is slow in a few places, and I'm working on benchmarking tool in Perl to help monitor the performance. I'm got some questions about the best way to proceed. 1. http://www.darcs.net/ So far: I've divided the task into a couple specific problems: A. What repos to use for testing? B. A

Re: testing STDOUT and STDERR at the same time with Test::Output

2005-03-08 Thread Mark Stosberg
On Tue, Mar 08, 2005 at 05:48:28PM +, Fergal Daly wrote: > > In the case of though darcs though, is Perl just testing the output of > commands that have been systemed? If so they could just add 2>&1 to the > command line and then ignore stderr, I thought that wouldn't be portable. Mark

Re: testing STDOUT and STDERR at the same time with Test::Output

2005-03-08 Thread Mark Stosberg
On 2005-03-08, Michael G Schwern <[EMAIL PROTECTED]> wrote: > On Tue, Mar 08, 2005 at 05:27:34PM +, Fergal Daly wrote: >> On Tue, Mar 08, 2005 at 04:56:08PM +, Mark Stosberg wrote: >> > Hmm...maybe Test::Output just needs a new feature: >> > >> &g

Re: testing darcs with Perl (was: Re: testing non-modules)

2005-03-08 Thread Mark Stosberg
On 2005-03-08, Michael G Schwern <[EMAIL PROTECTED]> wrote: > On Tue, Mar 08, 2005 at 11:33:30AM -0500, Mark Stosberg wrote: >> > I'd make life simpler and dump the shell scripts, see the note about >> > cross-platform compatibility below. >> >> The

testing STDOUT and STDERR at the same time with Test::Output

2005-03-08 Thread Mark Stosberg
On 2005-03-08, Michael G Schwern <[EMAIL PROTECTED]> wrote: > > PS I took a look at one of the Perl tests (pull.pl) and its needlessly > Unix-centric making lots of shell calls which can easily be done with > Perl, particularly rm -rf and mkdir -p (File::Path). Best to make it > cross-platform as

Re: testing darcs with Perl (was: Re: testing non-modules)

2005-03-08 Thread Mark Stosberg
On Tue, Mar 08, 2005 at 08:23:31AM -0800, Michael G Schwern wrote: > > perl -MTest::Harness -e 'runtests @ARGV' tests/*.pl Aha. Thanks. > Why would you distribute a private copy of Test::Harness? To use 'prove', which your example above illustrates I don't need. > Or do you mean you

testing darcs with Perl (was: Re: testing non-modules)

2005-03-08 Thread Mark Stosberg
I have a fork of the 'testing non-modules' question. :) I help maintain some Perl test scripts for darcs [1]. 1. http://www.darcs.net/ Right now the tests are run one at a time, losing the benefit of the summary report. I got stuck trying to think of how to best make this work. I don't thin

Re: Test::WWW::Mechanize 1.04

2005-03-08 Thread Mark Stosberg
On 2005-03-04, Andy Lester <[EMAIL PROTECTED]> wrote: > I've updated Test::WWW::Mechanize to add get_ok() and follow_link_ok() > methods. If you've been writing > > $mech->get( $url ); > ok( $mech->success, 'Fetched home page' ); > > you can now do that as > > $mech->get_ok( $mech->success,

Re: TAP and STDERR

2005-02-26 Thread Mark Stosberg
On 2005-02-25, Michael G Schwern <[EMAIL PROTECTED]> wrote: > > I'm going to call a big, fat YAGNI on this one for the time being. I looked that one up. :) You Aren't Going to Need It. http://c2.com/cgi/wiki?YouArentGonnaNeedIt I like it. Mark -- http://mark.stosberg.com/

Re: Foreign modules in test scripts?

2005-02-19 Thread Mark Stosberg
On 2005-02-20, Steffen Schwigon <[EMAIL PROTECTED]> wrote: > Hi! > > General testing question: > > Is it ok for a CPAN module to use other modules from CPAN only for the > test scripts (e.g. "Text::Diff")? > > First, I'm not sure about the usage policy. Maybe it's more common to > write tests more

Re: TAP Version (was: RE: Test comments)

2005-02-18 Thread Mark Stosberg
On 2005-02-18, Michael G Schwern <[EMAIL PROTECTED]> wrote: > On Fri, Feb 18, 2005 at 01:13:05AM +0000, Mark Stosberg wrote: >> On 2005-02-15, Clayton, Nik <[EMAIL PROTECTED]> wrote: >> > >> >ver 1.1 >> >> If you go this route, I would

Re: TAP Version (was: RE: Test comments)

2005-02-17 Thread Mark Stosberg
On 2005-02-15, Clayton, Nik <[EMAIL PROTECTED]> wrote: > >ver 1.1 If you go this route, I would make it clear whose emitting the version string: TAP version 1.1 ### Mark -- http://mark.stosberg.com/

Benefits of a Real World switch from CVS to darcs

2005-01-26 Thread Mark Stosberg
Hello, Here's a story of how I've been able to improve the quality of my Perl development process significantly: Benefits of a Real World switch from CVS to darcs http://mark.stosberg.com/Tech/darcs/cvs_switch/ Switching my source control system has made a big difference in my ability t

Re: Test::Harness HTML output

2005-01-25 Thread Mark Stosberg
On 2005-01-23, Ian Langworth <[EMAIL PROTECTED]> wrote: > I'm attempting to create fancy HTML output from running a test suite > and thought others might find this interesting. I've tried using > Test::Harness::Straps to create a feedback report inspired by Tinderbox > and BuildBot. > > ht

Re: Test labels

2004-12-08 Thread Mark Stosberg
> On Mon, Dec 06, 2004 at 10:28:45PM -0600, Andy Lester wrote: > I think even better than > > ok( $expr, "name" ); > > or > > ok( $expr, "comment" ); > > is > > ok( $expr, "label" ); > > RJBS points out that "comment" implies "not really worth doing", and I > still don't like "name" be

Re: Phalanx update

2004-12-05 Thread Mark Stosberg
On 2004-12-02, Andy Lester <[EMAIL PROTECTED]> wrote: > I've reorganized all the trees in http://svn.perl.org/phalanx. A > description of how things should be is at > http://svn.perl.org/phalanx/structure.pod. I think I missed something. This clearly has something to do with SVN hosting and the P

Re: Differences between output of 'make test' and 'prove'

2004-11-05 Thread Mark Stosberg
On 2004-11-05, Jeff Bisbee <[EMAIL PROTECTED]> wrote: > > I remember mentioning something to Andy, but at the time he didn't like > it. I'm also curious how other folks run coverage, update modules > and rerun coverage. Using Module::Build, it's easy to run coverage: ./Build testcover [test opt

estimating other people's work (was Re: Quality from the Beginning: Better Estimates)

2004-11-04 Thread Mark Stosberg
for programming work that I didn't contribute to myself. Mark -- . . . . . . . . . . . . . . . . . . . . . . . . . . . Mark StosbergPrincipal Developer [EMAIL PROTECTED] Summersault, LLC 765-939-9301 ext 202 database driven websites . . . . . http://www.summersault.com/ . . . . . . . .

Re: Quality from the Beginning: Better Estimates

2004-11-04 Thread Mark Stosberg
sk factors" 4. Reward good estimates. :) Comments? Mark -- . . . . . . . . . . . . . . . . . . . . . . . . . . . Mark StosbergPrincipal Developer [EMAIL PROTECTED] Summersault, LLC 765-939-9301 ext 202 database driven websites . . . . . http://www.summersault.com/ . . . . . . . .

Re: dor and backwards compat (was Re: [ANNOUNCE] Test::Simple 0.49)

2004-11-03 Thread Mark Stosberg
uot;foo" } print err' > Ambiguous call resolved as CORE::err(), qualify as such or use & at -e line 1. > syntax error at -e line 1, at EOF > Execution of -e aborted due to compilation errors. This seems like an important difference. It would be nice if my 'err'

Re: Quality from the Beginning: Better Estimates

2004-11-02 Thread Mark Stosberg
On 2004-11-01, chromatic <[EMAIL PROTECTED]> wrote: > On Mon, 2004-11-01 at 07:45, Mark Stosberg wrote: > >> So, what resources are recommended to consult to make great estimates? >> What habits to develop? > > I have two primary rules: > > 1) Don't make

Re: Quality from the Beginning: Better Estimates

2004-11-02 Thread Mark Stosberg
speeds up a lot of boring re-testing. In part, I haven't been using automated testing as long as I've been programming, so I simply don't have as much experience to pull from when estimating it as a factor. Mark -- . . . . . . . . . . . . . . . . . . . . . . . . . . . Mark S

  1   2   >