We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpIntegration › Use Processing from other languages
Page Index Toggle Pages: 1
Use Processing from other languages? (Read 666 times)
Use Processing from other languages?
Jan 12th, 2008, 2:24pm
 
Is it possible to use Processing from other languages such as C++ or Fortran?  Is it possible to do the main computation in a low-level language, then call Processing to do the visualization?
Re: Use Processing from other languages?
Reply #1 - Jan 12th, 2008, 5:58pm
 
well, there is JNI (http://en.wikipedia.org/wiki/Java_Native_Interface) that let's you use native code in Java applications.

Depending on the amount of data that has to be exchanged between Java(processing) and your low-level code, it might be easier to have two completely different apps and let them communicate over TCP, OSC or something...
Re: Use Processing from other languages?
Reply #2 - Jan 12th, 2008, 7:03pm
 
Thanks for the reply!

I do not know any Java, or network programming, so it is difficult to make a decision about which of these two alternatives would be worth exploring.  Which of the two requires less time to learn?

Communicating with the back-end through TCP sounds tempting, since it would allow the back-end to run on a fast server, while the visualization could still run on a "normal" computer.  You're saying that the amount of data that can be exchanged this way is limited.  Could you give an indication of what is doable this way---for example, what about transferring five to ten 1000*1000 pixel greyscale images to Processing per second as a worst case?

Any guidance would be greatly appreciated!
Page Index Toggle Pages: 1