Re: <[]> ugly and hard to type

2005-04-16 Thread Ashley Winters
On 4/15/05, Juerd <[EMAIL PROTECTED]> wrote: > Am I the only one who thinks <[a-z]> is ugly and hard to type because of > the nested brackets? The same goes for <{...}>. The latter can't easily > be fixed, I think, but the former perhaps can. If there are more who > think it needs to, that is. And

Re: Unify cwd() [was: Re: $*CWD instead of chdir() and cwd()]

2005-04-16 Thread Chip Salzenberg
According to Michael G Schwern: > On Fri, Apr 15, 2005 at 08:31:57PM -0400, Chip Salzenberg wrote: > > There are several methods to determine the current directory. > > Perl 6 is going to have to decide on some sort of standard internal getcwd > technique, $CWD or not. I don't think Perl 6 "has"

Re: <[]> ugly and hard to type

2005-04-16 Thread gcomnz
> I never liked character sets. They introduced yet another exception to > the parsing rules, and it irked me. If it weren't for the need to > optimize character sets, I'd prefer to be Pythonized into using @{'a' > .. 'z'} Isn't that just a digression into the bad old pre-internationalized days. U

Re: VTABLE methods and interfaces

2005-04-16 Thread Kevin Tew
Sam, Just wondering what the status is on python/parrot/pirate/pyrate. These both look outdated. http://www.intertwingly.net/stories/2004/10/05/pyrate.zip http://pirate.versionhost.com/viewcvs.cgi/pirate/ Is there a up to date cvs repo? Can we get this code checked into the parrot svn repo? Kevin T

Python on parrot

2005-04-16 Thread Kevin Tew
Sam, Just wondering what the status is on python/parrot/pirate/pyrate. These both look outdated. http://www.intertwingly.net/stories/2004/10/05/pyrate.zip http://pirate.versionhost.com/viewcvs.cgi/pirate/ Is there a up to date cvs repo? Can we get this code checked into the parrot svn repo? Kevin T

