Am I just an idiot...

2001-12-14 Thread Brent Dax
or is there no 'set(p, p)' function? If there isn't, why not? Also, a question if/once it exists. I assume it'll make a copy. If that's the case, then in this bit of code: new P0, PerlInt new P1, PerlString set P1, P0 is P1 a PerlString or a PerlInt? I think Perl

Re: Am I just an idiot...

2001-12-14 Thread Simon Cozens
On Fri, Dec 14, 2001 at 12:06:51AM -0800, Brent Dax wrote: > or is there no 'set(p, p)' function? If there isn't, why not? There isn't. Nobody's written it. :) > Also, a question if/once it exists. I assume it'll make a copy. Yep. Although I'm not quite sure off-hand how to write it. >

[PATCH] Re: Quick note to language implementers...

2001-12-14 Thread Jason Gloudon
On Thu, Dec 13, 2001 at 05:18:07PM -0500, Dan Sugalski wrote: > I'm not sure we'll ultimately go this way, but I've added the following ops > to the core: > > setline > setpackage > setfile > getline > getpackage > getfile The debuginfo.t tests are missing 'end' opcodes.

[PATCH] More tests for transcendental maths functions

2001-12-14 Thread Simon Glover
This patch contains some more tests for the pow and atan families of opcodes; it should cover all the different possible combinations of n, i, nc and nc. Simon Glover --- trans.old Sun Dec 2 20:00:01 2001 +++ trans.t Fri Dec 14 16:47:13 2001 @@ -288,37 +288,114 @@ ok 2 OUTPUT -

Re: Am I just an idiot...

2001-12-14 Thread Dan Sugalski
At 11:10 AM 12/14/2001 +, Simon Cozens wrote: >On Fri, Dec 14, 2001 at 12:06:51AM -0800, Brent Dax wrote: > > Also, a question if/once it exists. I assume it'll make a copy. > >Yep. Although I'm not quite sure off-hand how to write it. Well, that depends. It could either make a copy, in whic

Re: [PATCH] More tests for transcendental maths functions

2001-12-14 Thread Dan Sugalski
At 05:01 PM 12/14/2001 +, Simon Glover wrote: > This patch contains some more tests for the pow and atan families of > opcodes; it should cover all the different possible combinations of > n, i, nc and nc. Applied, thanks. Dan -

RE: Am I just an idiot...

2001-12-14 Thread Brent Dax
Simon Cozens: # On Fri, Dec 14, 2001 at 12:06:51AM -0800, Brent Dax wrote: # > or is there no 'set(p, p)' function? If there isn't, why not? # # There isn't. Nobody's written it. :) # # > Also, a question if/once it exists. I assume it'll make a copy. # # Yep. Although I'm not quite sure off

RE: Am I just an idiot...

2001-12-14 Thread Brent Dax
Dan Sugalski: # At 11:10 AM 12/14/2001 +, Simon Cozens wrote: # >On Fri, Dec 14, 2001 at 12:06:51AM -0800, Brent Dax wrote: # > > Also, a question if/once it exists. I assume it'll make a copy. # > # >Yep. Although I'm not quite sure off-hand how to write it. # # Well, that depends. It could

Re: Am I just an idiot...

2001-12-14 Thread Jason Gloudon
On Fri, Dec 14, 2001 at 09:59:30AM -0800, Brent Dax wrote: > # > > new P0, PerlInt > # > > new P1, PerlString > # > > set P1, P0 > What I'm basically asking is, in that case are we going to be calling > $1->vtable->set_string($2->vtable->get_string()) > or > $1->vta

Re: Quick note to language implementers...

2001-12-14 Thread David M. Lloyd
On Thu, 13 Dec 2001, Dan Sugalski wrote: > I'm not sure we'll ultimately go this way, but I've added the following ops > to the core: > > setline > setpackage > setfile > getline > getpackage > getfile > > so compiler output can note the file, package, and line that code i

Freeze/Thaw

2001-12-14 Thread David M. Lloyd
Will there be a way to 'freeze' an interpreter so that its state can be serialized to storage? If so, how would this work with PMCs? Some special vtable method? This was discussed several months ago when high-level language compilation was being discussed, but nothing definite ever came of it.

Distributing future Parrot-based languages?

2001-12-14 Thread Andrew Kuchling
I'd like to resume working on the Python->Parrot translator, and am wondering where to put the PMCs I'll have to write. I'm reluctant to add them to classes/, because that's not going to scale. So, how are future Parrot-based languages going to be distributed? A fairly simple way might be to

Re: Freeze/Thaw

2001-12-14 Thread Dan Sugalski
At 04:34 PM 12/14/2001 -0600, David M. Lloyd wrote: >Will there be a way to 'freeze' an interpreter so that its state can be >serialized to storage? If so, how would this work with PMCs? Some >special vtable method? There's supposed to be freeze and thaw vtable methods for PMCs for just this r

Re: Distributing future Parrot-based languages?

2001-12-14 Thread Dan Sugalski
At 04:45 PM 12/14/2001 -0500, Andrew Kuchling wrote: >I'd like to resume working on the Python->Parrot translator, and am >wondering where to put the PMCs I'll have to write. I'm reluctant to >add them to classes/, because that's not going to scale. So, how are >future Parrot-based languages goi

IO filters

2001-12-14 Thread mrjoltcola
Can we start some dialogue about stream filters? What form they take, are we talking regular expressions, etc. -Melvin