Re: Some questions about operators.

2004-03-19 Thread Luke Palmer
Austin Hastings writes: > > -Original Message- > > From: Luke Palmer [mailto:[EMAIL PROTECTED] > > Sent: Friday, 19 March, 2004 10:06 PM > > To: Joe Gottman > > Cc: Perl6 > > Subject: Re: Some questions about operators. > > > > > > Joe Gottman writes: > > > 2) Do all of the xor variants h

Re: Optimizations for Objects

2004-03-19 Thread Leopold Toetsch
Larry Wall <[EMAIL PROTECTED]> wrote: > On Fri, Mar 19, 2004 at 08:57:28AM +0100, Leopold Toetsch wrote: >: I'd like to have, if possible a clear indication: that's a plain >: function or method call and this is not. I think the possible speedup is >: worth the effort. > I have no problem with "p

RE: Some questions about operators.

2004-03-19 Thread Austin Hastings
> -Original Message- > From: Luke Palmer [mailto:[EMAIL PROTECTED] > Sent: Friday, 19 March, 2004 10:06 PM > To: Joe Gottman > Cc: Perl6 > Subject: Re: Some questions about operators. > > > Joe Gottman writes: > > 2) Do all of the xor variants have the property that > > chained calls re

Re: Configure.pl and the history of the world

2004-03-19 Thread Brent 'Dax' Royal-Gordon
Josh Wilmes wrote: At 10:22 on 03/18/2004 EST, Andrew Dougherty <[EMAIL PROTECTED]> wrote: 5. You probably don't need to support Eunice anymore. I think i'm not the only one who would be deeply upset if I ceased to be congratulated for not running Eunice though. Ah, but since we'll have One Confi

Re: Configure.pl and the history of the world

2004-03-19 Thread Josh Wilmes
At 10:22 on 03/18/2004 EST, Andrew Dougherty <[EMAIL PROTECTED]> wrote: > 5. You probably don't need to support Eunice anymore. I think i'm not the only one who would be deeply upset if I ceased to be congratulated for not running Eunice though. --Josh

Re: Configure.pl and the history of the world

2004-03-19 Thread Josh Wilmes
I began a little piece of this ages ago- attempting to translate the parts that identify the platform ($^O, essentially) from metaconfig to something we could put into Configure.pl. Even that relatively simple chore wasn't too easy. I should still have the work-in-progress code for that around

Re: Some questions about operators.

2004-03-19 Thread Luke Palmer
Joe Gottman writes: > 2) Do all of the xor variants have the property that chained calls > return true if exactly one input parameter is true? I would imagine not. C is spelled out, and by definition XOR returns parity. On the other hand, the junctive ^ (one()) is exactly one. > > 3)

Some questions about operators.

2004-03-19 Thread Joe Gottman
I just read Synopsis 3, and I have several questions. 1) Synopsis 3 says that the difference between $x ?| $y and $x || $y is that the later always returns a Boolean. Does this mean that $x ?| $y short-circuits? 2) Do all of the xor variants have the property that chained cal

Re: Oops, here's the full parrotunit

2004-03-19 Thread Leopold Toetsch
Piers Cawley <[EMAIL PROTECTED]> wrote: > I knew I forgot something in my last post... Still: EÄttätschmentMissin leo

Re: Optimizations for Objects

2004-03-19 Thread James Mastros
Larry Wall wrote: We can certainly make it the default that a routine is not going to do anything fancy with continuations unless it is explicitly declared to allow it. As to what that declaration should be, I have no idea. Probably just a trait that says, "is continuationalizableish" or some such

Re: Oops, here's the full parrotunit

2004-03-19 Thread Piers Cawley
parrotunit.tar.gz Description: Binary data

Re: Optimizations for Objects

2004-03-19 Thread Larry Wall
On Fri, Mar 19, 2004 at 08:57:28AM +0100, Leopold Toetsch wrote: : What's the usage of Continuations from HLLs point of view? Can we get : some hints, what is intended? >From the standpoint of Perl 6, I hope to hide continuations far, far away in a galaxy long ago. No wait, wrong movie... We can

Re: Funky «vector» operator

2004-03-19 Thread Larry Wall
On Fri, Mar 19, 2004 at 08:58:52PM +0100, Karl Brodowsky wrote: : Btw. since it is favored that the default encoding for perl6 : source code will be utf-8, it is not enough that you type something : that displays as « or ». Your editor has to support utf-8 or : you need to have conversion tools to

Re: [Patch] fix tests failing due to recent PerlNum modifications

