N
Nigel Gilbert
I am planning to write a Java program and and a Ruby program and have
them intercommunicate, with a bidirectional flow of fairly small
amounts of data from one to to the other and back. I know that I could
achieve this by running the ruby program in JRuby, but it would not run
fast enough (a crude benchmark implies that JRuby executes Ruby about
an order of magnitude slower than I would get using Ruby itself).
The communication could, I suppose, be done with pipes or TCP or even
by reading and writing files. Does anyone have experience of doing
this, and tips or code snippets they could share?
Nigel
them intercommunicate, with a bidirectional flow of fairly small
amounts of data from one to to the other and back. I know that I could
achieve this by running the ruby program in JRuby, but it would not run
fast enough (a crude benchmark implies that JRuby executes Ruby about
an order of magnitude slower than I would get using Ruby itself).
The communication could, I suppose, be done with pipes or TCP or even
by reading and writing files. Does anyone have experience of doing
this, and tips or code snippets they could share?
Nigel