Re: [perl #24030] [PATCH] hash.t fails on OS X

2003-09-26 Thread Jeff Clites
if there is a consensus for how to deal with this in test cases--disabling DOD works but seems a bit heavy handed. JEff On Thursday, September 25, 2003, at 09:23 AM, Jeff Clites wrote: Hi: In case it helps, it looks like it's crashing at string.c:552, because it's trying to call src-encoding-decode() but src

Re: [perl #24030] [PATCH] hash.t fails on OS X

2003-09-25 Thread Jeff Clites
Hi: In case it helps, it looks like it's crashing at string.c:552, because it's trying to call src-encoding-decode() but src-encoding is NULL. (gdb) f 0 #0 0x6104 in string_transcode (interpreter=0x616400, src=0x623440, encoding=0x19e43c, type=0x19a6fc, dest_ptr=0x0) at string.c:552 552

Re: Q: vtable - can, isa, does

2003-09-27 Thread Jeff Clites
On Saturday, September 27, 2003, at 07:46 AM, Dan Sugalski wrote: The problem with checking for a single method by name is that it's possible (potentially likely) that the method you find isn't the method you want, since names short enough to be useful are short enough to be confusing.

Re: CVS checkout hints for the bandwidth-limited

2003-09-27 Thread Jeff Clites
On Friday, September 26, 2003, at 07:14 PM, Dan Sugalski wrote: At 8:54 PM +0200 9/26/03, Leopold Toetsch wrote: Dan Sugalski [EMAIL PROTECTED] wrote: cvs -z9 update cvs -z9 update -dP parrot to get rid of deleted files too. Which is a good point, and one I forgot. (Which is annoying, as

Re: MANIFEST verification

2003-09-29 Thread Jeff Clites
There's already a test in the form of t/src/manifest.t, which you might be able to adapt (or invoke directly). JEff On Monday, September 29, 2003, at 01:36 PM, Robert Spier wrote: There's been a little bit of hubbub recently about people checking things into the languages/ directories and

Re: PIO tests

2003-09-30 Thread Jeff Clites
On Tuesday, September 30, 2003, at 01:24 PM, Michael Scott wrote: When I was writing the PIO_parse_open_flags() test it did seem to me rather Perlish to have string flags in the first place. But I'm a new cockroach in town, so I kept my mouth shut, not wanting to get stomped on. If the

Re: The Block Returns

2003-10-02 Thread Jeff Clites
Speaking to the practical side, I have written code that has to disentangle itself from the failure of a complex startup sequence. I'd love to be able to build a dynamic exit sequence. (In fact, being able to do Cblock .= { more_stuff(); };/C is way up on my list...) I've wanted to do that sort

LF needed at end of pasm files?

2003-10-04 Thread Jeff Clites
The pasm files in examples/benchmarks give an error when run with parrot, because they lack a final line feed character (at the very end of the files): error:imcc:parse error, unexpected EOM, expecting '\n' in file 'examples/benchmarks/gc_waves_sizeable_data.pasm' line 85 I'd imagine this

Re: You too can direct the Attack of the Unicode Monster!

2003-10-07 Thread Jeff Clites
I've been poking at it a little bit--nothing finished yet, but I've been making some headway. JEff On Tuesday, October 7, 2003, at 08:51 AM, Dan Sugalski wrote: WHich ought ot be some sort of really bad '50s era black and white giant atomic monster movie. But anyway. ICU now configures and

Re: Instantiating objects

2003-10-15 Thread Jeff Clites
On Oct 15, 2003, at 8:36 AM, Dan Sugalski wrote: I'm poking around in the object stuff today, to try and get at least single-inheritance objects up and running. At the moment, I'm torn between just having a new method of some sort in the class and having a vtable method on the class PMC that

Re: Instantiating objects

2003-10-15 Thread Jeff Clites
On Oct 15, 2003, at 1:48 PM, Melvin Smith wrote: At 03:49 PM 10/15/2003 -0400, Dan Sugalski wrote: On Wed, 15 Oct 2003, Jeff Clites wrote: On Oct 15, 2003, at 8:36 AM, Dan Sugalski wrote: I'm poking around in the object stuff today, to try and get at least single-inheritance objects up

Re: [perl #24224] [PATCH] IMCC: Macros are handled via hash

2003-10-16 Thread Jeff Clites
On Oct 16, 2003, at 7:21 AM, Dan Sugalski wrote: On Thu, 16 Oct 2003, Leopold Toetsch wrote: Juergen Boemmels [EMAIL PROTECTED] wrote: Leopold Toetsch [EMAIL PROTECTED] writes: The IMCC_INFO does not need to be part of the interpreter. I don't like to have global state variables around. I don't

Re: mmd_dispatch_numval

2003-10-16 Thread Jeff Clites
On Oct 16, 2003, at 2:40 PM, Simon Glover wrote: On Thu, 16 Oct 2003, Dan Sugalski wrote: On Thu, 16 Oct 2003, Simon Glover wrote: From mmd.pod: =item FLOATVAL mmd_dispatch_numval(interp, left, right, func_num) Like Cmmd_dispatch_string, only it returns a FLOATVAL. Wouldn't it be more

Re: Lexical Pads

2003-10-17 Thread Jeff Clites
On Oct 16, 2003, at 10:53 PM, Will Coleda wrote: I'm trying to write global for tcl, and trying to pull out a variable from the outermost pad, and failing to find it. Globals aren't stored in the lexical pads--there are find_global and store_global ops (see var.ops)--is that what you are

Ordered destruction and object graph traversal

2003-10-20 Thread Jeff Clites
As mentioned in a previous post, I've been working on getting ordered destruction working. I actually have a mostly-working version of this now, which will merit its own discussion, but there's a particular aspect which I wanted to call out in light of Dan's recent post on Object freezing. A

Re: Object freezing

2003-10-20 Thread Jeff Clites
On Oct 20, 2003, at 10:09 PM, Gregor N. Purdy wrote: Here's an example of a wrapper: pmi class=foo ... !-- Data of some sort determined by class foo -- /pmi That's a bit better, although bear in mind that if the intent is that you could throw the entire chunk at an XML parser and have it

Re: Object instantiation

2003-10-21 Thread Jeff Clites
On Oct 21, 2003, at 7:14 AM, Dan Sugalski wrote: After thinking about this a bit, it became glaringly obvious that the right way to instantiate an object for class Foo is to do: new P5, .Foo Or whatever the constant value assigned to the Foo class upon its creation is. When a class is

Re: Object freezing

2003-10-21 Thread Jeff Clites
On Oct 21, 2003, at 5:53 AM, Dan Sugalski wrote: Note that I do *not* want to have multiple object traversal systems in parrot! We have one for DOD, and proposals have ranged upwards from there. No. That is *not* happening--the chance for error is significant, the side-effects of the error

Re: Object freezing

2003-10-21 Thread Jeff Clites
On Oct 21, 2003, at 6:12 AM, Dan Sugalski wrote: On Tue, 21 Oct 2003, Elizabeth Mattijsen wrote: At 08:21 -0400 10/21/03, Dan Sugalski wrote: I find the notion of an XML header a bit confusing, given Dan's statement to the effect that it was a throw to XML folks. I think anything XML folks

Re: Object freezing

2003-10-21 Thread Jeff Clites
On Oct 21, 2003, at 10:41 AM, Elizabeth Mattijsen wrote: At 12:53 -0400 10/21/03, Dan Sugalski wrote: Yeah, if you're just needing to tag the stream with a label to indicate the type plus a version number, then xml's on the one hand overkill and on the other hand not necessarily a big help

Re: Object freezing

2003-10-21 Thread Jeff Clites
On Oct 21, 2003, at 10:49 AM, Dan Sugalski wrote: On Tue, 21 Oct 2003, Elizabeth Mattijsen wrote: At 12:53 -0400 10/21/03, Dan Sugalski wrote: Yeah, if you're just needing to tag the stream with a label to indicate the type plus a version number, then xml's on the one hand overkill and on the

Re: [RfC] and [PATCH]: Libraries

2003-10-21 Thread Jeff Clites
On Oct 15, 2003, at 4:52 AM, Juergen Boemmels wrote: I spent the last day getting parrot running under Borland. The attached patch is whats need to get linking and running make test on both Windows/Borland and Linux/gcc. I'm not sure if its ready for inclusion in the tree, but I want some

Re: Object freezing

2003-10-22 Thread Jeff Clites
On Oct 21, 2003, at 8:11 AM, Juergen Boemmels wrote: If you think about it: The call to the destructors is done after free_unused_pobjects completed. The memory of the objects without destructors is already freed. If you are still in an out of memory situation when the destructors are run, then

Re: Ordered destruction and object graph traversal

2003-10-27 Thread Jeff Clites
On Oct 27, 2003, at 6:21 AM, Dan Sugalski wrote: On Fri, 24 Oct 2003, Gordon Henriksen wrote: On Monday, October 20, 2003, at 11:40 , Jeff Clites wrote: My solution was to define a new vtable method--I've called it visit(), though the name's not the important part--to which you pass

Re: NULL Px proposal (was Re: [BUG] IMCC looking in P3[0] for 1st arg)

2003-10-27 Thread Jeff Clites
On Oct 26, 2003, at 10:39 AM, Melvin Smith wrote: I think a compromise would be to do define a interpreter global PMCNull and point (or init) all Px registers to it. ... The downside is fast initialization of register blocks. memsetting with NULL (0) will not be possible, but I'd have to

Re: Garbage-collecting classes [was: This week's Summary]

2003-10-28 Thread Jeff Clites
On Oct 28, 2003, at 3:56 PM, Luke Palmer wrote: Object Instantiation Dan had a moment of clarity and declared that the Parrot Way to instantiate an object in class Foo will be: new P5, .Foo All we need now is a working implementation. And, apparently, knowing what class

Re: HASH changes

2003-11-06 Thread Jeff Clites
On Nov 6, 2003, at 10:05 AM, Juergen Boemmels wrote: But I still have one problem: hash_put and hash_get are not symmetric. hash_put puts a void *value, but hash_get returns a HASHBUCKET. This looks wrong to me. When returning the value directly, we couldn't have NULL value's - or better NULL

Re: Failing tests: t/pmc/eval.t 1-3 and t/pmc/sub.t 42-44

2003-11-08 Thread Jeff Clites
Pretty much the exact same results on Mac OS X. Here's the contents of myconfig: Summary of my parrot 0.0.13 configuration: configdate='Sat Nov 8 18:40:54 2003' Platform: osname=darwin, archname=darwin jitcapable=1, jitarchname=ppc-darwin, jitosname=DARWIN, jitcpuarch=ppc

Re: HASH changes

2003-11-09 Thread Jeff Clites
On Nov 6, 2003, at 11:56 PM, Leopold Toetsch wrote: Jeff Clites [EMAIL PROTECTED] wrote: An alternative (which may or may not a good one) would be to say that you can never actually store a NULL in a hash Not good. The Hash (now) may take almost arbitrary key/value pairs. Value can be plain ints

Re: [CVS ci] hash compare

2003-11-13 Thread Jeff Clites
On Nov 13, 2003, at 2:21 PM, Nicholas Clark wrote: On Wed, Nov 12, 2003 at 02:07:52PM -0800, Mark A. Biggar wrote: And even when the sequence of Unicode code-points is the same, some encodings have multiple byte sequences for the same code-point. For example, UTF-8 has two ways to encode a

Re: Darwin issues

2003-11-14 Thread Jeff Clites
Hi Chris: I haven't had any problems such as this on Mac OS X--either 10.2.6 or 10.3. What is the contents of your myconfig file? Here is the contents of mine, for comparison: Summary of my parrot 0.0.13 configuration: configdate='Fri Nov 14 18:23:39 2003' Platform: osname=darwin,

IMCC problems with library loading

2003-11-16 Thread Jeff Clites
I've run into a couple of issue with library loading which have their origin down inside the IMCC code: 1) External libraries are being loaded at parse time. Inside of INS() in imcc/parser_util.c, Parrot_load_lib() is called at parse-time when loadlib is encountered. This is causing libraries

Re: IMCC problems with library loading

2003-11-17 Thread Jeff Clites
On Nov 17, 2003, at 1:59 AM, Leopold Toetsch wrote: Jeff Clites [EMAIL PROTECTED] wrote: I've run into a couple of issue with library loading which have their origin down inside the IMCC code: 1) External libraries are being loaded at parse time. Inside of INS() in imcc/parser_util.c

Re: Proposal: parrot-compilers list

2003-11-18 Thread Jeff Clites
On Nov 17, 2003, at 11:22 AM, Melvin Smith wrote: In the past couple of years we've seen several sub-projects pop-up and subsequently fizzle out (maybe due to Parrot slow progress or maybe due to lack of critical mass). I propose creating 'parrot-compilers' as a general purpose list for any and

Re: IMCC problems with library loading

2003-11-18 Thread Jeff Clites
On Nov 17, 2003, at 11:07 AM, Leopold Toetsch wrote: Jeff Clites [EMAIL PROTECTED] wrote: My main point is that you can't do conditional library loading. This code will try to load the doesnt_exist library, and I don't think it should: branch HERE loadlib P1, doesnt_exist

Re: Proposal: parrot-compilers list

2003-11-18 Thread Jeff Clites
On Nov 18, 2003, at 9:07 AM, Sterling Hughes wrote: The reason I think parrot-compilers would be useful, is that its dedicated to helping people (like me) write compilers for parrot, whereas (in my understanding), perl6-internals@ is really about the development of the vm itself (I would

Re: Freeze checkin

2003-11-19 Thread Jeff Clites
On Nov 19, 2003, at 9:04 AM, Dan Sugalski wrote: Just a quick heads-up--I checked in the preliminary patch for freeze/thaw that Leo sent me for review. It'll change internally a fair amount, and the vtable/low-level API is going to change, but the op-level interface will be stable. I wanted it

Re: Freeze checkin

2003-11-19 Thread Jeff Clites
On Nov 19, 2003, at 1:34 PM, Leopold Toetsch wrote: Jeff Clites [EMAIL PROTECTED] wrote: On Nov 19, 2003, at 9:04 AM, Dan Sugalski wrote: Two initial concerns: 1) I have a patch which I've been assembling to do ordered destruction. That needs to use the next_for_GC pointer (and I think any

Re: [RfC] Fix assigned PMC enum_class_xxx

2003-12-02 Thread Jeff Clites
On Dec 1, 2003, at 9:01 PM, Melvin Smith wrote: At 10:40 AM 11/28/2003 +0100, Leopold Toetsch wrote: As outlined some time ago, when ops.num made it into the core, we need fix assigned PMC class enums too. (Changed class enums invalidate existing PBC files). 1) lib/Parrot/PMC.pm is the

Re: More object stuff

2003-12-04 Thread Jeff Clites
On Dec 3, 2003, at 12:03 PM, Dan Sugalski wrote: At 12:17 PM +0100 12/3/03, Leopold Toetsch wrote: Dan Sugalski [EMAIL PROTECTED] wrote: *) Exceptions we're happy with Create an Exception class hierarchy? I'm not 100% sure I want to go with a real OO style of exceptions, but that might just

Re: [RFC] IMCC pending changes request for comments

2003-12-04 Thread Jeff Clites
On Dec 2, 2003, at 8:49 PM, Melvin Smith wrote: At 07:59 PM 12/2/2003 -0800, Steve Fink wrote: On Dec-02, Melvin Smith wrote: Do you really want to generate the extra unused code at the end of all the subroutines? I don't think you want to autodetect whether the code is guaranteed to return.

Re: [CVS ci] object stuff

2003-12-10 Thread Jeff Clites
On Dec 9, 2003, at 3:40 PM, Dan Sugalski wrote: At 5:46 PM +0100 12/5/03, Leopold Toetsch wrote: Melvin Smith [EMAIL PROTECTED] wrote: At 05:14 PM 12/5/2003 +0100, Leopold Toetsch wrote: set I2, P1[Foo\x00i] # I1 == I2 gets currently the attribute idx (0) of $Foo::i. Q: Should the

Re: [CVS ci] object stuff

2003-12-11 Thread Jeff Clites
On Dec 10, 2003, at 12:37 AM, Luke Palmer wrote: Dan Sugalski writes: At 05:14 PM 12/5/2003 +0100, Leopold Toetsch wrote: set I2, P1[Foo\x00i] # I1 == I2 gets currently the attribute idx (0) of $Foo::i. Q: Should the assembler mangle the Foo::i to Foo\0i I don't like it either, but the

Re: Mac OS X Dynaloading less broken

2003-12-11 Thread Jeff Clites
I have some other fixes for this--I'll clean them up and send them in. I got something working which doesn't crash, and which can find libraries in standard locations w/o knowing the path. It uses the native dyld API rather than dlopen--the dlopen which shipped with Panther is just the

Re: [perl #24682] [BUG] parrot compile fails on MacOS 10.3.1 - possibly dynaloading patch?

2003-12-19 Thread Jeff Clites
On Dec 17, 2003, at 11:24 AM, Leopold Toetsch wrote: Allison Randal [EMAIL PROTECTED] wrote: $ parrot t/op/hacks_1.pasm not reached ... Does Fruntime/parrot/include/signal.pasm have an entry for SIGFPE? Is PARROT_HAS_HEADER_SIGNAL defined? Yes to both questions. The issue turns out to be that

Re: [perl #24682] [BUG] parrot compile fails on MacOS 10.3.1 - possibly dynaloading patch?

2003-12-20 Thread Jeff Clites
On Dec 20, 2003, at 1:54 AM, Leopold Toetsch wrote: Jeff Clites [EMAIL PROTECTED] wrote: The issue turns out to be that SIGFPE isn't raised on Mac OS X on divide by zero. If I hack src/core_ops.c to explicitly raise(SIGFPE) in the case of zero divisor then the tests pass, so the exception

Re: ParrotIO objects

2003-12-22 Thread Jeff Clites
On Dec 22, 2003, at 2:48 PM, Melvin Smith wrote: At 11:02 AM 12/22/2003 -0700, Cory Spencer wrote: The program I'm writing is passing a ParrotIO object about to various functions (the ParrotIO object being either stdin or a file handle to a regular file). Each function can read as many bytes as

Re: [perl #24682] [BUG] parrot compile fails on MacOS 10.3.1 - possibly dynaloading patch?

2003-12-22 Thread Jeff Clites
On Dec 22, 2003, at 6:57 AM, Dan Sugalski wrote: At 11:44 AM -0800 12/20/03, Jeff Clites wrote: On Dec 20, 2003, at 1:54 AM, Leopold Toetsch wrote: Jeff Clites [EMAIL PROTECTED] wrote: The issue turns out to be that SIGFPE isn't raised on Mac OS X on divide by zero. If I hack src/core_ops.c

Re: When is enough too much?

2003-12-23 Thread Jeff Clites
On Dec 23, 2003, at 4:08 PM, Uri Guttman wrote: DS == Dan Sugalski [EMAIL PROTECTED] writes: Speaking personally, being able to automatically convert a Parrot array to an array of ints or floats would be very useful, but that's because I do fairly hard-core number crunching in my day job. What

Re: Python running fast on .NET

2003-12-24 Thread Jeff Clites
I don't think that Dan meant that Python-on-Parrot would be 20x faster. He's saying that it's easy to speed up Python if you leave out the slow parts, and that the Python-on-.NET implementation has left out the slow parts so far. So when it's complete, Python-on-.NET will end up slower than

Re: Slow vararg subroutines in Parrot, jit bug found as well.

2003-12-28 Thread Jeff Clites
On Dec 28, 2003, at 1:42 AM, Leopold Toetsch wrote: Joe Wilson [EMAIL PROTECTED] wrote: Perl's arrays do indeed accept mixed data types (see example below). Perl's Arrays take SV's. Please use a PerlArray instead of SArray. Parrot (still built unoptimized) is significantly faster then perl5 on

Re: Garbage Collection Tasks

2003-12-29 Thread Jeff Clites
On Dec 29, 2003, at 8:13 AM, Dan Sugalski wrote: 2) We need a more traditional, non-moving GC as an alternative to the copying collector. A modified mark sweep'd be fine, but as it'll be living behind the API it doesn't much matter. This is really only for the chunks of memory backing strings

Re: Garbage Collection Tasks

2003-12-30 Thread Jeff Clites
On Dec 29, 2003, at 11:48 AM, Dan Sugalski wrote: As I see it, it's really the allocation that is more complicated with a mark-and-sweep collector (since you have to search for a correct-sized free chunk, efficiently)--the collection itself is the easy part. Actually, it seems like this is

Re: Threading design

2003-12-30 Thread Jeff Clites
On Dec 30, 2003, at 11:18 AM, Dan Sugalski wrote: At 11:27 AM -0500 12/30/03, Gordon Henriksen wrote: I wish the threading design for parrot would look more toward successful, performant multithreaded systems, I'm going to be really grumpy here, though it's not directed at Gordon. What *I* wish

Re: Problem during make test

2003-12-30 Thread Jeff Clites
On Dec 29, 2003, at 2:12 PM, Harry Jackson wrote: During [EMAIL PROTECTED] parrot]$ make test echo imcc/imcc.y -d -o imcc/imcparser.c imcc/imcc.y -d -o imcc/imcparser.c perl -e 'open(A,qq{$_}) or die foreach @ARGV' imcc/imcc.y.flag imcc/imcparser.c imcc/imcparser.h perl t/harness --gc-debug

Re: Problem during make test

2003-12-30 Thread Jeff Clites
On Dec 30, 2003, at 3:11 PM, Harry Jackson wrote: 2) Try running one of the tests which blocks, individually. If you can get it to happen this way, then run it in gdb and see what it's doing. (Or, attach to an already blocked one from 'make test'--this is assuming it's parrot that's actually

Patch submission gone missing?

2004-01-01 Thread Jeff Clites
I submitted a patch yesterday to [EMAIL PROTECTED], and received the automated response (the ID is [perl #24789]), but it doesn't seem to have been forwarded to the mailing list. Is something up with the tracking system? JEff

Re: Threads. Design. Go for it

2004-01-01 Thread Jeff Clites
On Jan 1, 2004, at 9:43 AM, Josh Wilmes wrote: At 16:15 on 12/30/2003 EST, Dan Sugalski [EMAIL PROTECTED] wrote: Your constraints: 2) A perl 5 iThreads it's not a thread, it's a fork. Well, sorta... mode must be available For those of us who aren't particularly familiar with ithreads, what

Re: Problem during make test

2004-01-01 Thread Jeff Clites
On Dec 30, 2003, at 5:19 PM, Harry Jackson wrote: I have also tried strace and got the following. Try this on parrot rather than Perl. strace on parrot gets to rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 wait4(-1, [WIFEXITED(s) WEXITSTATUS(s) == 0], 0, NULL) = 8423 --- SIGCHLD (Child exited)

Re: Patch submission gone missing?

2004-01-02 Thread Jeff Clites
On Jan 1, 2004, at 11:31 PM, Robert Spier wrote: I submitted a patch yesterday to [EMAIL PROTECTED], and received the automated response (the ID is [perl #24789]), but it doesn't seem to have been forwarded to the mailing list. Is something up with the tracking system? Nothing is up. It's in the

Re: Threads Design. A Win32 perspective.

2004-01-03 Thread Jeff Clites
On Jan 3, 2004, at 11:19 AM, Elizabeth Mattijsen wrote: At 01:48 -0500 1/3/04, Uri Guttman wrote: NS == Nigel Sandever [EMAIL PROTECTED] writes: NS All that is required to protect an object from corruption through NS concurrent access and state change is to prevent two (or more) VMs NS

Re: Threads Design. A Win32 perspective.

2004-01-03 Thread Jeff Clites
On Jan 3, 2004, at 10:08 AM, Elizabeth Mattijsen wrote: At 12:15 -0500 1/3/04, Uri Guttman wrote: LT == Leopold Toetsch [EMAIL PROTECTED] writes: LT These are platform specific details. We will use whatever the LT platform/OS provides. In the source code its a LOCK() UNLOCK() pair. LT

Re: Threads Design. A Win32 perspective.

2004-01-03 Thread Jeff Clites
On Jan 3, 2004, at 12:26 PM, Uri Guttman wrote: LT These are platform specific details. We will use whatever the LT platform/OS provides. In the source code its a LOCK() UNLOCK() pair. LT The LOCK() can be any atomic operation and doesn't need to call the LT kernel, if the lock is

Re: Threads Design. A Win32 perspective.

2004-01-03 Thread Jeff Clites
On Jan 3, 2004, at 2:59 PM, Leopold Toetsch wrote: Nigel Sandever [EMAIL PROTECTED] wrote: Only duplicating shared data on demand (COW) may work well on systems that support COW in the kernel. No, we are dealing with VM objects and structures here - no kernel is involved for COWed copies of e.g.

Re: Thread Question and Suggestion -- Matt

2004-01-03 Thread Jeff Clites
On Jan 3, 2004, at 5:24 PM, Matt Fowles wrote: All~ I have a naive question: Why must each thread have its own interpreter? The short answer is that the bulk of the state of the virtual machine (including, and most importantly, its registers and register stacks) needs to be per-thread, since

Re: Threads Design. A Win32 perspective.

2004-01-04 Thread Jeff Clites
On Jan 4, 2004, at 5:47 AM, Leopold Toetsch wrote: Elizabeth Mattijsen [EMAIL PROTECTED] wrote: When you use an external library in Perl, such as e.g. libxml, you have Perl data-structures and libxml data-structures. The Perl data-structures contain pointers to the libxml data-structures. In

Re: Threads Design. A Win32 perspective.

2004-01-04 Thread Jeff Clites
On Jan 3, 2004, at 8:59 PM, Gordon Henriksen wrote: On Saturday, January 3, 2004, at 04:32 , Nigel Sandever wrote: Transparent interlocking of VHLL fat structures performed automatically by the VM itself. No need for :shared or lock(). Completely specious, and repeatedly proven unwise.

Re: Thread Question and Suggestion -- Matt

2004-01-04 Thread Jeff Clites
On Jan 4, 2004, at 1:58 PM, Matt Fowles wrote: Dave Mitchell wrote: Why on earth would they be all one kernel-level thread? Truth to tell I got the idea from Ruby. As I said it make syncronization easier, because the interpreter can dictate when threads context switch, allowing them to only

Crash when joining multiple threads

2004-01-05 Thread Jeff Clites
If I run this code, which should just be a loop which creates-then-joins a thread (looping twice), I get a crash at the end: set I16, 0 again: inc I16 new P5, .ParrotThread find_global P6, _foo find_method P0, P5, thread3 invoke set I5, P5 getinterp P2

Re: [PATCH] The Return of the Priority DOD

2004-01-05 Thread Jeff Clites
On Jan 5, 2004, at 5:47 AM, Luke Palmer wrote: After many months of lying dormant, I figured I'd get my act together and adapt this patch to the few recent modifications. And this time, I'm posting a benchmark! My results get about 5% slowdown in the eager case, and the usual 10,000% speedup in

Re: Crash when joining multiple threads

2004-01-05 Thread Jeff Clites
On Jan 5, 2004, at 5:32 AM, Leopold Toetsch wrote: Jeff Clites [EMAIL PROTECTED] wrote: If I run this code, which should just be a loop which creates-then-joins a thread (looping twice), I get a crash at the end: The problem is that when joining the _second_ time, in pt_thread_join() you get

[PATCH] Re: Crash when joining multiple threads

2004-01-06 Thread Jeff Clites
On Jan 5, 2004, at 9:37 AM, Leopold Toetsch wrote: Jeff Clites [EMAIL PROTECTED] wrote: On Jan 5, 2004, at 5:32 AM, Leopold Toetsch wrote: The return value is only returned, when I3 != 0. For your example that shouldn't be the case (I3 is unused aka zero). So there isn't any return value

[PATCH] PPC JIT fixes [re-send] (Modified by Jeff Clites)

2004-01-06 Thread Jeff Clites
{This is a re-send of my submission [perl #24789] from 12/31, which has not been forwarded from RT. I wanted to keep this separate from my subsequent [perl #24808] in order to preserve the change history.} Attached is a patch which fixes most of the make testj failures on Mac OS X (ie, ppc

Re: References to hash elements?

2004-01-06 Thread Jeff Clites
[ apologies for the duplicate email message from my last post--mail client problems... ] On Jan 6, 2004, at 11:50 AM, Simon Cozens wrote: Jeff Clites: $a = $hash{bar}; Here you used the copy constructor before taking the reference. It might look like an assignment operator, but it isn't

Re: References to hash elements?

2004-01-06 Thread Jeff Clites
On Jan 6, 2004, at 9:25 AM, Leopold Toetsch wrote: Arthur Bergman [EMAIL PROTECTED] wrote: Hi, I am wondering how the references to hash elements are planned to be done? The call to set_ must somehow be delayed until the time is right. $foo = \$hash{key}; $$foo = bar; $has{key} is now bar

Re: Continuations don't close over register stacks

2004-01-06 Thread Jeff Clites
On Jan 6, 2004, at 3:41 PM, Luke Palmer wrote: Leopold Toetsch writes: Good. Pass it over to me :) COW copy of stacks and of other buffer-based items is still broken. These need distinct headers so that they work like COWed strings. Alright, I've got a pretty big incomplete patch here (see, when

Re: Continuations don't close over register stacks

2004-01-06 Thread Jeff Clites
On Jan 6, 2004, at 6:42 PM, Luke Palmer wrote: Jeff Clites writes: On Jan 6, 2004, at 3:41 PM, Luke Palmer wrote: It makes each chunk into a subclass of Buffer like so: struct RegisterChunkBuf { size_t used; PObj* next; }; To do that properly, I think you need a pobj_t

Re: [perl #24829] RE: [PATCH] PPC JIT fixes [re-send] (Modified by Jeff Clites)

2004-01-07 Thread Jeff Clites
On Jan 6, 2004, at 3:28 PM, Adam Thomason (via RT) wrote: -Original Message- From: Jeff Clites [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 31, 2003 4:30 PM To: [EMAIL PROTECTED] Subject: [PATCH] PPC JIT fixes [re-send] (Modified by Jeff Clites) 7) I don't expect anything here

Re: Continuations don't close over register stacks

2004-01-07 Thread Jeff Clites
On Jan 7, 2004, at 1:46 AM, Leopold Toetsch wrote: Luke Palmer [EMAIL PROTECTED] wrote: It makes each chunk into a subclass of Buffer like so: struct RegisterChunkBuf { size_t used; PObj* next; }; That part is already answered: create a buffer_like structure. *But* again

Re: Continuations don't close over register stacks

2004-01-08 Thread Jeff Clites
On Jan 7, 2004, at 8:15 PM, Melvin Smith wrote: Leopold Toetsch writes: Jeff Clites [EMAIL PROTECTED] wrote: On Jan 7, 2004, at 1:46 AM, Leopold Toetsch wrote: Exactly the latter: That was AFAIK a design decision, when Dan did introduce CPS. At this time register backing stacks went out

Re: [perl #24829] RE: [PATCH] PPC JIT fixes [re-send] (Modified by Jeff Clites)

2004-01-08 Thread Jeff Clites
On Jan 7, 2004, at 10:39 AM, Adam Thomason wrote: The 40 ops range from 0x200fca28 to 0x200fca90, with 0x200fca94 onward being .long 0x0. The pc at failure is 0x7c0802a4. So it's probably safe to assume the trouble is pre-pasm. Yep, you're right. Thanks for all of the great information--I'm

Re: Continuations don't close over register stacks

2004-01-08 Thread Jeff Clites
On Jan 8, 2004, at 4:24 AM, Leopold Toetsch wrote: Jeff Clites [EMAIL PROTECTED] wrote: I think I'm just being dense, but looking at include/parrot/interpreter.h it appears that they are in the context: Sorry, yes. They are in the context but not saved. I mixed that up with the registers

Re: BUG: coroutine + exception = stack_height segfault

2004-01-09 Thread Jeff Clites
On Jan 9, 2004, at 12:24 AM, Leopold Toetsch wrote: Michal Wallace [EMAIL PROTECTED] wrote: #!/bin/env parrot # # yieldbug.imc # # This program should print dots forever. # Instead it prints a few dots and then segfaults. It does print dots forever here. It does for me too. But based on a

Meaning of restart in *.ops files?

2004-01-09 Thread Jeff Clites
What does restart mean in op files, as in restart ADDRESS(resume);? Also, why does the find_global op use it? I couldn't find it explained anywhere. Also, on a vaguely related topic, in Parrot_jit_cpcf_op, what does cpcf stand for? JEff

Re: nci

2004-01-10 Thread Jeff Clites
On Jan 10, 2004, at 6:50 AM, Harry Jackson wrote: # New in libpq.so.3.1 t pt p ptit33i i ptit33i i ptiit33i c pi I have jsut added the above signatures to my call_list due to an upgrade to postgres and was wondering what plans are there for managing the

Re: [PATCH] The Return of the Priority DOD

2004-01-10 Thread Jeff Clites
On Jan 10, 2004, at 11:54 AM, Nicholas Clark wrote: On Sat, Jan 10, 2004 at 08:39:51PM +0100, Leopold Toetsch wrote: Nicholas Clark [EMAIL PROTECTED] wrote: src/dod.c: In function `clear_live_bits': src/dod.c:755: `cur_arena' undeclared (first use in this function) The appended patch cures it

Re: [perl #24866] [PATCH] Unified harness for IMCC tests

2004-01-11 Thread Jeff Clites
On Jan 11, 2004, at 3:10 AM, Leopold Toetsch wrote: Bernhard Schmalhofer [EMAIL PROTECTED] wrote: 'make fulltest' gives 6 reports. 5 reports for different parrot options plus 1 report for t/src/*.t. Dou you see a simple way, to run all tests in one harness for fulltest. That would need some

JVM as a threading example (threads proposal)

2004-01-12 Thread Jeff Clites
This is a threading proposal, in the form of a collection of notes. Rationale: We need to constantly compare parrot to the JVM, and in particular have a deep understanding of cases where the JVM performs well (or better than parrot). The reason for this is obvious: the JVM is the product of

Re: More object stuff

2004-01-12 Thread Jeff Clites
On Jan 12, 2004, at 8:07 AM, Harry Jackson wrote: Dan Sugalski wrote: Having a fetchrow_hash that returned a Hash where the keys are the column names and the values are the column values would be most of the rest. I read somewhere that accessing a hash was slightly slower than accessing and

Some namespace notes

2004-01-13 Thread Jeff Clites
Here are some notes on namespaces, picking up a thread from about a month ago: On Dec 11, 2003, at 8:57 AM, Dan Sugalski wrote: That does, though, argue that we need to revisit the global access opcodes. If we're going hierarchic, and we want to separate out the name from the namespace, that

Re: JVM as a threading example (threads proposal)

2004-01-14 Thread Jeff Clites
On Jan 12, 2004, at 10:03 AM, Gordon Henriksen wrote: On Monday, January 12, 2004, at 04:29 , Jeff Clites wrote: 5) Java seems to use a check-in/check-out model for access to global data, in which global data lives in a central store, but is copied back-and-forth to thread-local storage

Re: Some namespace notes

2004-01-16 Thread Jeff Clites
On Jan 15, 2004, at 9:52 AM, Dan Sugalski wrote: At 10:13 AM -0800 1/13/04, Jeff Clites wrote: Here are some notes on namespaces, picking up a thread from about a month ago: On Dec 11, 2003, at 8:57 AM, Dan Sugalski wrote: That does, though, argue that we need to revisit the global access

Re: Some namespace notes

2004-01-16 Thread Jeff Clites
On Jan 15, 2004, at 8:26 PM, Benjamin K. Stuhl wrote: Thus wrate Dan Sugalski: At 10:13 AM -0800 1/13/04, Jeff Clites wrote: Short version: I was originally going to argue for fully hierarchical namespaces, identified as above, but after turning this over in my head for a while, I came

Re: JVM as a threading example (threads proposal)

2004-01-16 Thread Jeff Clites
On Jan 15, 2004, at 10:55 PM, Leopold Toetsch wrote: Damien Neil [EMAIL PROTECTED] wrote: On Thu, Jan 15, 2004 at 09:31:39AM +0100, Leopold Toetsch wrote: I don't see any advantage of such a model. The more as it doesn't gurantee any atomic access to e.g. long or doubles. The atomic access to

Re: Problem during make test

2004-01-16 Thread Jeff Clites
On Jan 15, 2004, at 10:42 PM, chromatic wrote: On Sun, 2004-01-04 at 12:09, Harry Jackson wrote: I tried that as well, it spits out identical PASM each time but on the odd occasion I need to use CTRL-C to get back to the shell. I'm seeing the same thing on Linux PPC -- odd hangs from time to

Re: Unicode, internationalization, C++, and ICU

2004-01-16 Thread Jeff Clites
On Jan 15, 2004, at 3:33 PM, Jonathan Worthington wrote: - Original Message - From: Dan Sugalski [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 15, 2004 8:09 PM Subject: Unicode, internationalization, C++, and ICU Now, assuming there's still anyone left reading this

Re: JVM as a threading example (threads proposal)

2004-01-16 Thread Jeff Clites
On Jan 16, 2004, at 1:01 PM, Damien Neil wrote: On Thu, Jan 15, 2004 at 11:58:22PM -0800, Jeff Clites wrote: On Jan 15, 2004, at 10:55 PM, Leopold Toetsch wrote: Yes, that's what I'm saying. I don't see an advantage of JVMs multi-step variable access, because it even doesn't provide such atomic

Re: Events and JIT

2004-01-16 Thread Jeff Clites
On Jan 16, 2004, at 1:20 PM, Leopold Toetsch wrote: Gordon Henriksen [EMAIL PROTECTED] wrote: Leopold Toetsch wrote: 2) Patch the native opcodes at these places with e.g. int3 I don't think that bytecode-modifying versions should fly; they're not threadsafe, Why? The bytecode is patched by a

Re: Namespaces

2004-09-12 Thread Jeff Clites
On Sep 7, 2004, at 6:26 AM, Dan Sugalski wrote: *) Namespaces are hierarchical So we can have [foo; bar; baz] for a namespace. Woo hoo and all that. It'd map to the equivalent perl namespace of foo::bar::baz. How does this hierarchical nature manifest? I ask because I don't know of any languages

Re: Namespaces

2004-09-13 Thread Jeff Clites
On Sep 12, 2004, at 8:43 PM, Luke Palmer wrote: Jeff Clites writes: On Sep 7, 2004, at 6:26 AM, Dan Sugalski wrote: *) Namespaces are hierarchical So we can have [foo; bar; baz] for a namespace. Woo hoo and all that. It'd map to the equivalent perl namespace of foo::bar::baz. How does

  1   2   3   4   >