Annotation of OpenXM/doc/ascm2001/design-outline.tex, Revision 1.6
1.6 ! takayama 1: % $OpenXM: OpenXM/doc/ascm2001/design-outline.tex,v 1.5 2001/03/08 04:24:09 takayama Exp $
1.1 noro 2:
1.2 takayama 3: \section{Design Outline and OpenXM Request for Comments (OpenXM-RFC)}
1.1 noro 4:
5: As Schefstr\"om clarified in \cite{schefstrom},
1.2 takayama 6: integration of tools and software has three dimensions:
1.1 noro 7: data, control, and user interface.
8:
9: Data integration concerns with the exchange of data between different
1.2 takayama 10: software or same software.
1.1 noro 11: OpenMath \cite{OpenMath} and MP (Multi Protocol) \cite{GKW} are,
12: for example, general purpose mathematical data protocols.
13: They provide standard ways to express mathematical objects.
14: For example,
15: \begin{verbatim}
16: <OMOBJ> <OMI> 123 </OMI> </OMOBJ>
17: \end{verbatim}
18: means the (OpenMath) integer $123$ in OpenMath/XML expression.
19:
20: Control integration concerns with the establishment and management of
21: inter-software communications.
22: Control involves, for example, a way to ask computations to other processes
23: and a method to interrupt computations on servers from a client.
24: RPC, HTTP, MPI, PVM are regarded as a general purpose control protocols or
25: infrastructures.
26: MCP (Mathematical Communication Protocol)
27: by Wang \cite{iamc} is such a protocol for mathematics.
28:
29: Although data and control are orthogonal to each other,
30: real world requires both.
31: NetSolve \cite{netsolve}, OpenMath$+$MCP, MP$+$MCP \cite{iamc},
32: and MathLink \cite{mathlink} provide both data and control integration.
33: Each integration method has their own features determined by their
34: own design goals.
35: OpenXM (Open message eXchange protocol for Mathematics)
36: is a project aiming to integrate data, control and user interfaces
37: with design goals motivated by the followings.
38: \begin{enumerate}
1.6 ! takayama 39: \item The proposed standards mentioned above such as OpenMath
! 40: should be tested on various mathematical software systems,
! 41: but the testing has not been enough in comparison with
! 42: internet protocols.
1.1 noro 43: \item Noro has been involved in the development of
44: a computer algebra system Risa/Asir \cite{asir}.
45: An interface for interactive distributed computations was introduced
46: to Risa/Asir
47: %% version 950831 released
48: in 1995.
49: The model of computation was RPC (remote procedure call).
50: A robust interruption protocol was provided
51: by two communication channels
52: like the File Transfer Protocol (ftp).
53: As an application of this protocol,
54: a parallel speed-up was achieved for a Gr\"obner basis computation
55: to determine all odd order replicable functions
56: (Noro and McKay \cite{noro-mckay}).
57: However, the protocol was local in Asir and we thought that we should
58: design an open protocol.
59: \item Takayama has developed
60: a special purpose system Kan/sm1 \cite{kan},
61: which is a Gr\"obner engine for the ring of differential operators $D$.
62: In order to implement algorithms in $D$-modules due to Oaku
63: (see, e.g., \cite{sst-book}),
64: factorizations and primary ideal decompositions are necessary.
65: Kan/sm1 does not have an implementation for these and called
66: Risa/Asir as a UNIX external program.
67: This approach was not satisfactory.
68: Especially, we could not write a clean interface code between these
69: two systems.
70: We thought that it is necessary to provide a data and control protocol
71: for Risa/Asir to work as a server of factorization and primary ideal
72: decomposition.
73: \item We have been profited from increasing number
1.2 takayama 74: of mathematical software.
1.1 noro 75: These are usually ``expert'' systems in one area of mathematics
76: such as ideals, groups, numbers, polytopes, and so on.
77: They have their own interfaces and data formats,
78: which are fine for intensive users of these systems.
79: However, a unified system will be more convenient
80: for users who want to explore a new area of mathematics with these
1.2 takayama 81: software or users who need these systems only occasionally.
1.1 noro 82:
83: \item We believe that an open integrated system is a future of mathematical
1.2 takayama 84: software.
1.1 noro 85: However, it might be just a dream without realizability.
86: We want to build a prototype of such an open system by using
1.2 takayama 87: existing standards, technologies and several mathematical software.
1.1 noro 88: We want to see how far we can go with this approach.
89: \end{enumerate}
90:
91: Motivated with these, we started the OpenXM project with the following
1.2 takayama 92: fundamental architecture, which is currently described in
1.4 takayama 93: OpenXM-RFC 100 proposed standard %% ``draft standard'' and ``standard''
1.2 takayama 94: ``Design and Implementation of OpenXM client-server model and common
1.5 takayama 95: mathematical object format'' \cite{ox-rfc-100}.
1.1 noro 96: \begin{enumerate}
97: \item Communication is an exchange of messages. The messages are classified into
98: three types:
99: DATA, COMMAND, and SPECIAL.
100: They are called OX (OpenXM) messages.
101: Among the three types,
102: {\it OX data messages} wrap mathematical data.
103: We use standards of mathematical data formats such as OpenMath and MP
104: as well as our own data format {\it CMO}
1.2 takayama 105: ({\it Common Mathematical Object format}),
1.5 takayama 106: which can be expressed in terms of XML.
1.1 noro 107: \item Servers, which provide services to other processes, are stack machines.
108: The stack machine is called the
109: {\it OX stack machine}.
1.5 takayama 110: Existing mathematical software systems are wrapped with this stack machine.
1.1 noro 111: Minimal requirements for a target software wrapped with the OX stack machine
112: are as follows:
113: \begin{enumerate}
114: \item The target must have a serialized interface such as a character based
115: interface.
116: \item An output of the target must be understandable for computer programs;
1.2 takayama 117: it should follow a grammar that can be parsed with other software.
1.1 noro 118: \end{enumerate}
119: \item Any server may have a hybrid interface;
120: it may accept and execute not only stack machine commands,
121: but also its original command sequences.
122: For example,
123: if we send the following string to the {\tt ox\_asir} server
1.5 takayama 124: (OpenXM server of Risa/Asir) \\
1.1 noro 125: \verb+ " fctr(x^100-y^100); " + \\
126: and call the stack machine command \\
127: \verb+ SM_executeStringByLocalParser + \\
128: then the server executes the asir command \\
129: \verb+ fctr(x^100-y^100); +
130: (factorize $x^{100}-y^{100}$ over ${\bf Q}$)
131: and pushes the result onto the stack.
132: \end{enumerate}
1.4 takayama 133: OpenXM package implements the OpenXM-RFC 100 \cite{ox-rfc-100}
134: and 101 \cite{ox-rfc-101} based on
1.3 takayama 135: the above fundamental architecture.
136: In this paper, we discuss mainly on systems implementing
137: OpenXM-RFC 100 and 101 on TCP/IP.
1.1 noro 138: For example, the following is a command sequence to ask $1+1$ from
1.3 takayama 139: the Asir client to the {\tt ox\_sm1} server through TCP/IP:
1.1 noro 140: \begin{verbatim}
141: P = sm1_start();
142: ox_push_cmo(P,1); ox_push_cmo(P,1);
143: ox_execute_string(P,"add"); ox_pop_cmo(P);
144: \end{verbatim}
1.5 takayama 145: Here, {\tt ox\_sm1} is an OpenXM server of Kan/sm1.
1.1 noro 146:
1.3 takayama 147: Our project of integrating mathematical software
148: systems is taking the ``RFC'' approach, which has been
149: used to develop internet protocols.
150: We think that ``RFC'' approach is an excellent way and
151: we hope that other groups, who are working on standard protocols,
1.4 takayama 152: take this ``RFC'' approach, too.
1.2 takayama 153:
1.1 noro 154: The OpenXM on MPI \cite{MPI} is currently running on Risa/Asir
155: as we will see in Section \ref{section:homog}.
1.4 takayama 156: We are now preparing the OpenXM-RFC 102 ``Mathematical communication
1.2 takayama 157: on MPI'' (draft protocol)
158: based on our experiments on MPI.
1.4 takayama 159:
160: In the rest of the paper, we abbreviate
161: OpenXM-RFC 100 and 101 to OpenXM if no confusion arises.
1.2 takayama 162:
163:
164:
1.1 noro 165:
166:
167:
168:
169:
170:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>