JRuby would like to support this gem directly (rather than passively), but currently it has a dependency on the rbtree gem which has a C extension.
First off, thanks very much for thinking of JRuby and releasing -java versions of the gem that do not have the rbtree dependency and that just utilize our existing SortedSet implementation! We appreciate your consideration!
We do, however, want to match CRuby and stop shipping our own implementation of SortedSet, so I see two options going forward:
- Include our Java implementation of
SortedSet inside the -java version of the sorted_set gem.
- Release a
-java version of the rbtree gem and enable your version of SortedSet on JRuby.
We would prefer to do the latter, for ease of maintenance, but I thought we should start the discussion here.
There may be performance considerations... the existing JRuby SortedSet is based on the JDK's TreeSet class, which has been optimized for this purpose.
Copying @kares as he did the native port of the set library in JRuby.
JRuby would like to support this gem directly (rather than passively), but currently it has a dependency on the
rbtreegem which has a C extension.First off, thanks very much for thinking of JRuby and releasing
-javaversions of the gem that do not have therbtreedependency and that just utilize our existingSortedSetimplementation! We appreciate your consideration!We do, however, want to match CRuby and stop shipping our own implementation of
SortedSet, so I see two options going forward:SortedSetinside the-javaversion of thesorted_setgem.-javaversion of therbtreegem and enable your version ofSortedSeton JRuby.We would prefer to do the latter, for ease of maintenance, but I thought we should start the discussion here.
There may be performance considerations... the existing JRuby
SortedSetis based on the JDK'sTreeSetclass, which has been optimized for this purpose.Copying @kares as he did the native port of the
setlibrary in JRuby.