Re: [Pydev-code] threaded jython completion server and console.
Brought to you by:
fabioz
From: Fabio Z. <fa...@gm...> - 2010-01-26 10:24:44
|
Hi Kostas, On Tue, Jan 26, 2010 at 5:43 AM, Kostas Georgiou <geo...@gm...> wrote: > Hi, > i would like to digg into pydev code for creating the option of having a > threaded jython interpreter for the interactive console and for the > completion server. So I think instead of firing a process we could start a > thread monitoring a stream or caliing one's another method. this could only > be a choice for jython as it is java. Last time, some time ago, I checked > the source code, the completion server was in pycompletionserver.py, as it > was universal for all implementations of python. So which files you think I > should check?? > > The problem with this approach is more on console, as it has to be one > specific version of jython interpreter enabled every time. Maybe in > completion it can be overcome. But as far as I am concerned I don't care > about different versions. So are you interested in such a feature? Probably > the console and completion will be a lot faster as a thread, don't you > think? > > So, that would be more for speed right? I must say that I'm not sure that this approach is feasible because when you're gathering completions, you actually want to use a different Python or Jython interpreter (and not embed all into the Eclipse VM), and making it a Thread you wouldn't have access to that. What do you think? Cheers, Fabio |