Re: [PROPOSAL] infix MMD operators

2005-03-31 Thread Leopold Toetsch
Bob Rogers <[EMAIL PROTECTED]> wrote: >From: Leopold Toetsch <[EMAIL PROTECTED]> >Date: Wed, 30 Mar 2005 08:57:55 +0200 > > ... , is that you are assuming (as I did not) that each and > every language built on top of Parrot will define its own PMC classes, > even for primitive arithmetic t

Re: Pugs Q for the Parrot FAQ?

2005-03-31 Thread Leopold Toetsch
Nicholas Clark <[EMAIL PROTECTED]> wrote: > With read only bytecode shared between processes, much of that "non-jit" > resident memory is going to be shared. So much less swapping. Yeah. Yesterday I wrote: $ parrot -j -o order.pbc order.imc # emit jitted code Well, that was rather wrong. But

Re: cvs commit: parrot/t/pmc freeze.t

2005-03-31 Thread Leopold Toetsch
Nicholas Clark <[EMAIL PROTECTED]> wrote: > On Wed, Mar 30, 2005 at 09:11:51AM +0200, Leopold Toetsch wrote: >> Bernhard Schmalhofer <[EMAIL PROTECTED]> wrote: >> > +void freeze(visit_info *info) { >> > +IMAGE_IO *io = info->image_io; >> > +io->vtable->push_integer(INTERP,

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

2005-03-31 Thread Thomas Sandlaß
Thomas Sandlaà wrote: Int|Str <: Str && Str <: Int|Str && Int|Str <: Int && Int <: Int|Str holds. Uhh, I hardly believe that it was me writing that last night! Int|Str is of course a proper supertype of Int and Str respectively. So we really have: Str <: Str|Int && Int <: Str|Int, which warps us

Re: [perl #34605] [PATCH] t/pmc/sys.t failure with MinGW32

2005-03-31 Thread Leopold Toetsch
Francois PERRAD <[EMAIL PROTECTED]> wrote: >>$ perldoc -F docs/submissions.pod > I tried to follow the documentation. Works fine, thanks. Applied both. > Francois. leo

Re: [perl #34617] builtin namesspaces issue - t/pmc/object-meths_28.imc && t/pmc/object-meths_28.imc

2005-03-31 Thread Leopold Toetsch
Peter Sinnott <[EMAIL PROTECTED]> wrote: > Failed Test Stat Wstat Total Fail Failed List of Failed > --- > t/library/md5.t 4 1024 44 100.00% 1-4 > t/pmc/mmd.t 6 1536186 33

Re: [perl #34617] builtin namesspaces issue - t/pmc/object-meths_28.imc && t/pmc/object-meths_28.imc

2005-03-31 Thread Peter Sinnott
On Thu, Mar 31, 2005 at 11:44:01AM +0200, Leopold Toetsch wrote: > Peter Sinnott <[EMAIL PROTECTED]> wrote: > > > Failed Test Stat Wstat Total Fail Failed List of Failed > > --- > > t/library/md5.t 4 10

Re: Phalanx

2005-03-31 Thread Sébastien Aperghis-Tramoni
Selon Gabor Szabo <[EMAIL PROTECTED]>: > > So I guess my question is, what exactly am I supposed to do to improve > > test coverage? Am I supposed to modify the existing scripts so they > > execute more functions exported by the module? Are any of the other > > modules currently being tested not u

Re: [perl #34617] builtin namesspaces issue - t/pmc/object-meths_28.imc && t/pmc/object-meths_28.imc

2005-03-31 Thread Jens Rieks
On Thursday 31 March 2005 11:47, Peter Sinnott wrote: > Does that cover both the segmentation fault and the (I presume)incorect > pasm that was being generated? This covers only the segfault. IMCC is known to produce incorrect pasm files, bug #32392. jens

Re: S28ish [was: [Pugs] A couple of string interpolation edge cases]

2005-03-31 Thread Thomas Sandlaß
Larry Wall wrote: On Sat, Mar 26, 2005 at 02:37:24PM -0600, Rod Adams wrote: : How can you have a level independent position? By not confusing positions with numbers. They're just pointers into a particular string. I'm not the Unicode guru but my understanding is that all composition sequences are

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

2005-03-31 Thread Miroslav Silovic
[EMAIL PROTECTED] wrote: Er, isn't that not just the wrong way around? The point is to do the bookkeeping that an object is needed that does .meth() and that it is stored in $a, and to complain when that is not the case when it should be. The earlier the better. I don't understand why writing 'my X

[perl #34625] [PATCH] make setup on MSWin32

2005-03-31 Thread via RT
# New Ticket Created by Francois PERRAD # Please include the string: [perl #34625] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=34625 > I add a new target 'setup' in the main Makefile. That's allow the creation of a se

Again the infix ops

2005-03-31 Thread Leopold Toetsch
Below inline/attached is a proposal to fix the MMD infix ops. 1) Again the infix ops - yes >From a HLL point of view: add d, l, r # PASM op d = l + r # PIR syntax d = l."__add"(r) # method call d = "__add"(l, r) # Perl6 multi sub function cal

Parrot under Subversion / ICU

2005-03-31 Thread Leopold Toetsch
We gonna switch to SVN soon. citing Chip: I think it would be a Good Thing for Parrot to live under Subversion rather than CVS. Just the change sets and rename tracking is enough reason, IMO. and: Announcement should also mention that we're not going to move icu over, so people should download lib

Re: t/dynclass failures due to using installed libs

2005-03-31 Thread Leopold Toetsch
Bob Rogers <[EMAIL PROTECTED]> wrote: > The following trivial patch fixes this. It's written so that an > explicit > PARROT_TEST=0 make test Thanks, applied. leo

Re: Pugs Q for the Parrot FAQ?

2005-03-31 Thread rns123
Nicholas Clark wrote: Autrijus Tang, the lead on the Pugs project, notes that an *unoptimised* Parrot is already 30% faster than Haskell. Add compiler optimisation and a few planned optimisations and Parrot will beat Pugs for speed hands down. Autrijus things that Pugs could be made faster with som

Re: Again the infix ops

2005-03-31 Thread Luke Palmer
Leopold Toetsch writes: > But with one more indirection a PIC-like scheme can work with > read-only bytecode too (probably). E.g. the assembler emits instead > of the proposed: > > infix "__add", Pd, Pl, Pr > > this opcode: > > infix (.MMD_ADD << 24) | n, Pd, Pl, Pr Just 256? Why don't you

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

2005-03-31 Thread Thomas Sandlaß
Miroslav Silovic wrote: Remember, you can even change the class of instanced objects using 'does' (or 'but', but it'll at least copy the object). And as the example above shows, this is statically intractable - it can happen in a sub in a different autoloaded module. Sorry this is a well establi

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

2005-03-31 Thread Larry Wall
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 information in my X $

Re: Pugs Q for the Parrot FAQ?

2005-03-31 Thread Nicholas Clark
On Wed, Mar 30, 2005 at 03:26:36PM -0500, Jeff Horwitz wrote: > [snipped long response] > > and let's not forget bytecode compatibility with all the non-perl > languages that will hopefully target parrot. On Wed, Mar 30, 2005 at 03:49:54PM -0500, Aaron Sherman wrote: > On Wed, 2005-03-30 at 14:

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

2005-03-31 Thread Mark Stosberg
Hello, I've been working on a Perl test suite for darcs, with notable recent help from Schwern. We used to have tests that looked like this: like(`echo y | darcs command`,qr/$re/); That would run the command and answer "y" to the first and only question it asked. It worked well enough, but

Re: Pugs Q for the Parrot FAQ?

2005-03-31 Thread Aaron Sherman
On Thu, 2005-03-31 at 12:04, Nicholas Clark wrote: > Patches welcome, as I'm not sure of the best way to phrase the cross > language stuff to follow on smoothly. Also, Parrot provides access to Perl 6 from other languages and to those other languages from Perl 6 at run-time, a feature which is bo

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

2005-03-31 Thread Aaron Sherman
On Thu, 2005-03-31 at 11:51, Larry Wall wrote: > my X $a; > > is *necessary* but not *sufficient* to do method existence testing in > standard Perl 6 at compile time. You can do it IFF you have the class > information AND the classes are willing to cooperate in your scheme. > In the current

Re: Pugs Q for the Parrot FAQ?

2005-03-31 Thread Matthew Zimmerman
Nicholas Clark wrote: On Wed, Mar 30, 2005 at 03:26:36PM -0500, Jeff Horwitz wrote: [snipped long response] and let's not forget bytecode compatibility with all the non-perl languages that will hopefully target parrot. On Wed, Mar 30, 2005 at 03:49:54PM -0500, Aaron Sherman wrote: On Wed, 2005-03

Re: Parrot under Subversion / ICU

2005-03-31 Thread Ron Blaschke
Leopold Toetsch wrote: > We gonna switch to SVN soon. Lovely. :-) > citing Chip: > I think it would be a Good Thing for Parrot to live under Subversion > rather than CVS. Just the change sets and rename tracking is enough > reason, IMO. I've been using SVN happily for almost a year now. It wor

Re: Pugs Q for the Parrot FAQ?

2005-03-31 Thread Nicholas Clark
On Thu, Mar 31, 2005 at 05:45:12PM +0300, [EMAIL PROTECTED] wrote: > Nicholas Clark wrote: > >Autrijus Tang, the lead on the Pugs project, notes that an *unoptimised* > >Parrot is already 30% faster than Haskell. Add compiler optimisation and a > >few planned optimisations and Parrot will beat Pugs

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

2005-03-31 Thread chromatic
On Thu, 2005-03-31 at 13:11 -0500, Aaron Sherman wrote: I can't answer most of these well. However... > > One additional wrinkle is that *anyone* is allowed to declare a > > class non-cooperative (open or non-final) during *any* part of the > > compilation > > ... even after it is declared fina

Documentary annotations: $what doc

2005-03-31 Thread Chip Salzenberg
I'd like to annotate Perl 6 parameters and other entities using traits, since that's the best way (I know of) to have them appear immediately in the text of the program where they are. Supposing I had a "doc" trait, could I say: sub f2c (Num $temp doc) doc {...} Or would I be for

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

2005-03-31 Thread Jonathan Scott Duff
I'm no expert, but here's my take: On Thu, Mar 31, 2005 at 01:11:37PM -0500, Aaron Sherman wrote: > If you declare a variable to be of a type (let's even say a class to be > specific), then you have hinted to the compiler as to the nature of that > variable, but nothing is certain. > > That is to

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

2005-03-31 Thread Aaron Sherman
On Thu, 2005-03-31 at 15:25, chromatic wrote: > On Thu, 2005-03-31 at 13:11 -0500, Aaron Sherman wrote: > > I can't answer most of these well. However... > Open-Closed is a great idea until the most natural and easiest way to do > something is to to redefine a little bit of the world. You seem

Parrot bytecode reentrancy

2005-03-31 Thread Nigel Sandever
Is Parrot bytecode reentrant? That is, if I want to have two instances of a class in each of two threads, will the bytecode for the class need to be loaded twice? Also, will it be possible to pass objects (handles/references) between threads? Thanks njs.

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

2005-03-31 Thread Michael G Schwern
On Thu, Mar 31, 2005 at 04:46:22PM +, Mark Stosberg wrote: > We used to have tests that looked like this: > >like(`echo y | darcs command`,qr/$re/); > > That would run the command and answer "y" to the first and only question > it asked. It worked well enough, but I looked for for a pure

Re: Documentary annotations: $what doc

2005-03-31 Thread Luke Palmer
Chip Salzenberg writes: > I'd like to annotate Perl 6 parameters and other entities using > traits, since that's the best way (I know of) to have them appear > immediately in the text of the program where they are. > > Supposing I had a "doc" trait, could I say: > > sub f2c (Num $temp doc) >

Re: Parrot bytecode reentrancy

2005-03-31 Thread MrJoltCola
At 05:57 PM 3/31/2005, Nigel Sandever wrote: Is Parrot bytecode reentrant? Yes. That is, if I want to have two instances of a class in each of two threads, will the bytecode for the class need to be loaded twice? No, just once. Also, will it be possible to pass objects (handles/references) between

Re: Documentary annotations: $what doc

2005-03-31 Thread Abhijit Mahabal
On Thu, 31 Mar 2005, Luke Palmer wrote: Chip Salzenberg writes: I'd like to annotate Perl 6 parameters and other entities using traits, since that's the best way (I know of) to have them appear immediately in the text of the program where they are. Supposing I had a "doc" trait, could I say: su

Re: Documentary annotations: $what doc

2005-03-31 Thread Michael Walter
Make "is" polymorphic :D Michael On Thu, 31 Mar 2005 21:24:52 -0500 (EST), Abhijit Mahabal <[EMAIL PROTECTED]> wrote: > On Thu, 31 Mar 2005, Luke Palmer wrote: > > > Chip Salzenberg writes: > >> I'd like to annotate Perl 6 parameters and other entities using > >> traits, since that's the best w

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 { >

Tcl, unicode, transcoding strings.

2005-03-31 Thread William Coleda
I just added octal and hex escapes to my local copy of the Tcl parser. I was working on unicode when I noticed that not all of the transcodes are done yet. This works:

Re: Documentary annotations: $what doc

2005-03-31 Thread Ashley Winters
Chip Salzenberg writes: > I'd like to annotate Perl 6 parameters and other entities using > traits, since that's the best way (I know of) to have them appear > immediately in the text of the program where they are. > > Supposing I had a "doc" trait, could I say: > > sub f2c (Num $temp doc) >

Re: [PROPOSAL] infix MMD operators

2005-03-31 Thread Bob Rogers
From: Leopold Toetsch <[EMAIL PROTECTED]> Date: Thu, 31 Mar 2005 09:38:15 +0200 Bob Rogers <[EMAIL PROTECTED]> wrote: >From: Leopold Toetsch <[EMAIL PROTECTED]> >Date: Wed, 30 Mar 2005 08:57:55 +0200 > > ... , is that you are assuming (as I did not) that each and >

Tcl, unicode, transcoding strings ... almost.

2005-03-31 Thread William Coleda
(whoops) I just added octal and hex escapes to my local copy of the Tcl parser. I was working on unicode when I noticed that not all of the transcodes are done yet. This works: $S0 = unicode:"" $S1 = chr 0x30b3 $S0 .= $S1 print $S0 print "\n" This does not: $S0 = ascii:"" $S1 = chr 0x30b3

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

2005-03-31 Thread Michael G Schwern
On Fri, Apr 01, 2005 at 03:17:38AM +, Mark Stosberg wrote: > > sub echo { > > my($input, $command) = @_; > > > > local(*READ, *WRITE); > > open2(*READ, *WRITE, "$DARCS $command"; > > print WRITE "a\n"; > > Thanks for the tip. On this line, did you mean to write > >

Re: Again the infix ops

2005-03-31 Thread Leopold Toetsch
Luke Palmer <[EMAIL PROTECTED]> wrote: > Leopold Toetsch writes: >> But with one more indirection a PIC-like scheme can work with >> read-only bytecode too (probably). E.g. the assembler emits instead >> of the proposed: >> >> infix "__add", Pd, Pl, Pr >> >> this opcode: >> >> infix (.MMD_ADD <

[Fwd: a warning and a failure for parrot in Tru64]

2005-03-31 Thread Leopold Toetsch
Original Message Subject: a warning and a failure for parrot in Tru64 Date: Thu, 31 Mar 2005 20:41:30 +0300 From: Jarkko Hietaniemi <[EMAIL PROTECTED]> To: Leopold Toetsch <[EMAIL PROTECTED]> cc: Warning: pylist.pmc, line 601: In this statement, the referenced type of the pointer

Re: [PROPOSAL] infix MMD operators

2005-03-31 Thread Leopold Toetsch
Bob Rogers <[EMAIL PROTECTED]> wrote: >From: Leopold Toetsch <[EMAIL PROTECTED]> > ..., since I assume an > Int+String=>Number method will exist that coerces the string to a number > first. I imagine you could do this by creating a subclass of Int, > e.g. LispInt, and then defining a LispInt+

Re: Tcl, unicode, transcoding strings ... almost.

2005-03-31 Thread Leopold Toetsch
William Coleda <[EMAIL PROTECTED]> wrote: > (whoops) > I just added octal and hex escapes to my local copy of the Tcl parser. > I was working on unicode when I noticed that not all of the transcodes > are done yet. Yes, that's true. Much more work is needed still. > This does not: > $S0 = asc

identity tests and comparing two references

2005-03-31 Thread Darren Duncan
As I continue porting code to Perl 6, I found something else that the synopsis don't seem to explain clearly. What I want to be able to do is compare two references to see if they point to the same thing, in this case an object, but in other cases perhaps some other type of thing. In synopsis

Re: identity tests and comparing two references

2005-03-31 Thread Sam Vilain
Darren Duncan wrote: Now I seem to remember reading somewhere that '===' will do what I want, but I'm now having trouble finding any mention of it. So, what is the operator for reference comparison? As someone who wrote a tool that uses refaddr() and 0+ in Perl 5 to achieve the same thing, I agre