Skip to content
Prev 6114 / 63424 Next

GUI support from R

On Sun, Sep 02, 2001 at 02:01:20PM -0700, A.J. Rossini wrote:
I think tony is right.  Ideally, we want eventually to have a
hight-level, toolkit and OS independent interface, if that is
possible.  It may turn out that some things are too difficult to make
work cleanly across systems without going to a common denominator that
is too low; in those cases we would like a clean way of describing the
differences.  Unfortunately it isn;t possible to build such things in
the abstract--you need some prototypes to gain experience.

Also, one thing I have learned in may years of experience with this
sort of thing in xlispstat is that for a language like R any good GUI
system requires a proper mechanism for managing concurrency, in other
words: concurrent thread support (this is one thing Java definitely
got right).  Without that you end up either reinventing a significant
fraction of a threading system or with nasty race conditions, or both.
Threading for R is being worked on, but it is going to be a while
until it is ready to go.  It makes sense to experiment with a variety
of GUI designs in the interim and then look at tying things together
when all the pieces are in place.

One area where we can help is by separating the drawing and the event
management in the R graphics devices so that it is possible for R to
use its own drawing code for putting ink on paper but let a toolkit
take over the event management (in the long run I think this may be
more viable cross platform than trying to fight the multiple event
loops battle).  This sort of thing is useful in other contexts as
well, in particular in embedding, and it is being worked on.

luke
Message-ID: <20010903101400.C31934@nokomis.stat.umn.edu>
In-Reply-To: <871ylpxq73.fsf@jeeves.blindglobe.net>; from rossini@blindglobe.net on Sun, Sep 02, 2001 at 02:01:20PM -0700