Re:Ask HN: Is it worth to study languages on the JVM without...
by davidw on Friday November 27, 2009 @11:20AM
(#964030)
Ok, but to create a wrapper for the Java library, you probably need to grok Java enough to read the documentation and create some code that sits on top of it.
[ Parent
| on HN ]
Re:Ask HN: Is it worth to study languages on the JVM without...
by jamesbritt on Friday November 27, 2009 @12:25PM
(#964125)
With JRuby (and I think scala and clojure as well) you only need to know the API and how to get the class or jar file onto you load path.
There are times when a Java method demands a specific Java type and JRuby does not automatically convert correctly, but mostly the use of Java libs from JRuby is pretty trivial, and the only time I've had to write Java to wrap anything was when I wanted a nicer API for some 3rd-party crypto libs and adding a few methods to the Java source was easier for me.