[pypy-dev] Towards pypy-jvm

Niko Matsakis niko at alum.mit.edu
Wed Apr 4 15:05:05 CEST 2007


> Most of r_dict tests are in test_objectmodel, though you may want  
> to have also a look at rpython/test/test_rconstantdict.

Ah, ok.

> About the distinction between r_dict and "custom dict": do you find  
> any place where they are used interchangeably?

I guess not.  I just wasn't clear if they should be usable  
interchangeably or not.  As it happens, I renamed my Java class to  
CustomDict anyhow, because it was an implementation of the  
ootype.CustomDict, so it seemed right.

> Adding weakrefs to gencli was very simple: I just needed to map  
> lltypesystem.llmemory.WeakGcAddress to 'System.WeakReference', add  
> the straightforward support for constants to cli/constant.py and  
> add the also straightforward 'cast_ptr_to_weakadr' and  
> 'cast_weakadr_to_ptr' operations in opcodes.py.
> I don't know for jvm, but I guess it would not be much more  
> complicate.

Cool, I'll check it out.


Niko



More information about the Pypy-dev mailing list