2004-03-19 Thread Leopold Toetsch
Jens Rieks <[EMAIL PROTECTED]> wrote: > Hi, > new P0, .PerlNum > set P0, 0.0 > print P0 > should IMO print "0.00" rather than "0", because its a floating point > number and not an integer. > What are the arguments for printing "0"? PerlNums evaluating to whole integers (except -0.0 now

Re: Funky «vector» operator

2004-03-19 Thread Karl Brodowsky
Dear All, just for the Emacs-users among you: C-x 8 < yields « and C-x 8 > yields ». For the Unix/Linux users it is possible to setup or modify the keyboard layout using xmodmap. Actually there are so many combinations of OS, keyboard layouts, tools, editors and unicode encodings that this could b

Re: [Patch] fix tests failing due to recent PerlNum modifications

2004-03-19 Thread Jens Rieks
Hi, On Friday 19 March 2004 16:23, Leopold Toetsch wrote: > I'm currently fixing the code. > So thanks - not needed. new P0, .PerlNum set P0, 0.0 print P0 should IMO print "0.00" rather than "0", because its a floating point number and not an integer. What are the arguments for printi

Re: Optimizations for Objects

2004-03-19 Thread ibotty
> This idea involves two assumptions: there are three kinds of people. those that can count and the others ;) ~ibotty

Re: Funky «vector» operator

2004-03-19 Thread Adrian Howard
On 19 Mar 2004, at 16:16, Larry Wall wrote Another approach would be to write a little fixup script that turns the ASCII variants into the non-ASCII variants, and then you could bind it to a function key to translate the current line. That has the advantage that you could use it on a script someon

Re: Funky «vector» operator

2004-03-19 Thread Larry Wall
Another approach would be to write a little fixup script that turns the ASCII variants into the non-ASCII variants, and then you could bind it to a function key to translate the current line. That has the advantage that you could use it on a script someone else sends you as well if you find the AS

Nesting Test::Harness

2004-03-19 Thread mjcarman
Is there a way to nest usage of Test::Harness? I have an application with a number of custom modules. I want to structure my test suite this way: myapp.t module_a.t module_b.t module_a.t foo.t bar.t module_a.t baz.t quux.t That is,

Oops, here's the full parrotunit

2004-03-19 Thread Piers Cawley
I knew I forgot something in my last post... If you unpack this in your parrot directory you'll get library/parrotunit.imc library/TestCase.imc library/TestResult.imc library/WasRun.imc t/test.imc Go to the parrot directory and, do ./parrot t/test.imc and the tests will run. Annoyingly, everyt

Something rotten with the state of continuations...

2004-03-19 Thread Piers Cawley
I've been trying to implement a Parrot port of xUnit so we can write tests natively in parrot and things were going reasonably well until I reached the point where I needed to do exception handling. Exception handling hurt my head, badly, so eventually I gave up and used a continuation instead. H

building an open source testing community

