TaggedArrays

2012-09-12 Thread Rickard Bäckman
Hi, finally I'm able to suggest a possible implementation of the TaggedArray, earlier proposed on this mailing list by Jim Laskey [1]. The implementation includes a Java implementation (two actually) and an intrisified VM implementation. The VM implementation has intrinsics for the server/C2 com

Re: TaggedArrays

2012-09-12 Thread Mark Roos
Nice to see progress. I was just thinking about the use model for these in my app and found three obvious uses: To hold the temps on the stack frame ( TaggedArray of TaggedArrays + primitives ) To hold the instance vars of a class To collect arguments for a method send (

Re: TaggedArrays

2012-09-12 Thread Jim Laskey
On 2012-09-12, at 6:18 PM, Mark Roos wrote: > Nice to see progress. > > I was just thinking about the use model for these in my app and found > three obvious uses: > To hold the temps on the stack frame ( TaggedArray of TaggedArrays + > primitives ) Or a tagged array for the stac

Re: TaggedArrays

2012-09-12 Thread Charles Oliver Nutter
On Wed, Sep 12, 2012 at 5:24 PM, Jim Laskey wrote: > The builtin tagged array (TaggedArrayNativeImpl) has no levels of > indirection, the simple and optimized forms are fall backs. So the > performance is similar to Java arrays. And yes the code that Rickard > submitted here is for native perfor

Re: TaggedArrays

2012-09-12 Thread Charles Oliver Nutter
On Wed, Sep 12, 2012 at 9:06 PM, Charles Oliver Nutter wrote: > This is very illustrative, thank you! I never got around to commenting > on your original email, so I'm taking some time now (I'm also doing a > talk on "high performance Ruby" at Golden Gate RubyConf on Friday, so > I'm looking at pe