Is AIR nativeprocess
able to receive message from Java program and process every line of message as fast as possible in milliseconds? Does it has a miss read or delay?
views:
52answers:
1
A:
The best option is to use the AIR NativeProcess to launch a Java app that listens on a Socket. Then the AIR app connects to that Socket to communicate with the Java app. The Merapi Project sets all of this up for you.
James Ward
2010-10-30 14:57:02
Is that still faster? I've been using NativeProcess to communicate to a python script that's listening for serial input, as an alternative to using sockets - I'm almost done building it, haven't done a speed test yet. Sockets are still going to be better?
Myk
2010-10-30 15:00:07
I'm pretty sure sockets will be faster than STDOUT. But I don't have data to back that up.
James Ward
2010-10-30 15:47:02
Hi James ward, would you mind to test that? I will looking forward to see your blog. It is important to make the right one since I will need to handle lot of data from MIDI :D
2010-10-30 16:16:44
I won't have a chance to test that for a while but I'm pretty confident that Sockets is the way to go.
James Ward
2010-10-30 18:27:23