RE: [RfC] vtable->dump

2003-09-04 Thread Brent Dax
Luke Palmer: # Is there a problem with providing a mechanism which would suspend all # threads except for the "current" one, as to ensure that the serialize # operates, er, serially. Could it be implemented with a top-priority # event post that acquires a global lock? What about the thread that d

Re: [off-list] Re: Linking pdump and dissassemble

2003-09-04 Thread Luke Palmer
Oops. Well, I said I, didn't I? Doesn't mutt know what I mean!? %-) Luke Luke Palmer writes: > Hi Jonathan, > > You wrote: > > Hi, > > > > I want to include pdump and disassemble in POW, and they seem not to be > > compiled by a normal Configure/make. So, I went to compile them, and while

[off-list] Re: Linking pdump and dissassemble

2003-09-04 Thread Luke Palmer
Hi Jonathan, You wrote: > Hi, > > I want to include pdump and disassemble in POW, and they seem not to be > compiled by a normal Configure/make. So, I went to compile them, and while > I can get pdump.obj and disassemble.obj, I'm having trouble linking them. > > Please could somebody put me out

Re: [RfC] vtable->dump

2003-09-04 Thread Luke Palmer
Gordon Henriksen writes: (B> What you're suggesting also has significant side-effects: It halts (B> hypothetical multithreaded programs, suspends DoD, prevents the (B> traversal mechanism from calling back into parrot code, requires (B> fine-grained locks which are extremely expensive and have

Re: [PATCH] File Spec

2003-09-04 Thread Chris Allan
Leopold Toetsch wrote: [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: [ snipped a lot of explanations ] Please keep in mind, that the intended usage inside Parrot just should be to locate some standard include or extension files for Parrot internals. More abstraction and complexity can always be ad

RE: [RfC] vtable->dump

2003-09-04 Thread Gordon Henriksen
Dan Sugalski wrote: > Note that a seen hash isn't particularly threadsafe here, at least not > in any useful way, since we have to make sure the structure we're > traversing doesn't change during traversal or any threadsafety we put > in is useless since we're potentially dumping corrupt data. So

Linking pdump and dissassemble

2003-09-04 Thread Jonathan Worthington
Hi, I want to include pdump and disassemble in POW, and they seem not to be compiled by a normal Configure/make. So, I went to compile them, and while I can get pdump.obj and disassemble.obj, I'm having trouble linking them. Please could somebody put me out of my misery and tell me what I need t

Re: Is there any way to dynamically add a method to a class?

2003-09-04 Thread Luke Palmer
Joseph Ryan writes: > Dan Sugalski wrote: > > >On Mon, 25 Aug 2003, Joseph Ryan wrote: > > > > > > > >>So, I know how to use find_method to get a method from an object; > >>but is there any way to dynamically add a method to a class? > >>Basically, I want to do something like this: > >> > >> ne

Re: Is there any way to dynamically add a method to a class?

2003-09-04 Thread Joseph Ryan
Dan Sugalski wrote: On Mon, 25 Aug 2003, Joseph Ryan wrote: So, I know how to use find_method to get a method from an object; but is there any way to dynamically add a method to a class? Basically, I want to do something like this: newclass P2, "Foo" new P1, P2 addr I0, _Foo::some

Re: Abandoning Subversion

2003-09-04 Thread Ask Bjørn Hansen
On Thursday, Sep 4, 2003, at 01:39 America/Los_Angeles, Arthur Bergman wrote: What Robert said Whatever you need to get the job done. :-) We'll keep the (abandoned) SVN repository around so you can try it again every few months. Hopefully it'll get usable for you at some point. (As Rob

Re: Is there any way to dynamically add a method to a class?

2003-09-04 Thread Dan Sugalski
On Thu, 4 Sep 2003, Leopold Toetsch wrote: > Dan Sugalski <[EMAIL PROTECTED]> wrote: > > > Anyway, for a perl/python/ruby object of class Foo, to add a new method > > you'd just add a new sub/method name/PMC binding to the Foo namespace. > > Can I translate that to: "some_method" in class "Foo"

Re: Is there any way to dynamically add a method to a class?

2003-09-04 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: > Anyway, for a perl/python/ruby object of class Foo, to add a new method > you'd just add a new sub/method name/PMC binding to the Foo namespace. Can I translate that to: "some_method" in class "Foo" has a Sub PMC in the global stash, i.e. is retrievable b

Re: Abandoning Subversion

2003-09-04 Thread Robert Spier
> take a whole work day, and so on). That together with questiones raised > by several other developers I think it is time to abandon subversion > and go to CVS. We're not going to twist your arms.. although we are pretty happy with SVN for our use for web stuff. (And in some ways, it's easier

RE: [RfC] vtable->dump

2003-09-04 Thread Garrett Goebel
Leopold Toetsch wrote: > Garrett Goebel <[EMAIL PROTECTED]> wrote: > > > As I was googling to see how other people have approached > > these problems I ran across: > > > http://blogs.gotdotnet.com/cbrumme/CategoryView.aspx/CLR > > What did you find there, besides a description that a certain >

Re: Is there any way to dynamically add a method to a class?

2003-09-04 Thread Dan Sugalski
On Mon, 25 Aug 2003, Joseph Ryan wrote: > So, I know how to use find_method to get a method from an object; > but is there any way to dynamically add a method to a class? > Basically, I want to do something like this: > > newclass P2, "Foo" > new P1, P2 > > addr I0, _Foo::somemet

Re: deadlock vs global mutex for pmc scans

2003-09-04 Thread Dan Sugalski
On Wed, 3 Sep 2003, Uri Guttman wrote: > IMO the simplest solution is a global > mutex when doing any scans through the pmcs. For the lock to be useful any and all mutators would have to aquire it, as well as anyone reading the shared variables, since we need to keep anyone from changing the in

RE: [RfC] vtable->dump

2003-09-04 Thread Dan Sugalski
On Wed, 3 Sep 2003, Gordon Henriksen wrote: > What's a dump stream actually going to look like? E.g., > Fine and good. But dump must handle object graphs, which can be > recursive or self-referential or whatnot: > > $a = { b => undef }; > $b = { a => $a}; > $a->{b} = $b; > pr

Re: Bugs in BASIC interpreter?

2003-09-04 Thread Leopold Toetsch
Amir Karger <[EMAIL PROTECTED]> wrote: > Hi. > I get the following error when I try to parrot -o basic.pbc > merged_basic.pasm (in parrot 0.0.10 on Win32): [ missing commas ] > I also got an error from the "puts" function on line 120 of alpha.pasm. > I don't know what puts means, but changing it

Re: [RfC] vtable->dump

2003-09-04 Thread Leopold Toetsch
Garrett Goebel <[EMAIL PROTECTED]> wrote: > As I was googling to see how other people have approached these problems I > ran across: > http://blogs.gotdotnet.com/cbrumme/CategoryView.aspx/CLR What did you find there, besides a description that a certain company is producing b0rken software ;-)

Re: deadlock vs global mutex for pmc scans

2003-09-04 Thread Leopold Toetsch
Uri Guttman <[EMAIL PROTECTED]> wrote: > so i don't see any major downside to a global mutex vs the nastiness of > deadlocks and handling them. the mutex means no difficult coding issues > and it can handle all the different (i agree with dan and vote for one > common scan iterator) possible scan

Re: [RfC] vtable->dump

2003-09-04 Thread Leopold Toetsch
Gordon Henriksen <[EMAIL PROTECTED]> wrote: > Panic! Dump needs to refer to line 4 again, or else recurse! How? Don't Panic! Here is the point, where either next_for_GC is used or the seen hash. The former is/was used to mark (visit) PMCs. If they have been visited, they have that pointer set els

Re: [RfC] vtable->dump

2003-09-04 Thread Leopold Toetsch
Ok, this thread has now +45 entries, I'll try to summarize the proposed PMC traversal schemes. 0) As the subject still applies ;-) we want to be able to dump() or pretty_print() a PMC (and possibly aggregate members of that). This turns out to be a special case of a deep traversal over nested PMCs

Re: [PATCH] File Spec

2003-09-04 Thread Leopold Toetsch
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: [ snipped a lot of explanations ] Please keep in mind, that the intended usage inside Parrot just should be to locate some standard include or extension files for Parrot internals. More abstraction and complexity can always be added above that or imple

Re: [PATCH] File Spec

2003-09-04 Thread martin
On Mon, 1 Sep 2003, Michael G Schwern wrote: > You also must worry about volumes. > Unix: No user visible concept of a volume > Windows: VOLUME:\dir1\dir2\file > VMS: VOLUME:[dir1.dir2]file This has been worrying me for some years. The concept of "volume" has different implications for different p

RE: [RfC] vtable->dump

2003-09-04 Thread Gordon Henriksen
What's a dump stream actually going to look like? E.g., $a = [1, 2, 3]; print dump($a); 1: PMC PerlArray 2: 3 # element count 3: PMC PerlInt# [0] 4: 1 # value 5: PMC PerlInt# [1] 6: 2 # value 7: PMC PerlInt# [2] 8: 3 #

parrotZ license issues (was Re: Parrot Z-machine)

2003-09-04 Thread Amir Karger
Sigh. My plan in starting this discussion was not to talk about licenses. But it sounds like it's safer not to use Winfrotz if we don't have to. I note that Games::Rezrov is "same terms as Perl itself" license. However, in his effort to make Rezrov run fast, the author (by his own admission) obfusc

Bugs in BASIC interpreter?

2003-09-04 Thread Amir Karger
Hi. I get the following error when I try to parrot -o basic.pbc merged_basic.pasm (in parrot 0.0.10 on Win32): (error) line 164: parse error, unexpected INTC, expecting '\n' The error appears to be in line 164 of stackops.pasm, which seems to be missing a comma. I looked at CVSweb and it seems t

Abandoning Subversion

2003-09-04 Thread Arthur Bergman
Hi, After a weeks vacation, returning back to work on Ponie I have frequent motivational problems because subversion is treating me so badly. (ie, I don't want to change something because it is such a pain then to commit it, I don't want to upgrade to latest parrot because it will take a whole

RE: floor op

2003-09-04 Thread Burnett, David
From: Lars Balker Rasmussen [mailto:[EMAIL PROTECTED] "Burnett, David" <[EMAIL PROTECTED]> writes: >> the idea of having a 'floor' op. >I've implemented an op for floor on native numbers. Feel free to >give it a whirl. (I'm not sure if floor(-0.0) is meant to return -0.0 or not, but it does.)