2004-03-19 Thread Danny R. Faught
I run a mailing list for software testers called swtest-discuss (http://lists.topica.com/lists/swtest-discuss/). There are a few people there (including me) who are interested in talking about how people do testing for open source projects. I haven't yet found a community of open source teste

Re: [Patch] fix tests failing due to recent PerlNum modifications

2004-03-19 Thread Leopold Toetsch
Jens Rieks <[EMAIL PROTECTED]> wrote: I'm currently fixing the code. So thanks - not needed. leo

Re: [CVS ci] OpsFile hints - 1

2004-03-19 Thread Leopold Toetsch
Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> wrote: > Leopold Toetsch wrote: > > What ops aren't supposed to >> be in miniparrot? > Anything we can't guarantee can be supported on any ANSI-compliant > platform with very little to no probing. (Ideally, I'd like for > miniparrot to include no tes

Re: Funky «vector» operator

2004-03-19 Thread Matthew Walton
Robin Berjon wrote: Specifying the OS is not enough, you need at least the keyboard layout. It would be impossible to have shortcuts involving | or \ on a French keyboard since they are respectively Alt-Shift-L and Alt-Shift-: OS X / iBook / fr-fr « Alt-è » Alt-Shit-è Good point. I tend to

Re: Funky «vector» operator

2004-03-19 Thread Gregor N. Purdy
Oh, and the form doesn't require you to do the :set digraph thing. Its always available. Regards, -- Gregor On Fri, 2004-03-19 at 06:16, Gregor N. Purdy wrote: > For me, (vim 6.2), that is > > < < to get « > > > to get » > > after doing > > :set digraph > > (list of available digra

Testing XS modules on Ponie

2004-03-19 Thread Nick Ing-Simmons
Arthur Bergman <[EMAIL PROTECTED]> writes: >This is Ponie, development release 2 > > > "And, isn't sanity really just a one-trick ponie anyway? I mean all >you get is one trick, rational thinking, but when you're good and >crazy, oooh, oooh, oooh, the sky

Re: Funky «vector» operator

2004-03-19 Thread Gregor N. Purdy
For me, (vim 6.2), that is < < to get « > > to get » after doing :set digraph (list of available digraphs can be seen by :digraph) But, I find the above a bit unnerving because I've deleted the character, and then if I type a certain character next I haven't. Vim also allows < < t

Re: Funky «vector» operator

2004-03-19 Thread Robin Berjon
Matthew Walton wrote: For the record, on Mac OS X it's Option-\ for « and Option-Shift-\ for » (where Option-Shift-\ may also be seen as as Option-Shift-|). It is entirely possible that this is different on a normal Apple keyboard as opposed to the one in my Powerbook, but that strikes me as unl

Re: Continuation usage

2004-03-19 Thread Piers Cawley
Leopold Toetsch <[EMAIL PROTECTED]> writes: > Piers Cawley <[EMAIL PROTECTED]> wrote: >> Jens Rieks <[EMAIL PROTECTED]> writes: > >>> Hi, >>> >>> does the attached test use the Continuation in a correct way? >>> The test failes, what am I doing wrong? > >> Without running it I'm guessing that it p

Re: Funky «vector» operator

2004-03-19 Thread Matthew Walton
Angel Faus wrote: Most people know about this sequence because the ~ character is a common one in URLs, so the situation is not as bad as i may look. Neverthless, I definetly hope that a future FAQ of perl6 has a big section labeled How do I Write These Funky Chars in My OS. That sounds like a g

Re: Funky «vector» operator

2004-03-19 Thread Rafael Garcia-Suarez
Andy Wardley wrote in perl.perl6.language : > I'm so happy! I just found out, totally by accident, that I can type > the « and » characters by pressing AltGr + Z and AltGr + X, > respectively. Of course this information is almost completely unusable without knowing your OS, your locale, and you

Re: Funky «vector» operator

2004-03-19 Thread Angel Faus
Viernes 19 Marzo 2004 13:08, Andy Wardley wrote: > I'm so happy! I just found out, totally by accident, that I can > type the « and » characters by pressing AltGr + Z and AltGr + X, > respectively. > > Apologies if this is common knowledge, but it was news to me, and I > thought I'd share this lit

Re: [CVS ci] OpsFile hints - 1

2004-03-19 Thread Brent 'Dax' Royal-Gordon
Leopold Toetsch wrote: We also need a way to mark ops for inclusion in miniparrot's limited op set--although it might be better to do that in an external file. Or mark exclusion, which might be simpler. Simpler, yes. Safer, no. > What ops aren't supposed to be in miniparrot? Anything we can't gua

Re: [CVS ci] OpsFile hints - 1

2004-03-19 Thread Leopold Toetsch
Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> wrote: > Leopold Toetsch wrote: >> Some weeks ago I posted a proposal for additional hints in ops files. We >> need additionally (at least): >> >> 1) a per argument flag, if this argument is indicating a branch offset >> 2) Classification of opcodes (s.

Re: [CVS ci] OpsFile hints - 1

2004-03-19 Thread Leopold Toetsch
Jens Rieks <[EMAIL PROTECTED]> wrote: > Hi, > On Friday 19 March 2004 12:07, Leopold Toetsch wrote: >> 2) Classification of opcodes (s. Safe(3pm), Opcode(3pm). I've just done >> a few - only to see if it get parsed correctly. This needs a lot of work >> and thought. Any help is much appreciated he

Re: Optimizations for Objects

2004-03-19 Thread Brent 'Dax' Royal-Gordon
I may have a possible solution. Disclaimer: I do not really understand continuations, so I may be completely wrong. This idea involves two assumptions: 1. Most Parrot code will not use continuations except for returning. (There will be a significant efficiency loss otherwise.) 2. The most ex

[Patch] fix tests failing due to recent PerlNum modifications

2004-03-19 Thread Jens Rieks
jens Index: t/pmc/pmc.t === RCS file: /cvs/public/parrot/t/pmc/pmc.t,v retrieving revision 1.84 diff -u -r1.84 pmc.t --- t/pmc/pmc.t 14 Mar 2004 08:49:16 - 1.84 +++ t/pmc/pmc.t 19 Mar 2004 12:20:49 - @@ -774,7 +774,7 @@

Re: [CVS ci] OpsFile hints - 1

2004-03-19 Thread Jens Rieks
Hi, On Friday 19 March 2004 12:07, Leopold Toetsch wrote: > Some weeks ago I posted a proposal for additional hints in ops files. We > need additionally (at least): > > 1) a per argument flag, if this argument is indicating a branch offset > or address: > >inline op bsr (label INT) > > "label"

