Re: [pypy-dev] Towards pypy-jvm

2007-04-05 Thread Antonio Cuni
Niko Matsakis wrote: Some weeks ago I also tried to translate pypy-jvm; it seems that the two most important missing features are r_dict and weakrefs. Ok, I implemented r_dicts now and checked it in. Not too much work, actually, ended up fitting fairly naturally into the existing code. I

Re: [pypy-dev] Towards pypy-jvm

2007-04-05 Thread Niko Matsakis
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

Re: [pypy-dev] Towards pypy-jvm

2007-04-04 Thread Niko Matsakis
Some weeks ago I also tried to translate pypy-jvm; it seems that the two most important missing features are r_dict and weakrefs. Ok, I implemented r_dicts now and checked it in. Not too much work, actually, ended up fitting fairly naturally into the existing code. I guess I'll look at

Re: [pypy-dev] Towards pypy-jvm

2007-04-03 Thread Niko Matsakis
No, for .NET it was simpler because the standard Dictionary type also accepts an optional class that implements the custom functions, so all I need to do is to create a class for each unique pair of equality and hashing functions (see cli/comparer.py). So, on a whim I implemented a

Re: [pypy-dev] Towards pypy-jvm

2007-04-01 Thread Antonio Cuni
Niko Matsakis wrote: The last time I checked what java's Hasttable offers and I saw you can't pass to it custom hashing and equality functions, but maybe there is a simple way to do it that I don't know. No, there isn't, but it shouldn't be too hard to cook up some kind of Hashtable

[pypy-dev] Towards pypy-jvm

2007-03-30 Thread Antonio Cuni
Hi Niko, hi all! I've read in the IRC logs that there has been a bit of discussion about what genjvm still lacks in order to translate pypy. Some weeks ago I also tried to translate pypy-jvm; it seems that the two most important missing features are r_dict and weakrefs. The good news is that

Re: [pypy-dev] Towards pypy-jvm

2007-03-30 Thread Niko Matsakis
The bad news is that even with those changes, jvm crashed because of a failed assertion, then I gave up. I've no clue what it's going wrong, but maybe it's not something terribly wrong to fix. I hope that this infos can help you in some way :-). I'll look into it, thanks! I think