Notes /
AccessorRegistrationEdward's June 19, 2015 emailWhat I am envisioning for accessors is a registration mechanism like that used for node (NPM) and Vert.x modules. Accessor names should be globally unique, and a directory of accessors should be maintained as it is for node and Vert.x modules. A separate registration mechanism will be needed for modules supported by each accessor host. The host-independent part of this is the module name and the API (signatures of the functions in the module). The module implementation itself (the function implementations) can be host dependent. What we have now is: A. For the first of the above, https://ptolemy.berkeley.edu/accessors B. For module APIs, https://ptolemy.berkeley.edu/accessors/wiki/Version0/OptionalJavaScriptModules C. For host-specific module implementions: $PTII/ptolemy/actor/lib/jjs/modules
I don't know where the host-specific implementation is for node.js or browser hosts. We could clone ptolemy-independent repos in the ptolemy tree, if necessary, e.g. to have a local copy of A and B. This really needs to be worked out sooner rather than later. The most stuff we build with an inadequate layout, the more trouble we will have creating the right layout. |