Calling scala from JRuby

I’m interested in using JRuby as higher level interface for a bunch of
scala code that I have … sort of a configuration management tool for
a scala-based project.

I’d like to be able to do rather simple things in JRuby like:

a = MyScalaClass.new
puts a.foo # prints 10 for example
a.foo = 20
puts a.foo #prints 20 now

puts a.myvec # [10, 20, 30]
a.myvec = a.myvec.map{|x| x * 2}

a.run

Basically I want to peek and poke state variables and execute some code.

There are a few quirks with scala and JRuby that have been discussed
here: http://www.codecommit.com/blog/ruby/integrating-scala-into-jruby
This solution (scala.rb link at the bottom of the post) appears to no
longer work (it’s about 2 years old), but would be exactly what I need
(I think).
There is a github project http://github.com/wemrysi/jruby-scala but
there is no documentation and I could not get rake to build/install the
gem.

And these forums seem to have no references to scala within the past
year.

So are people using JRuby to access scala code in this way, and if so,
what tools work and are good?

Thanks!

I believe this one is better http://github.com/mcamou/scuby


Khaled alHabache
Software Engineer

Blog:
http://www.khelll.com

Rails Magazine:
http://www.railsmagazine.com/team

Twitter:
http://twitter.com/khelll

Mobile:
+963933727070
+962785257212

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs