Re: Junctive puzzles.

2005-02-05 Thread Nicholas Clark
On Sat, Feb 05, 2005 at 08:43:10PM +0800, Autrijus Tang wrote: > On Sat, Feb 05, 2005 at 12:38:57PM +, Nicholas Clark wrote: > > Surely you can do better than that for counterintuitive? :-) > > > > 4 < (0 | 6) < 2 > > pugs> ? 4 < (0 | 6) < 2 > (#t|#f) > > Why is it so? Because: > >

The Number Tower.

2005-02-05 Thread Autrijus Tang
(Again, this is really a language question. Sorry for the hopefully digestible use of internal symbols.) Pugs currently has two numeric types: VInt - Arbitary sized integer VNum - Double-precision point number with NaN and Inf support. Division is done like this: pugs> ? 1 / 3

Re: Junctive puzzles.

2005-02-05 Thread Autrijus Tang
On Sat, Feb 05, 2005 at 01:52:05PM +, Nicholas Clark wrote: > > #t and (0 | 6) < 2 # reduction in boolean context(!) > > Why is it allowed to do this? Because "and" forces boolean context to determine whether it short-circuits or not. However, I should've make it clear t

Re: Junctive puzzles.

2005-02-05 Thread Nicholas Clark
On Sat, Feb 05, 2005 at 10:04:02PM +0800, Autrijus Tang wrote: > On Sat, Feb 05, 2005 at 01:52:05PM +, Nicholas Clark wrote: > > > #t and (0 | 6) < 2 # reduction in boolean context(!) > > > > Why is it allowed to do this? > > Because "and" forces boolean context to determ

Re: Some quick questions.

2005-02-05 Thread Larry Wall
On Sat, Feb 05, 2005 at 02:08:32PM +0800, Autrijus Tang wrote: : On Sat, Feb 05, 2005 at 04:44:41AM +0800, Autrijus Tang wrote: : > * What is the value of a reference in any of the scalar contexts? : > : > Currently I'm blindly dereferencing it. : : It seems that I got four out of five correc

Re: Semicolons as list separators.

2005-02-05 Thread Larry Wall
On Sat, Feb 05, 2005 at 04:30:58PM +0800, Autrijus Tang wrote: : So it turns out that A03 says that semicolons within "brackets" defaults : to a list-of-list builder. Curiously, it is missing from S03, and the : behaviour is not documented in detail. That's because it's still a bit hand-wavey. :

CLI signature?

2005-02-05 Thread Juerd
This probably goes against everything a shell based platform wants, but would it be possible to give the program a sub-like signature? I ask this after another painful session of forgetting how things work, reading Getopt::Long's documentation. signature ( Rule $pattern, bool

Test names/comments/whatever?

2005-02-05 Thread Ovid
Has there been any final decision as to what to call test names? There was quite a bit of discussion, but I don't recall the resolution. Cheers, Ovid = If this message is a response to a question on a mailing list, please send follow up questions to the list. Web Programming with Perl -- ht

Re: CLI signature?

2005-02-05 Thread Matthew Walton
Juerd wrote: This probably goes against everything a shell based platform wants, but would it be possible to give the program a sub-like signature? I ask this after another painful session of forgetting how things work, reading Getopt::Long's documentation. signature ( Rule $pattern,

Re: CLI signature?

2005-02-05 Thread Ingo Blechschmidt
Hi, Juerd wrote: > This probably goes against everything a shell based platform wants, > but would it be possible to give the program a sub-like signature? I like that idea very much, but... > signature ( > Rule $pattern, > bool +$help:short('h'), > Int +$verbos

Re: CLI signature?

2005-02-05 Thread Juerd
Matthew Walton skribis 2005-02-05 16:20 (+): > Would this actually be any better than the interface provided by > Getopt::Long? I'm not sure if it's *better*. I personally find it easier to read and much easier to remember. It would reduce the number of mini languages needed. Passing argumen

Re: CLI signature?

2005-02-05 Thread Juerd
Ingo Blechschmidt skribis 2005-02-05 17:19 (+0100): > ...this seems a bit ugly to me. The "signature" part, or the signature itself? Because you'll encounter lists like this all over Perl 6 code anyway... > What do you say about that: > use Getopt::Auto; > run &main; > sub main ( >Rule $pa

Re: CLI signature?

2005-02-05 Thread Ingo Blechschmidt
Hi, Juerd wrote: > Ingo Blechschmidt skribis 2005-02-05 17:19 (+0100): >> ...this seems a bit ugly to me. > > The "signature" part, or the signature itself? Because you'll > encounter lists like this all over Perl 6 code anyway... I refered to the way the signature is specified, not the signatur

Module::Packaged vs Phalanx 100

2005-02-05 Thread Leon Brocard
This is what you get when you set Module::Packaged against the Phalanx 100. So right now FreeBSD packages the most of Phalanx, and it's kinda interesting to see the version numbers. http://astray.com/tmp/phalanx.html Script: http://unixbeard.net/acme-svn/Module-Packaged/phalanx.pl (pass in

NCI, undef and structures

2005-02-05 Thread Ron Blaschke
Just had a look at the following test failures on Windows. t\pmc\nci.t 2 512562 3.57% 3 46 I have added the test output below. It may not look that way at first sight, but the failures are a result of missing exported symbols in libnci_test.dll (which remembers me of my

Re: Some quick questions.

2005-02-05 Thread Autrijus Tang
On Sat, Feb 05, 2005 at 06:52:49AM -0800, Larry Wall wrote: > Hmm, I believe I said somewhere that references are no longer always true > in Perl 6. So perhaps it's not an exception after all. We're trying > to get rid of as many useless exceptions as possible in Perl 6, after all. Yes, the rele

Re: Semicolons as list separators.

2005-02-05 Thread Autrijus Tang
On Sat, Feb 05, 2005 at 06:56:00AM -0800, Larry Wall wrote: > Yes, unless it returns [[1],[2],[3]] instead. (What you have written is > context dependent.) Yup. Thanks! Oh, by the way, may I use the infix: operator for creating none() junctions? I was writing pretty-printing code for junction

Re: Junctive puzzles.

2005-02-05 Thread Autrijus Tang
On Sat, Feb 05, 2005 at 02:39:26PM +, Nicholas Clark wrote: > On Sat, Feb 05, 2005 at 10:04:02PM +0800, Autrijus Tang wrote: > > On Sat, Feb 05, 2005 at 01:52:05PM +, Nicholas Clark wrote: > > > > #t and (0 | 6) < 2 # reduction in boolean > > > > context(!) > > > > >

Re: [perl #34059] [PATCH][MSWin32] Add NCI test symbols

2005-02-05 Thread Ron Blaschke
Sorry for the inconvenience, but please drop the original patch, and use this one instead. This patch adds all missing export symbols to libnci_test.dll that are needed by t/pmc/nci.t. t\pmc\nciok All tests successful. Files=1, Tests=56, 18 wallclock secs ( 0.00 cusr + 0.00 csys = 0.00 CPU)

Re: Junctive puzzles.

2005-02-05 Thread Nicholas Clark
On Sun, Feb 06, 2005 at 02:30:21AM +0800, Autrijus Tang wrote: > On Sat, Feb 05, 2005 at 02:39:26PM +, Nicholas Clark wrote: > > On Sat, Feb 05, 2005 at 10:04:02PM +0800, Autrijus Tang wrote: > > > On Sat, Feb 05, 2005 at 01:52:05PM +, Nicholas Clark wrote: > > > > > #t and

Re: Junctive puzzles.

2005-02-05 Thread Autrijus Tang
On Sat, Feb 05, 2005 at 06:35:55PM +, Nicholas Clark wrote: > If junctions are sets, and so a|b is identical to b|a, then isn't it wrong > for any implementation of junctions to use any short-circuiting logic in > its implementation, because if it did, then any active data (such as tied > thing

Re: Test names/comments/whatever?

2005-02-05 Thread Andy Lester
On Feb 5, 2005, at 10:03 AM, Ovid wrote: Has there been any final decision as to what to call test names? There was quite a bit of discussion, but I don't recall the resolution. Nothing has been decided. I just don't like "name". xoa -- Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:

Re: Junctive puzzles.

2005-02-05 Thread Uri Guttman
> "NC" == Nicholas Clark <[EMAIL PROTECTED]> writes: NC> If junctions are sets, and so a|b is identical to b|a, then isn't NC> it wrong for any implementation of junctions to use any NC> short-circuiting logic in its implementation, because if it did, NC> then any active data (such as

Re: CLI signature?

2005-02-05 Thread Juerd
Ingo Blechschmidt skribis 2005-02-05 18:52 (+0100): > signature(...) looks like a function/sub call, while it isn't one > really. Macros can do this to a language :) macro signature is parsed /;/ { ... } > Maybe it should be possible to create Signature objects without > creating a sub That

Semicolons as list separators.

2005-02-05 Thread Autrijus Tang
On Sat, Feb 05, 2005 at 02:08:32PM +0800, Autrijus Tang wrote: > Here's another quick question: In S03 zip() is used like this: > > for zip(@names, @codes) -> $name, $zip { ... } > > But in S04 it becomes: > > for zip(@a;@b) -> $a, $b { ... } > > Why semicolon? Is it a special form?

Junctive puzzles.

2005-02-05 Thread Autrijus Tang
(I've just finished the pretty printing part in Pugs, so I'll use actual command line transcripts below. The leading "?" does not denote boolean context -- it's just telling pugs to do a big-step evaluation. Also, boolean literals are written in their Scheme forms.) In S06, the meaning of chaini

Re: Junctive puzzles.

2005-02-05 Thread Nicholas Clark
On Sat, Feb 05, 2005 at 08:33:25PM +0800, Autrijus Tang wrote: > With the note that "b" must be evaluated at most once. However, if > taken literally, it gives this rather weird result: > > pugs> ? 2 < (0 | 3) < 4 > (#t|#t) Surely you can do better than that for counterintuitive? :-) 4

Re: Junctive puzzles.

2005-02-05 Thread Autrijus Tang
On Sat, Feb 05, 2005 at 12:38:57PM +, Nicholas Clark wrote: > Surely you can do better than that for counterintuitive? :-) > > 4 < (0 | 6) < 2 pugs> ? 4 < (0 | 6) < 2 (#t|#f) Why is it so? Because: 4 < (0 | 6) and (0 | 6) < 2 (4 < 0 | 4 < 6) and (0 | 6) < 2 # local

Re: [perl #34059] [PATCH][MSWin32] Add NCI test symbols

2005-02-05 Thread chromatic
On Sat, 2005-02-05 at 19:32 +0100, Ron Blaschke wrote: > This patch adds all missing export symbols to libnci_test.dll that are > needed by t/pmc/nci.t. Why not generate the .def file instead of hoping that people add the correct symbols? Here's a patch that seems to do the trick for me (though

Re: [perl #34059] [PATCH][MSWin32] Add NCI test symbols

2005-02-05 Thread chromatic
On Sat, 2005-02-05 at 12:58 -0800, chromatic wrote: > Why not generate the .def file instead of hoping that people add the > correct symbols? Here's a patch that seems to do the trick for me > (though not running Windows, I can't really test if the defines are all > correct). Actually it doesn't

Re: [perl #34059] [PATCH][MSWin32] Add NCI test symbols

2005-02-05 Thread Ron Blaschke
chromatic wrote: > On Sat, 2005-02-05 at 12:58 -0800, chromatic wrote: >> Why not generate the .def file instead of hoping that people add the >> correct symbols? Here's a patch that seems to do the trick for me >> (though not running Windows, I can't really test if the defines are all >> correct

Re: Test names/comments/whatever?

2005-02-05 Thread Ian Langworth
Stevan Little wrote: I sent Schwern a patch to change 'names' to 'description', but then Andy brought up the idea of 'labels'. At the time, Schwern said it was 'in the pipeline', but I expect its actually been moved out since. Personally, I view them as 'descriptions' since thats what I usually

Re: Test names/comments/whatever?

2005-02-05 Thread Ian Langworth
Stevan Little wrote: I sent Schwern a patch to change 'names' to 'description', but then Andy brought up the idea of 'labels'. At the time, Schwern said it was 'in the pipeline', but I expect its actually been moved out since. Personally, I view them as 'descriptions' since thats what I usually

Re: Module::Packaged vs Phalanx 100

2005-02-05 Thread Johan Vromans
Leon Brocard <[EMAIL PROTECTED]> writes: > This is what you get when you set Module::Packaged against the Phalanx > 100. So right now FreeBSD packages the most of Phalanx, and it's kinda > interesting to see the version numbers. > > There might be bugs, Definitely. I'm quite sure Getopt::Long is

Re: Test names/comments/whatever?

2005-02-05 Thread Shawn Boyette
On Sat, 5 Feb 2005 15:12:20 -0500, Stevan Little <[EMAIL PROTECTED]> wrote: > I sent Schwern a patch to change 'names' to 'description', but then > Andy brought up the idea of 'labels'. At the time, Schwern said it was > 'in the pipeline', but I expect its actually been moved out since. > > Person

Re: Test names/comments/whatever?

2005-02-05 Thread chromatic
On Sat, 2005-02-05 at 15:23 -0500, Shawn Boyette wrote: > Also, is anything ever *done* with these chunks of text? When I first > started using Test::More, I expected that I'd get that text when a > test failed instead of just a line number. Run the test with perl -Mblib instead of make test, ./B

Re: Test names/comments/whatever?

2005-02-05 Thread Ovid
--- chromatic <[EMAIL PROTECTED]> wrote: > Alternately, encourage Andy to adopt some patch to > Test::Harness::Straps > that enables collecting that diagnostic information somehow and use > an alternate harness that displays test comments. Let me second that one! Of course, Andy's already made it

Re: Test names/comments/whatever?

2005-02-05 Thread chromatic
On Sat, 2005-02-05 at 16:39 -0800, Ovid wrote: > Let me second that one! Of course, Andy's already made it clear that > he doesn't have a lot of time, but I still don't mind kicking 'im. :) I think the right approach is to patch T::H::S to collect diagnostic information and make it available. I

Re: Test names/comments/whatever?

2005-02-05 Thread Andy Lester
On Feb 5, 2005, at 6:47 PM, chromatic wrote: I think the right approach is to patch T::H::S to collect diagnostic information and make it available. It's easy enough to grab it via IPC::Open3 elsewhere and pass a combined STDOUT/STDERR filehandle to analyze_fh(). Agreed. My goal is to have Test::Ha

[perl #34060] [MSWin32] Broken dynclasses

2005-02-05 Thread Ron Blaschke via RT
I'll tackle this one next. Ron

Re: CLI signature?

2005-02-05 Thread Johan Vromans
Hi Juerd, [Quoting Juerd, on February 5 2005, 16:57, in "CLI signature?"] > signature ( > Rule $pattern, > bool +$help:short('h'), > Int +$verbose :short('v'), > Str [EMAIL PROTECTED] = <-> > ); The actual parsing still has to happen 'somewhere else'

Re: Retry: ITypes and VTypes.

2005-02-05 Thread Alexey Trofimenko
On Fri, 4 Feb 2005 04:09:03 +0800, Autrijus Tang <[EMAIL PROTECTED]> wrote: ... Let's take the first one first, because it is what S06 seems to imply, although it is against Perl5's tie() intuition: my @carton is Scalar; # assuming this is the default Now @carton implements the

Re: Retry: ITypes and VTypes.

2005-02-05 Thread Brent 'Dax' Royal-Gordon
Alexey Trofimenko <[EMAIL PROTECTED]> wrote: >my $var = "test"; >my @arr := $var; > error? or maybe it would be the same weirdness, like in former example? or > maybe it's a ["test"]? The := operator uses the same rules as parameter passing. So, what do you think this does? sub foo(@

Re: Release 0.1.2 ?

2005-02-05 Thread Leopold Toetsch
Will Coleda <[EMAIL PROTECTED]> wrote: > http://rt.perl.org/rt3/Ticket/Display.html?id=33916 > According to this (which in turn was based on Leo's email to the list), we > were shooting for a release on Monday. Well, not exactly. I'm on the German Perl Workshop next week. Release will be after th

Re: [perl #34051] [PATCH] return absolute paths from Parrot_locate_runtime_file

2005-02-05 Thread Leopold Toetsch
Jeff Horwitz <[EMAIL PROTECTED]> wrote: > the attached patch adds a check in Parrot_locate_runtime_file so it > returns absolute paths as is. it handles win32 paths (and drive letters) > as well. Thanks, applied. > ... hopefully i chose the most logical place for this -- i didn't > think it bel

[perl #34059] [PATCH][MSWin32] Add NCI test symbols

2005-02-05 Thread via RT
# New Ticket Created by Ron Blaschke # Please include the string: [perl #34059] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=34059 > Attached patch adds missing NCI test symbols. This get tests t/pmc/nci.t #8, #51 and #

[perl #34060] [MSWin32] Broken dynclasses

2005-02-05 Thread via RT
# New Ticket Created by Ron Blaschke # Please include the string: [perl #34060] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=34060 > Jonathan Worthington wrote: > Ron Blaschke wrote: > Failed TestStat Wstat

Re: Test names/comments/whatever?

2005-02-05 Thread Stevan Little
I sent Schwern a patch to change 'names' to 'description', but then Andy brought up the idea of 'labels'. At the time, Schwern said it was 'in the pipeline', but I expect its actually been moved out since. Personally, I view them as 'descriptions' since thats what I usually write. But 'labels'

Re: Test names/comments/whatever?

2005-02-05 Thread David Golden
If this discussion means the voting has re-opened, I'm in favor of 'label' as it implies an identifying description, but also connotes something brief. David Stevan Little wrote: I sent Schwern a patch to change 'names' to 'description', but then Andy brought up the idea of 'labels'. At the time

Re: Module::Packaged vs Phalanx 100

2005-02-05 Thread Leon Brocard
Johan Vromans sent the following bits through the ether: > Definitely. I'm quite sure Getopt::Long is in _every_ distribution... Of course, this only notices individually-packaged CPAN dists (ignores the core). Leon -- Leon Brocard.http://www.astray.com/ scribot.