Re: [perl #34959] config/auto/gmp/gmp.in returns "1" instead of "0"

2005-04-16 Thread Adrian Lambeck
Am Donnerstag, 14. April 2005 09:04 schrieb Leopold Toetsch via RT: > Lambeck <[EMAIL PROTECTED]> wrote: > > Hi all, > > Configure.pl failed to find the GNU Math Lib (GMP) on my system > > eventhough it is installed properly (version 4.1.4) . > > I compiled config/auto/gmp/gmp.in by hand and it re

Re: Unify cwd() [was: Re: $*CWD instead of chdir() and cwd()]

2005-04-16 Thread Michael G Schwern
On Fri, Apr 15, 2005 at 09:32:23PM -0400, Chip Salzenberg wrote: > > Perl 6 is going to have to decide on some sort of standard internal getcwd > > technique, $CWD or not. > > I don't think Perl 6 "has" to do anything of the kind. It would > be a mistake to try. Sorry, I had assumed that having

Re: [RFC] some doubtable MMDs?

2005-04-16 Thread Leopold Toetsch
Larry Wall <[EMAIL PROTECTED]> wrote: > On Fri, Apr 15, 2005 at 02:38:36PM +0200, Leopold Toetsch wrote: >: I'm not quite sure, but it seems that some of the MMD functions may >: better be vtable methods: >: >: - bitwise_sh[rl]*shift by anything other then int? >: - bitwise_lsris missin

Re: Various questions

2005-04-16 Thread Leopold Toetsch
Philip Taylor <[EMAIL PROTECTED]> wrote: > I've been working on a C-to-Parrot compiler (actually an IMC backend > for the LCC compiler), tentatively named Carrot, over the past week. It > can currently do some reasonably useful things, like running the Cola > compiler (with only a very small amount

[FYI] possibly incompatible string change - rev 7851

2005-04-16 Thread Leopold Toetsch
Yesterday on IRC was some discussion [1] about the default string representation. The consensus was that strings should by default have "ascii" charset and not "iso-8859-1" as it was for some weeks. Autrijus has prepared a patch "parrot-broken-ascii.patch", which did parts of this change. I've

Re: nbsp in \s, and <>

2005-04-16 Thread Leopold Toetsch
Larry Wall <[EMAIL PROTECTED]> wrote: > On Fri, Apr 15, 2005 at 11:44:03PM +0200, Juerd wrote: >: Is there a -like thingy that is always \s+? > Not currently, since \s+ is there. used to be that, but > currently is defined as the magical whitespace matcher used by :words. >: Do \s and match no

Re: [perl #34959] config/auto/gmp/gmp.in returns "1" instead of "0"

2005-04-16 Thread Leopold Toetsch
Adrian Lambeck wrote: Am Donnerstag, 14. April 2005 09:04 schrieb Leopold Toetsch via RT: Lambeck <[EMAIL PROTECTED]> wrote: Hi all, Configure.pl failed to find the GNU Math Lib (GMP) on my system eventhough it is installed properly (version 4.1.4) . I compiled config/auto/gmp/gmp.in by hand and i

Re: [perl #34984] [PATCH] Fix segfault with const

2005-04-16 Thread Nick Glencross
Nicholas Clark wrote: On Fri, Apr 15, 2005 at 07:26:56PM +0100, Nick Glencross wrote: +// Forbid assigning a string to anything other than a string const +// for now In future, please don't use C99 comments. (apart from that, I don't have the knowledge to comment on this patch) A

Re: [perl #34984] [PATCH] Fix segfault with const

2005-04-16 Thread Leopold Toetsch
Nick Glencross <[EMAIL PROTECTED]> wrote: > Leopold Toetsch via RT wrote: >> >>>I think, we could be a bit more graceful here for I/N mismatch and set >>>for the above case the constant val->set to 'N'. >>> >>> > Let me redo that... I've just sent the wrong attachment which had a > typo in it ..

Re: [pugs] Quoting constructs

2005-04-16 Thread Patrick R. Michaud
On Sat, Apr 16, 2005 at 03:14:50AM +0300, Roie Marianer wrote: > > By the way, something tells me perl6-compiler isn't the best place for this > discussion. Is there a secret group of people that discusses cornercases for > perl6, and if so could someone tell me on what list they live? perl6-co

Quoting interpolation in Perl5 vs. Perl6

2005-04-16 Thread Roie Marianer
Hi all. I'm trying to get quoting interpolation to work, which means I first have to understand it a little better. In Perl 5, as far as I can see, the delimiter of quoting constructs (whether it's "", '' or qq ) is searched for before the string is parsed. This means that, for example, "%ha

Re: Quoting interpolation in Perl5 vs. Perl6

2005-04-16 Thread Juerd
Roie Marianer skribis 2005-04-16 18:28 (+0300): > My suggestion is to check for delimiters only when it's ambiguous: Inside a > variable name (qq x$varxy -> "$var"y), and at the beginning of every > subscript of a scalar, and every subscript after the first one of an array, > hash of sub (becaus

Maybe I'm back

2005-04-16 Thread Michael Scott
Hello all, Maybe some of you remember how I used to have endless hours in Berlin to fiddle with Parrot documentation. Then I got a job, moved back to London, and disappeared. I can't say I have been following the list closely, but I have read the occasional summary from time to time. I'm out of

Re: [pugs] Quoting constructs

2005-04-16 Thread Larry Wall
On Sat, Apr 16, 2005 at 03:14:50AM +0300, Roie Marianer wrote: : I actually knew that, but in my head $key_b and $value_b were single words. : But according to S02, the interpolation is protected by quotes. That is, if : $key_b is q0/printf "Hello, world\n" or die"/, that's four words, correct? O

Re: Unify cwd() [was: Re: $*CWD instead of chdir() and cwd()]

2005-04-16 Thread John Macdonald
On Saturday 16 April 2005 01:53, Michael G Schwern wrote: > How cwd() is implemented is not so important as what happens when it hits > an edge case. So maybe we can try to come up with a best fit cwd(). I'd > start by listing out the edge cases and what the possible behaviors are. > Maybe we

Re: [RFC] some doubtable MMDs?

2005-04-16 Thread Larry Wall
On Fri, Apr 15, 2005 at 11:11:00PM -0400, Bob Rogers wrote: : By the same token, couldn't one reasonably ask for a boolean array that : required BigInt subscripts, even on said 32-bit machine? (Once boolean : arrays actually store one element per bit, that is.) Or are subscripts : this large rule

Re: [RFC] some doubtable MMDs?

2005-04-16 Thread Larry Wall
On Sat, Apr 16, 2005 at 10:36:37AM +0200, Leopold Toetsch wrote: : Larry Wall <[EMAIL PROTECTED]> wrote: : > Perl 6 tends to distinguish these as different operators, though Perl 5 : > did overload the bitwise ops on both strings and numbers, which newbies : > found confusing in ambiguous cases, wh

Re: trim() and words() functions?

2005-04-16 Thread Terrence Brannon
[EMAIL PROTECTED] (Larry Wall) writes: > Of course, generations of Perl programmers have > made do with various forms of s///, I have found String::Strip on CPAN to work well for my needs in this area.

Re: nbsp in \s, and <>

2005-04-16 Thread Larry Wall
On Sat, Apr 16, 2005 at 10:22:45AM +0200, Leopold Toetsch wrote: : Well there are three different whitespace lists. The Parrot program [1] : below shows all, including space and blank. I suspect we'll end up with about as many whitespace definitions as there are computer languages, or maybe as man

Re: [perl #34959] config/auto/gmp/gmp.in returns "1" instead of "0"

2005-04-16 Thread Juergen Boemmels
On Thursday 14 April 2005 08:36, Leopold Toetsch wrote: > Lambeck <[EMAIL PROTECTED]> wrote: > > Hi all, > > Configure.pl failed to find the GNU Math Lib (GMP) on my system > > eventhough it is installed properly (version 4.1.4) . > > I compiled config/auto/gmp/gmp.in by hand and it returned: > >

Re: <[]> ugly and hard to type

2005-04-16 Thread Larry Wall
On Sat, Apr 16, 2005 at 02:42:25AM -0700, Ashley Winters wrote: : I never liked character sets. They introduced yet another exception to : the parsing rules, and it irked me. If it weren't for the need to : optimize character sets, I'd prefer to be Pythonized into using @{'a' : .. 'z'} : : If I re

Re: Quoting interpolation in Perl5 vs. Perl6

2005-04-16 Thread Larry Wall
On Sat, Apr 16, 2005 at 06:28:37PM +0300, Roie Marianer wrote: : Hi all. : : I'm trying to get quoting interpolation to work, which means I first have to : understand it a little better. : : In Perl 5, as far as I can see, the delimiter of quoting constructs (whether : it's "", '' or qq ) is se

Re: Quoting interpolation in Perl5 vs. Perl6

2005-04-16 Thread Larry Wall
On Sat, Apr 16, 2005 at 11:30:49AM -0700, Larry Wall wrote: : The basic rule of thumb is that we pretend we're a top-down parser : even if we aren't, and we only look for the trailing delimiter when : we're not trying to parse something embedded that would naturally : slurp up the trailing delimite

Re: Quoting interpolation in Perl5 vs. Perl6

2005-04-16 Thread Roie Marianer
On Saturday 16 April 2005 10:10 pm, Larry Wall wrote: > So > this is a syntax error (of the runaway "" variety, presumably): > > " @foo::bar::baz::fee::fie::foe[ " I was with you until that. What about " @foo::bar::baz::fee::fie::foe[ "1" ] " Isn't that a valid index into the array? Or is that

Re: Quoting interpolation in Perl5 vs. Perl6

2005-04-16 Thread Larry Wall
On Sat, Apr 16, 2005 at 10:16:43PM +0300, Roie Marianer wrote: : On Saturday 16 April 2005 10:10 pm, Larry Wall wrote: : > So : > this is a syntax error (of the runaway "" variety, presumably): : > : > " @foo::bar::baz::fee::fie::foe[ " : I was with you until that. What about : " @foo::bar::ba

Re: <[]> ugly and hard to type

2005-04-16 Thread Juerd
Larry Wall skribis 2005-04-16 11:08 (-0700): > : $foo ~~ /@{< [ ] { } < > : ++ $ . ? / +| +& ?| ?& >}/ > Not unless you backwhack that internal > there. > [...] > @myfavoritepunctuations = < [ ] { } < \> : ++ $ . ? / +| +& ?| ?& >; Why isn't nesting allowed there? I'd expect it to work a bit l

Re: <[]> ugly and hard to type

2005-04-16 Thread Larry Wall
On Sat, Apr 16, 2005 at 10:01:44PM +0200, Juerd wrote: : Larry Wall skribis 2005-04-16 11:08 (-0700): : > : $foo ~~ /@{< [ ] { } < > : ++ $ . ? / +| +& ?| ?& >}/ : > Not unless you backwhack that internal > there. : > [...] : > @myfavoritepunctuations = < [ ] { } < \> : ++ $ . ? / +| +& ?| ?& >

Re: Unify cwd() [was: Re: $*CWD instead of chdir() and cwd()]

2005-04-16 Thread Chip Salzenberg
According to Michael G Schwern: > Yes, there are lots of ways to check the cwd each filling in one edge > case or another. However I'd like to believe its possible to come up with > one simple, safe cwd() that works for 99.9% of the cases and call that cwd(). Well, it's certainly possible ... and

Re: ANN: JavaScript TestSimple 0.02

2005-04-16 Thread Adam Kennedy
* Decide where to send test output, and where to allow other output to be sent. Test::Builder clones STDERR and STDOUT for this purpose. We'll probably have to do it by overriding C, but it'd be good to allow users to define alternate outputs (tests may not always run in a browser, eh?). Maybe

Re: Kwalitee and has_test_*

2005-04-16 Thread Adam Kennedy
Christopher H. Laco wrote: Tony Bowden wrote: On Thu, Apr 07, 2005 at 12:32:31PM -0400, Christopher H. Laco wrote: CPANTS can't check that for me, as I don't ship those tests. They're part of my development environment, not part of my release tree. That is true. But if you don't ship them, how do

Re: Kwalitee and has_test_*

2005-04-16 Thread Adam Kennedy
Michael Graham wrote: Another good reason to ship all of your development tests with code is that it makes it easer for users to submit patches with tests. Or to fork your code and retain all your development tools and methods. Perl::MinimumVersion, which doesn't exist yet, could check that the v

Re: TestSimple/More/Builder in JavaScript

2005-04-16 Thread Adam Kennedy
David Wheeler wrote: On Apr 7, 2005, at 11:32 AM, Christopher H. Laco wrote: OK, now whos gonna build JPANTS? :-) JSPANTS, you mean? I think we need a CJSPAN, first. Alias? Yes well... I'm getting there slowly. JavaScript::Librarian + Algorithm::Dependency + YAML ought to be enough to get some b

Re: Kwalitee and has_test_*

2005-04-16 Thread Michael Graham
> Michael Graham wrote: > > Another good reason to ship all of your development tests with code is > > that it makes it easer for users to submit patches with tests. Or to > > fork your code and retain all your development tools and methods. > > Perl::MinimumVersion, which doesn't exist yet, coul

Re: Comparing rationals/floats

2005-04-16 Thread Larry Wall
On Fri, Apr 15, 2005 at 04:18:51PM -0700, gcomnz wrote: : More questions stemming from cookbook work... Decimal Comparisons: : : The most common recipe around for comparisons is to use sprintf to cut : the decimals to size and then compare strings. Seems ugly. Certainly, but I don't think the sit

Re: Unify cwd() [was: Re: $*CWD instead of chdir() and cwd()]

2005-04-16 Thread Dave Whipp
Chip Salzenberg wrote: As you know, under Unix, there's no such thing as "the current directory" as a string. The only durable current directory is the device and inode of C. It's not wise to conflate the current directory with a name that at some point in the past could have been used to reach i

More quoting issues

2005-04-16 Thread Roie Marianer
OK, so I'm getting close to having everything work (<<>> gave me a hard time, but I tamed it in the end). I noticed something weird about the <> construct: pugs> %a (('1' => 'a'), ('1 2' => 'both'), ('2' => 'b')) pugs> %a{<1 2>} 'both' pugs> %a{1,2} ('a', 'b') pugs> %a{<1 2>,()} ('a', 'b') I tri

Re: Python on parrot

2005-04-16 Thread Sam Ruby
Kevin Tew wrote: Sam, Just wondering what the status is on python/parrot/pirate/pyrate. These both look outdated. http://www.intertwingly.net/stories/2004/10/05/pyrate.zip http://pirate.versionhost.com/viewcvs.cgi/pirate/ I haven't looked at it for a few months now. I do plan to revisit it enough

Re: Python on parrot

2005-04-16 Thread Sam Ruby
[I hope you don't mind me putting this back on the list - I would prefer that everybody who is interested can follow along and/or participate] Kevin Tew wrote: Sam Ruby wrote: Kevin Tew wrote: Sam, Just wondering what the status is on python/parrot/pirate/pyrate. These both look outdated. http://

Re: Kwalitee and has_test_*

2005-04-16 Thread chromatic
On Sat, 2005-04-16 at 19:31 -0400, Michael Graham wrote: > I'm not suggesting that end users be forced to *run* your development > tests. Just that the tests be included in your CPAN package. Ideally, > the install process can be made smart enough to skip this kind of test. "Shipping tests but

Re: Kwalitee and has_test_*

2005-04-16 Thread Andy Lester
I'm about halfway ready to propose 'has_indentation' as a kwalitee metric. And the more the better! -- Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance

Re: Kwalitee and has_test_*

2005-04-16 Thread chromatic
On Sat, 2005-04-16 at 20:59 -0500, Andy Lester wrote: > > I'm about halfway ready to propose 'has_indentation' as a kwalitee > > metric. > And the more the better! Well sure. Two-space indent is clearly better than one-space indent, and four-space is at least twice as good as that. It falls do

Re: [perl #34988] [PATCH] Fix a few more typos

2005-04-16 Thread chromatic
On Thu, 2005-04-14 at 12:28 -0700, Nick Glencross wrote: > This patch fixes a few more typos. I'll leave it a few months before > doing this again. > I'm assuming that 'heisenbugs' is for real, that made me chuckle It's a real term, for as real as programmer neologisms can be. Thanks, appl

Re: [perl #34989] [PATCH] Fix a few more typos

2005-04-16 Thread chromatic
On Thu, 2005-04-14 at 12:29 -0700, Nick Glencross wrote: > This patch fixes a few more typos. I'll leave it a few months before > doing this again. This looks like a duplicate of #34988, which I've applied, so queuemasters please close. Nick, I've changed at least one occurrence of 'uninitializ

Re: More quoting issues

2005-04-16 Thread Autrijus Tang
On Sun, Apr 17, 2005 at 03:33:26AM +0300, Roie Marianer wrote: > I tried to look into things, and it seems that <1 2> acting like a > scalar when it's inside a hash subscript, but nowhere else; when I > forced the final parameter of doFetch to be False (Eval.hs line 402) I > got the correct result.

forced manifest check

2005-04-16 Thread Robert Spier
> > Well, it always depends, how responds looks like: > > Committed revision 1234 > > * > ATT MAINFEST ERROR > missing bla.bla ... > * This is very similar to what it did under CVS, although maybe not quite as big. Anyway, if this