You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
popen is nice but is not enough, see things like popen2, popen3, etc.
also pipe
this mainly related to standard streams (that we had in a previous native class)
as we want to be able to execute an external process
wether it is an executable, a shell script, etc.
and be able to read/write input, output, error streams (either string or binary)
and/or be able to redirect those
be able to force BINARY mode under windows as it's not the default
a StandardStream class/interface/implementation should inherit from IDataInput and/or IDataOutput
ideally we should be able to pipe binary streams between 2 projectors to exchange AMF data
this is also important for server-side to implement our own servers
we would want to be able to have our server in the middle
eg. user stream <--> server streams <--> process streams (CGI)
we should also be able to buffer the output stream for servers
eg. like ob_start() in PHP
this should also work nicely with fork(), spawn(), workers
eg. keep my process and execute an external process
or replace my process with an external process
https://code.google.com/p/redtamarin/issues/detail?id=15
a mix between popen
and how JSDB use Stream
in short we want to add avmplus.Process in a cross-platform way
we can take high inspiration from the Chrome browser code, in /base they have implemented cross-platform processes in a nice way
System.popen() exists in release 0.3
a Process class shoudl be the next step
we will have a Process class
this SubProcess is even more important when you think it's what we need to wrap external external command line tools control
eg. you can include ffmpeg headers in the runtime
it will make it harder and more comoplex to complie
the runtime will grow etc.
it's possible but not wanted
but if you could just wrap the stdin/stdout/stderr around ffmpeg
and call it from AS3 code, then things get simpler and powerful
also, for redbean, as we plan to use it as compiler tool
and so reuse asc.jar but also maybe MXMLC COMPC etc.
we end up with the same use case
we need a very good subprocess control class
The text was updated successfully, but these errors were encountered: