>>>>> "Hrvoje" == Hrvoje Niksic <hniksic(a)srce.hr> writes:
Hrvoje> Neal Becker <nbecker(a)fred.net> writes:
>> The thought occurs - it's easy to embed a python interpreter into
>> any C program. Emacs is a C program. I wonder if that would be
>> useful? I suppose you'd have to make wrappers to interface the
>> elisp with python if it was to be really useful.
Hrvoje> One big problem with such embedding is that both Emacs and Python use
Hrvoje> garbage collecting. To avoid memory leaks, you would have to make
Hrvoje> Emacs increase refcounts of Python object, and make Python an
Hrvoje> alternative "root of accessibility" for Emacs' mark-and-sweep. I'm
Hrvoje> not sure if this is doable.
This is only an issue if:
- you insist on shared address spaces
- one of the two substrates uses conservative GC, and the other does not
I think Neal is talking about adding Python to XEmacs rather than
replacing the substrate---with separate address spaces, this is
definitely doable. Given the general slowness of both Python and
Elisp, I doubt that the performance hit you'd get from copying would
be significant. I have general doubts about the usefulness of this,
but that's beside the point here.
The Right Way to implement this, though, is to support CORBA or COM in
XEmacs and be done with it.
--
Cheers =8-} Chipsy
Friede, Völkerverständigung und überhaupt blabla