From: John M. <joh...@gm...> - 2012-09-06 17:38:46
|
On 6 Sep 2012, at 17:47, ra...@ar... wrote: > On Thu, Sep 06, 2012 at 05:28:46PM +0100, John May wrote: >> On a side note, I did make a list of "newer" dependencies and actually use the newer versions in downstream projects, some projects (i.e. Jena) have switched to Maven and split apart their functionality so I had to work out what was actually needed (RDF). > > As I'm just twiddling with Maven myself, I find it highly convenient > to use version ranges, e.g. > <cdk.version>[1.4.6,1.5)</cdk.version> > to include even future versions of cdk-1.4 Yep it rocks, I tend to avoid the ranges as they're a bit cryptic. "<version>LATEST</version>" is also cool. >>> I guess CDK authors are aware of all the shortcomings of jniinchi >>> vs. a nestedvm implementation, so I will go into that on request only. >> >> Enlighten please, I'm guessing nested vm faster then JNI but I've never used it? > > Speed is the only disadvantage, about 10x slower than native C. Yeah, If I recall correctly JNI is slow at the transition points… i.e. if you call a native method that does not take long to complete it would be faster rewriting it in Java (if it's invoked also from Java). That's why commons-math has a FastMath class which is pure Java as the default Math is pretty slow. > What you gain is the security you lose with JNI, and that the > translation is faithful to the original, no new bugs introduced. Do you get the method names? Just had a quick look online and seems to be saying you get hexed method names. In which case it would be good for doing standalone mol <-> inchi but not APIs etc. Still very interesting though, thanks for sharing. > http://depth-first.com/articles/2007/10/29/compiling-the-inchi-toolkit-to-pure-java-bytecode-with-nestedvm/ > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Cdk-devel mailing list > Cdk...@li... > https://lists.sourceforge.net/lists/listinfo/cdk-devel |