jashkenas / ruby-processing

Code as Art, Art as Code. Processing and Ruby are meant for each other.
http://github.com/jashkenas/ruby-processing/wikis
Other
1.28k stars 94 forks source link

(Some) Libraries using Reflection (ControlP5) don't seem to work #15

Closed fjenett closed 14 years ago

fjenett commented 14 years ago

Not sure how to confirm this in a more general situation but specifically ControlP5 does not work: the variables are not set and callback-methods are not called.

monkstone commented 14 years ago

Prefer the control_panel to control p5 it looks so much nicer. Examples as before.....

jashkenas commented 14 years ago

Unfortunately, libraries that use reflection don't work with JRuby. There's no way for the Java side to look at the methods that are defined in Ruby-space, or to call them. The JRuby team has talked about adding support for this, but it's not there yet, as far as I know.

There' a bit about this in the "Cautionary Notes" section of:

http://wiki.github.com/jashkenas/ruby-processing/java-and-ruby-libraries