Re: is flattening the word to use when describing lazy lists?

2005-04-05 Thread Larry Wall
On Mon, Apr 04, 2005 at 05:40:10PM +, Terrence Brannon wrote: : : A Perl 5 user thinks of flattening a data structure as taking : something which is nested and linearizing it. : : FOR EXAMPLE: : : use Data::Hash::Flatten; : : # NESTED DATA : my $a = { bill = { '5/27/96' = { 'a.dat' =

Re: Second use of flattening

2005-04-05 Thread Juerd
Andrew Rodland skribis 2005-04-04 22:34 (-0400): Likewise, slurping is probably best explained as collecting. I like this. I'd be tempted to suggest scatter / gather, but that's Gather is taken. probably a bit opaque to the average reader. How about describing them as expand / collect for

Re: Second use of flattening

2005-04-05 Thread Larry Wall
On Mon, Apr 04, 2005 at 10:34:13PM -0400, Andrew Rodland wrote: : On Monday 04 April 2005 06:34 pm, Juerd wrote: : Terrence Brannon skribis 2005-04-04 18:45 (+): : So, to avoid confusion with the common understanding of flattening in : Perl, perhaps it should be called spreading or

Re: [PATCH] --without-icu

2005-04-05 Thread Leopold Toetsch
Jens Rieks [EMAIL PROTECTED] wrote: I've attached the patch that implements --without-icu. Comments welcome. 1) --without-icu works fine Needed a few changes to get rid of warnings in lib/Parrot/Test.pm when running make src_tests replaced isblank, it's a gcc extension 2) running Configure

Re: cvs commit: parrot/config/gen/makefiles root.in

2005-04-05 Thread Leopold Toetsch
Chip Salzenberg [EMAIL PROTECTED] wrote: cvsuser 05/04/04 13:03:46 Modified:config/gen/makefiles root.in Log: When generating parser or lexer, remove target .c file first. [ ... ] + $(RM_F) $(IMCC_DIR)/imcparser.c + $(RM_F) $(IMCC_DIR)/imclexer.c This isn't quite

more ICU notes

2005-04-05 Thread Leopold Toetsch
1) a hint, if you want to verify a config step: $ perl Configure.pl --verbose-step=ICU 2) verify that you link against the correct libicu $ nm -u parrot | grep isdigit u_isdigit_3_2 3) we could probably lift the restriction that we link with c++ I replaced LINK = c++ with LINK = cc in the

Re: Pugs Bug

2005-04-05 Thread wolverian
(Replying to p6l instead of p6c as requested.) On Mon, Apr 04, 2005 at 10:39:16AM -0700, Larry Wall wrote: (Now that builtins are just functions out in * space, we can probably afford to throw a few more convenience functions out there for common operations like word splitting and whitespace

Re: cvs commit: parrot/config/gen/makefiles root.in

2005-04-05 Thread Chip Salzenberg
According to Leo Toetsch: Chip Salzenberg [EMAIL PROTECTED] wrote: + $(RM_F) $(IMCC_DIR)/imcparser.c + $(RM_F) $(IMCC_DIR)/imclexer.c This isn't quite right, it works only if you have bison/flex and you did Configure.pl --maintainer If you don't change the files and just make, you

Re: A working version?

2005-04-05 Thread Leopold Toetsch
Nick Glencross wrote: Jarkko, thank you for your patience today. We to-and-fro'd more times than I originally intended. I would say that Tru64 does have 64 bit ints, which is pretty clear from the logs that you've been sending me. I'm guessing that intvalsize, instead of intsize is the

Re: Pugs Bug

2005-04-05 Thread Adriano Ferreira
Shouldn't these be just methods? I guess not. This is Perl and OO is not mandatory, or even desirable all the time. Adriano.

array of arrays, hash of hashes, elems, last

2005-04-05 Thread Lev Selector
These things don't work in pugs yet, right? = arrays of arrays hash of hashes etc. @ar.elems @ar.last = Warm Regards Lev Selector

Re: [S29] pick on other things than junctions

2005-04-05 Thread Ingo Blechschmidt
Hi, Trey Harris wrote: In a message dated Mon, 4 Apr 2005, Ingo Blechschmidt writes: What does pick return on hashes? Does it return a random value or a random pair? (I suppose returning a pair is more useful.) I'd assume in all cases that pick returns an *alias*, and in the case of

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, which

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

2005-04-05 Thread Mark Stosberg
As part of building web applications, I sometimes return a technical failure page to the web browser when something unexpected happens that seems like the software's fault. I'm wondering if it's the right thing to do to return a 500 error code as part of the headers. One reason to do this

Re: More Pugs Bugs

2005-04-05 Thread Autrijus Tang
On Mon, Apr 04, 2005 at 09:01:20PM -0400, Stevan Little wrote: eval 'sub foobar { return if 1; }'; I've fixed everything except this. I'm not exactly sure how the postfix form of if is supposed to work here, because the first thing the parser tries is to parse it as return(if(1)), as a valid

Re: Parameter and trait questions - just how 'only' _is_ 'read-only'?

2005-04-05 Thread Thomas Sandla
Larry Wall wrote: Roles cannot be derived from, so they're always final in that sense. We should probably consider them closed by default as well, or at least closed after first use. If a role specifies implementation, it's always default implementation, so overriding implementation always occurs

Re: More Pugs Bugs

2005-04-05 Thread Larry Wall
On Tue, Apr 05, 2005 at 09:22:29PM +0800, Autrijus Tang wrote: : On Mon, Apr 04, 2005 at 09:01:20PM -0400, Stevan Little wrote: : eval 'sub foobar { return if 1; }'; : : I've fixed everything except this. I'm not exactly sure how the postfix : form of if is supposed to work here, because the

Re: Parameter and trait questions - just how 'only' _is_ 'read-only'?

2005-04-05 Thread Thomas Sandlaß
HaloO Larry, you wrote: On Thu, Mar 31, 2005 at 06:35:06PM +0200, Thomas Sandlaß wrote: : Is typing optional in the sense that it is no syntax error but : otherwise ignored? To me this is pain but no gain :( Well, you guys keep ignoring the answer. Let me put it a bit more mathematically. The

Re: Parameter and trait questions - just how 'only' _is_ 'read-only'?

2005-04-05 Thread Larry Wall
On Tue, Apr 05, 2005 at 04:00:09PM +0200, Thomas Sandlaß wrote: : Larry Wall wrote: : Roles cannot be derived from, so they're always final in that sense. : We should probably consider them closed by default as well, or at least : closed after first use. If a role specifies implementation, it's

Re: [S29] pick on other things than junctions

2005-04-05 Thread Larry Wall
On Tue, Apr 05, 2005 at 02:38:05PM +0200, Ingo Blechschmidt wrote: : Hi, : : Trey Harris wrote: : In a message dated Mon, 4 Apr 2005, Ingo Blechschmidt writes: : What does pick return on hashes? Does it return a random value or a : random pair? (I suppose returning a pair is more useful.) :

Re: Pugs Bug

2005-04-05 Thread Larry Wall
On Tue, Apr 05, 2005 at 09:36:18AM +0300, wolverian wrote: : (Replying to p6l instead of p6c as requested.) : : On Mon, Apr 04, 2005 at 10:39:16AM -0700, Larry Wall wrote: : (Now that builtins are just functions out in * space, we can probably : afford to throw a few more convenience functions

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 than

Re: More Pugs Bugs

2005-04-05 Thread Autrijus Tang
On Tue, Apr 05, 2005 at 08:24:42AM -0700, Larry Wall wrote: That's why there's a statement_control:if, and there's a statement_modifer:if, but there's no prefix:if. If you see a statement modifier in the middle of an expression, it must be interpreted as a statement modifier regardless of the

Re: Pugs Bug

2005-04-05 Thread wolverian
On Tue, Apr 05, 2005 at 09:21:41AM -0700, Larry Wall wrote: Plus you really don't want to clutter the Str type with every little thing you might want to do with a string. foo.open() will probably work, but only because it doesn't find a Str.open and fails over to MMD dispatch, which ends up

Re: identity tests and comparing two references

2005-04-05 Thread Thomas Sandlaß
Juerd wrote: Thomas Sandlaß skribis 2005-04-04 18:50 (+0200): In particular what does infix=Scalar of Ref of Ref of Int,Int do? Depends. What does it mean? :) Specifically, what is infix, what is =? Ups, a missing : warps this to a completly different meaning! Comparing a coderef infix with the

Re: Pugs Bug

2005-04-05 Thread Juerd
wolverian skribis 2005-04-05 19:31 (+0300): Does [EMAIL PROTECTED] DWIM, by the way? I'm not sure about the precedence. Yes, . is supertight. Juerd -- http://convolution.nl/maak_juerd_blij.html http://convolution.nl/make_juerd_happy.html http://convolution.nl/gajigu_juerd_n.html

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]; ok($ses_id_from_cookie, admin - Login screen sets cookie

Re: [S29] pick on other things than junctions

2005-04-05 Thread Ingo Blechschmidt
Hi, Larry Wall wrote: : Same for hashes: [...] : my %hash = (a = 1, b = 2), : my $pair := %hash.pick; : $pair = ...; # %hash changed I'm not sure that works. We don't quite have pairs as first class containers. Binding would try to use a pair as a named argument, and would fail

Re: More Pugs Bugs

2005-04-05 Thread Larry Wall
On Wed, Apr 06, 2005 at 12:32:37AM +0800, Autrijus Tang wrote: : On Tue, Apr 05, 2005 at 08:24:42AM -0700, Larry Wall wrote: : That's why there's a statement_control:if, and there's a : statement_modifer:if, but there's no prefix:if. If you see : a statement modifier in the middle of an

Re: Pugs Bug

2005-04-05 Thread Larry Wall
On Tue, Apr 05, 2005 at 07:31:40PM +0300, wolverian wrote: : Does [EMAIL PROTECTED] DWIM, by the way? I'm not sure about the precedence. That depends on whether you mean ([EMAIL PROTECTED]).words or ~(@array.words) It happens to mean the latter. A . binds tighter than a symbolic

[perl #34684] [PATCH] Configure Python Version Guesswork

2005-04-05 Thread via RT
# New Ticket Created by Ron Blaschke # Please include the string: [perl #34684] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org/rt3/Ticket/Display.html?id=34684 Attached patch provides a less strict match of Python's version string, as

Re: identity tests and comparing two references

2005-04-05 Thread Larry Wall
On Tue, Apr 05, 2005 at 06:38:43PM +0200, Thomas Sandlaß wrote: : Ups, a missing : warps this to a completly different meaning! : Comparing a coderef infix with the comparison operator = : to the word list 'Scalar of Ref of Ref of Int,Int'. : : I tried to ask what infix:=Scalar of Ref of Ref of

Re: more ICU notes

2005-04-05 Thread Ron Blaschke
Leopold Toetsch wrote: 5) if you move $parrot/icu e.g. to $parrot/_icu you can run $ perl Configure.pl --nomanicheck Please verify the build on Windows platforms, thanks Looks good on Windows XP, VC++ 7.1. Ft/src/manifest.t complains, quite expectedly. Ron

Tcl, unicode...

2005-04-05 Thread William Coleda
I've been trying to add unicode support into Tcl... adding the parser support worked fine, so that I was able (in my sandbox) to get: puts \u30b3\u30fc\u30d2\u30fc Working... because puts is just iso-8859-01, and the unicode was just unicode. Once I started trying to do mix and match, I started

Re: More Pugs Bugs

2005-04-05 Thread Autrijus Tang
On Tue, Apr 05, 2005 at 10:33:00AM -0700, Larry Wall wrote: : Aye. Is there an idea on how the two forms of `if` would be defined : using plain Perl 6? That's exactly what the syntactic category syntax is for, and why parsing has to be done indirectly in terms of syntactic categories, if

Perl 6 Summary for 2005-03-22 through 2005-04-05

2005-04-05 Thread Matt Fowles
Perl 6 Language ceil and floor Ingo Blechschmidt wondered if ceil and floor would be in the core. Warnock applies... Although Unicode operators would let me define circumfix \lfloor \rfloor (although I only know how to make those symbols in tex...). Hmmm... using tex to right

no new Perl 6 module installer

2005-04-05 Thread Darren Duncan
Since Matt's recent lists summary brought this up ... At 11:47 PM -0400 4/5/05, Matt Fowles wrote: Makefile.pl Darren Duncan noticed that while most things in pugs were written in Perl 5, while Makefile.PL was still in Perl 5. He suggested that the Makefile.PLs in various modules be