> However, I don't think XML is a good solution to internal communication,
> and that was what we were discussing at that point.
> 
> Do you think so?

I actually prefer some sort of string based "command line interface"
internally (more or less how LyXFunc works today). However, if there were
signs that a single flat line is not sufficient (which I doubt) and a choice
between XML and XTL has to be made, I'd vote for XML since like "small"
solutions. Having different formats for external communication and internal
communication basically means doubling the code.

Why I prefer the command line?

I have this kind of setup up and running in my own project. This is not as
large as LyX, but not dwarfed by it either (it's over 40 kLoC now), and
I am _really_ happy with it. It's almost perfect encapsulation, there is a
single entry point into the kernel that everybody (including the GUI) has
to use. (That's a bit different from LyX's architecture, where there is
quite a bit of "communication" behind LyXFunc's back).
And it is certainly fast enough. 

> ...
> Which solution is better is not easy to decide without specifying what
> your exact needs are.  In particular, you can hardly say that one
> approach in general is monotonously better than the other.)

Correct. 

Andre'


-- 
Andr� P�nitz ........................................ [EMAIL PROTECTED]

Reply via email to