On 18 October 2012 21:37, dimitris chloupis <thekilon@yahoo.co.uk> wrote:
thank you for your help Igor
btw, i downloaded blender sources.. at first glance, it seems that it deeply intervened with python.. looking at CMake file, there is an option to build it without any ui (server mode) and without python.. but i know too little to see how you can hook-in to it without using sockets.. other way, you can use shared memory and exchange data between them more efficient (i guess), because i never used shared memory.
________________________________ From: Igor Stasenko <siguctua@gmail.com> To: Pharo-project@lists.gforge.inria.fr; dimitris chloupis <thekilon@yahoo.co.uk> Sent: Thursday, 18 October 2012, 22:23
Subject: Re: [Pharo-project] XMLRPC , sockets , python and pharo
On 18 October 2012 19:43, dimitris chloupis <thekilon@yahoo.co.uk> wrote:
wow that simple! thank you very much Igor !
Besides sockets , is there any other way to make pharo communicate with another language like python ? I am worried that sockets may introduce some significant lag to my communication, are my fears correct ? Generally speaking a response time of few milliseconds should be fine.
should be fine. unless you start wasting cycles on xml :)
________________________________ From: Igor Stasenko <siguctua@gmail.com> To: Pharo-project@lists.gforge.inria.fr; dimitris chloupis <thekilon@yahoo.co.uk> Sent: Thursday, 18 October 2012, 19:46
Subject: Re: [Pharo-project] XMLRPC , sockets , python and pharo
On 18 October 2012 18:33, dimitris chloupis <thekilon@yahoo.co.uk> wrote:
From: dimitris chloupis <thekilon@yahoo.co.uk> To: Igor Stasenko <siguctua@gmail.com> Sent: Thursday, 18 October 2012, 19:31
Subject: Re: [Pharo-project] XMLRPC , sockets , python and pharo
good question. I dont , that is why I asked for alternatives . How you guys make pharo communicate with other languages ?
Yes I can send bare strings . I wonder however what is the fastest way to do so.
stream := SocketStream openConnectionToHost: hostIP port: portNumber. stream nextPutAll: 'here comes the command'. stream close.
________________________________ From: Igor Stasenko <siguctua@gmail.com> To: Pharo-project@lists.gforge.inria.fr; dimitris chloupis <thekilon@yahoo.co.uk> Sent: Thursday, 18 October 2012, 18:22 Subject: Re: [Pharo-project] XMLRPC , sockets , python and pharo
On 18 October 2012 16:41, dimitris chloupis <thekilon@yahoo.co.uk> wrote:
Hi there I need a way to make pharo communicate with blender python. I have been successful making external cpython and pypy talk to blender cpython via XMLRPC. Now I want my pharo project "Ephestos" to control blender python by sending python command that then a blender addon which is written in python will execute.
Is there such a XMLRPC library for pharo, and how do I use it. And also what are the alternatives ?
why you need xml for that?
can't you just send bare strings, which then be simply eval'ed on other side?
________________________________ From: Tudor Girba <tudor@tudorgirba.com> To: Pharo-project@lists.gforge.inria.fr Sent: Thursday, 18 October 2012, 17:35 Subject: Re: [Pharo-project] new command line api to build images
Very cool!
Doru
On Thu, Oct 18, 2012 at 4:13 PM, Camillo Bruni <camillobruni@gmail.com> wrote:
We're almost there, create your images from the command-line with a very limited number of bash lines ;)
#==================================================================================== VM=`pharo-shell-scripts/fetchLatestVM.sh` unzip -ou Pharo-2.0.zip -d . && cd Pharo-2.0
$VM -headless Pharo-2.0.image config http://ss3.gemstone.com/ss/ci ConfigurationOfCI --install $VM -headless Pharo-2.0.image save CI --delete-old
zip -r CI.zip CI.changes CI.image *.sources
#====================================================================================
there you go, a new image named CI with the given configuration installed.
We still have to extend the API a little bit to support loading specific groups from a Metacello config + accessing repositories by username and password.
best cami
-- www.tudorgirba.com
"Every thing has its own flow"
-- Best regards, Igor Stasenko.
-- Best regards, Igor Stasenko.
-- Best regards, Igor Stasenko.
-- Best regards, Igor Stasenko.