> That's a pure Ruby gem so it's not surprising it's slower than the C
> version.
>
> If I were you and I really wanted to give JRuby an honest shot, I'd try
> using the Perlin noise function from j3d:
>
> http://code.j3d.org/javadoc/org/j3d/texture/procedural/PerlinNoiseGenerator.html


Is there a quick way to try this out?  I'm trying with irb:
require 'java'
> java.org.j3d.texture.procedural.PerlinNoiseGenerator

But that's replying:
NameError: missing class or uppercase package name
(`java.org.j3d.texture.procedural.PerlinNoiseGenerator')
  from org/jruby/javasupport/JavaUtilities.java:54:in
`get_proxy_or_package_under_package'
  from
file:/usr/local/rvm/rubies/jruby-1.7.1/lib/jruby.jar!/jruby/java/java_package_module_template.rb:10:in
`method_missing'
  from (irb):14:in `evaluate'
  from org/jruby/RubyKernel.java:1066:in `eval'
  from org/jruby/RubyKernel.java:1392:in `loop'
  from org/jruby/RubyKernel.java:1174:in `catch'
  from org/jruby/RubyKernel.java:1174:in `catch'
  from /usr/local/rvm/rubies/jruby-1.7.1/bin/irb:13:in `(root)'


Whereas another quick test trying something else
works.  I am completely unfamiliar with java.  Is it easy to give a
quick example of how to test this PerlinNoiseGenerator inline?

Thanks

-- 
Posted via http://www.ruby-forum.com/.