Funky «vector» operator

2004-03-19 Thread Andy Wardley
I'm so happy! I just found out, totally by accident, that I can type the « and » characters by pressing AltGr + Z and AltGr + X, respectively. Apologies if this is common knowledge, but it was news to me, and I thought I'd share this little Perl6 of wisdom. Your mileage may vary, of course,

Re: Optimizations for Objects

2004-03-19 Thread Piers Cawley
Leopold Toetsch <[EMAIL PROTECTED]> writes: > Dan Sugalski <[EMAIL PROTECTED]> wrote: >> At 10:38 PM +0100 3/18/04, Leopold Toetsch wrote: >>> >>>Which brings up again my warnocked question: How can return >>>continuations get reused? > >> Works like this. (No pasm, but it should be obvious) > > O

Re: [CVS ci] OpsFile hints - 1

2004-03-19 Thread Brent 'Dax' Royal-Gordon
Leopold Toetsch wrote: Some weeks ago I posted a proposal for additional hints in ops files. We need additionally (at least): 1) a per argument flag, if this argument is indicating a branch offset 2) Classification of opcodes (s. Safe(3pm), Opcode(3pm). I've just done 3) A flag, if the opcode s

Re: [perl #27690] Numeric comparison bug

2004-03-19 Thread Leopold Toetsch
Mark A Biggar <[EMAIL PROTECTED]> wrote: > The real problem is that you always want to use exactly the same code for > ALL cases of string-to-float conversion. Yep, was outlined by Larry too. That's already changed. [ Please don't quote the whole thread, thanks ] leo

[CVS ci] OpsFile hints - 1

2004-03-19 Thread Leopold Toetsch
Some weeks ago I posted a proposal for additional hints in ops files. We need additionally (at least): 1) a per argument flag, if this argument is indicating a branch offset or address: inline op bsr (label INT) "label" is basically "in", additionally there are now "labelvar" and "labelcons

Re: [BUG] imcc: no newline at end of file

2004-03-19 Thread Leopold Toetsch
Jens Rieks <[EMAIL PROTECTED]> wrote: > Hi, > the attached test fails. There is no newline at the end of the file. > I think that imcc is causing a memory leak due to this, I got error messages > like: > "store_sub_in_namespace: sub '__new_class' namespace #1082752832 too > big.namespace" Must

Re: Continuation usage

2004-03-19 Thread Leopold Toetsch
Piers Cawley <[EMAIL PROTECTED]> wrote: > Jens Rieks <[EMAIL PROTECTED]> writes: >> Hi, >> >> does the attached test use the Continuation in a correct way? >> The test failes, what am I doing wrong? > Without running it I'm guessing that it prints out something like > 456=789 > 456=456 > 123=123

Re: [perl #27690] Numeric comparison bug

2004-03-19 Thread mark . a . biggar
The real problem is that you always want to use exactly the same code for ALL cases of string-to-float conversion. The first public example of this problem was the FORTRAN II compiler from IBM in the 60's. The compiler and the IO library was written by two different people and so constants in pro

Re: cvs commit: parrot/config/gen/platform/generic math.h

2004-03-19 Thread Brent 'Dax' Royal-Gordon
Leopold Toetsch wrote: Courtesy of Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> Er...that wasn't me--I was just passing it along, as I said in the message. (If it was me, I'd likely have committed it myself. ;^) ) Credit goes to Matt Fowles <[EMAIL PROTECTED]>. (Leo, I tried to send this to you

Re: [perl #27746] Fix for languages/tcl, when '.' is not in $PATH

2004-03-19 Thread Leopold Toetsch
Bernhard Schmalhofer <[EMAIL PROTECTED]> wrote: > this patch changes the calls of parrot to './parrot'. This is needed when > the current directory is > not in $PATH. Thanks, applied. leo

Re: [BUG] imcc: no newline at end of file

2004-03-19 Thread Leopold Toetsch
Jens Rieks <[EMAIL PROTECTED]> wrote: > the attached test fails. There is no newline at the end of the file. Imcc is reading text files. A text file has a newline on *each* line. The error message could be a bit more user friendly, though. leo

Re: Optimizations for Objects

2004-03-19 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: > At 10:38 PM +0100 3/18/04, Leopold Toetsch wrote: >> >>Which brings up again my warnocked question: How can return >>continuations get reused? > Works like this. (No pasm, but it should be obvious) Ok. First (and that applies to Jens example too), I'd lik

Re: PerlNum -0.0 bug?

2004-03-19 Thread Leopold Toetsch
Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> wrote: > > > > # define Parrot_is_nzero(x) ((x) == copysign(0.0, -1.0)) use that if signbit isn't, patch? applied ;) Thanks, leo