Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Annotation of /sml/trunk/src/cml/doc/HTML/porting.html
ViewVC logotype

Annotation of /sml/trunk/src/cml/doc/HTML/porting.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9 - (view) (download) (as text)

1 : monnier 8 <!-- HTML/porting.html -->
2 : monnier 2
3 :     <!-- COPYRIGHT (c) 1995 AT\|@AMP\|T Bell Laboratories. -->
4 :    
5 :     <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.2//EN">
6 :     <HTML>
7 :     <HEAD>
8 :     <TITLE>Porting old programs</TITLE>
9 :     </HEAD>
10 :     <BODY>
11 : monnier 8 <A NAME="top"></A>
12 :     <H1 align=CENTER>The Concurrent ML Reference Manual</H1>
13 : monnier 2 <HR>
14 :    
15 : monnier 8
16 : monnier 2 <H3>Porting old CML programs</H3>
17 :     <P>
18 :     There have been substantial changes from version&nbsp;0.9.8 of CML. Most of these changes are cosmetic name changes meant to track changes in the SML interfaces, and to rationalize naming conventions. In this section, we detail the changes to the CML interfaces, and describe correspondence between the old and new interfaces.
19 :     <H4>Backwards compatibility modules</H4>
20 :     <P>
21 :     To ease the transition from version&nbsp;0.9.8 of CML to the new interfaces, we provide two backwards compatibility modules in the CML Library.
22 :     <H4>Name changes</H4>
23 :     <HR>
24 :     <CENTER>
25 :     <TABLE ALIGN=CENTER>
26 :     <TR>
27 :     <TH ALIGN=CENTER VALIGN=TOP>
28 :     Old name
29 :     <TH ALIGN=CENTER VALIGN=TOP>
30 :     New name
31 :     <TR>
32 :     <TD ALIGN=LEFT VALIGN=TOP>
33 :     <CODE>accept</CODE>
34 :     <TD ALIGN=LEFT VALIGN=TOP>
35 :     <A HREF="cml.html#SIG:CML.recv:VAL:SPEC">recv</A>
36 :     <TR>
37 :     <TD ALIGN=LEFT VALIGN=TOP>
38 :     <CODE>receive</CODE>
39 :     <TD ALIGN=LEFT VALIGN=TOP>
40 :     <A HREF="cml.html#SIG:CML.recvEvt:VAL:SPEC">recvEvt</A>
41 :     <TR>
42 :     <TD ALIGN=LEFT VALIGN=TOP>
43 :     <CODE>transmit</CODE>
44 :     <TD ALIGN=LEFT VALIGN=TOP>
45 :     <A HREF="cml.html#SIG:CML.sendEvt:VAL:SPEC">sendEvt</A>
46 :     <TR>
47 :     <TD ALIGN=LEFT VALIGN=TOP>
48 :     <CODE>timout</CODE>
49 :     <TD ALIGN=LEFT VALIGN=TOP>
50 :     <A HREF="cml.html#SIG:CML.timeOutEvt:VAL:SPEC">timeOutEvt</A>
51 :     <TR>
52 :     <TD ALIGN=LEFT VALIGN=TOP>
53 :     <CODE>waitUntil</CODE>
54 :     <TD ALIGN=LEFT VALIGN=TOP>
55 :     <A HREF="cml.html#SIG:CML.atTimeEvt:VAL:SPEC">atTimeEvt</A>
56 :     <TR>
57 :     <TD ALIGN=LEFT VALIGN=TOP>
58 :     <CODE>threadWait</CODE>
59 :     <TD ALIGN=LEFT VALIGN=TOP>
60 :     <A HREF="cml.html#SIG:CML.joinEvt:VAL:SPEC">joinEvt</A>
61 :     <TR>
62 :     <TD ALIGN=LEFT VALIGN=TOP>
63 :     <CODE>sameThread</CODE>
64 :     <TD ALIGN=LEFT VALIGN=TOP>
65 :     <A HREF="cml.html#SIG:CML.sameTid:VAL:SPEC">sameTid</A>
66 :     </TABLE>
67 :     </CENTER>
68 :     <HR>
69 :    
70 :     <H4>Input/output</H4>
71 :     <P>
72 :     The most significant changes to the CML interfaces have to do with input/output operations. In version&nbsp;0.9.8, the structure <CODE>CIO</CODE> provided an implementation of the SML/NJ <CODE>IO</CODE> signature extended with event-valued operations. The old SML I/O interface has been replaced with a new interface, which is described in the SML Basis Library Manual, and CML has followed suite.
73 :     <H4>Condition variables</H4>
74 :     <H4>Polling</H4>
75 :     <P>
76 :     The only loss in function from version&nbsp;0.9.8 is the elimination of the <CODE>poll</CODE> operation, which provided a non-blocking form of <A HREF="cml.html#SIG:CML.sync:VAL:SPEC">sync</A>. Instead of this operation, CML now provides non-blocking input operations on many of the basic communication types.
77 : monnier 8
78 :    
79 : monnier 2 <HR>
80 : monnier 8 <CENTER>
81 :     <B>[ <A HREF="index-all.html">INDEX</A> | <A HREF="#top">TOP</A>
82 : monnier 2 | <A HREF="basics.html">Parent</A> | <A HREF="refman.html">Root</A>
83 :     ]</B>
84 : monnier 8 </CENTER>
85 : monnier 2 <P>
86 :     <I>Last Modified November 16, 1995</I><BR>
87 : monnier 8 <I>Comments to <A HREF="mailto:jhr@research.bell-labs.com">John Reppy.</A></I><BR>
88 :    
89 :     Copyright &copy; 1997 Bell Labs, Lucent Technologies <BR>
90 :    
91 : monnier 2 <HR>
92 :     </BODY>
93 :     </HTML>

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0