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
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
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
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
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
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
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