Re: RXLisp
Duncan Temple Lang <[email protected]> Sun, 1 Sep 2002 15:55:23 -0400
| Newsgroups | gmane.lisp.statistics |
|---|---|
| Message-ID | <[email protected]> |
There is a new version of the package (0.3-1) on the Omegahat web site (http://www.omegahat.org/RXLisp) and it allows R to be embedded in an an XLisp-Stat session. So now you have the XLisp syntax, etc. and the R functionality hidden beneath it. This also allows R to call back into XLisp. For that reason, the approach of including the .o's from the xlispstat directory directly into the shared library that R loads will probably lead to some complications. Specifically, you will probably have two copies of the variables in the C code and only one of them will be initialized. And potentially, routines in one set of code may access the uninitialized variables! I think we need to find the correct linker flags to get all this working on the Mac. I am pretty certain that the OS X linker and loader are up to the job at hand. We just need to coax the necessary information from deep in the documentation. D. Jan de Leeuw wrote: > As you know, I wrap the foo.o files from the XLISP-STAT compile > in an archive libxlisp.a and use that in the link of RXLisp.so. > Seems to work. I guess it produces a bigger RXLisp.so, but > are there other problems with it ? > > Also, in the other direction, will you use the usual XLISP-STAT > foreign code interface to load a comparable bundle R.so into > XLISP-STAT ? Which then may have to use a comparable static > libR.a. > > Finally, the duplicate symbols. Both R.bin, which is used as the > bundle-loader, and libxlisp.a have a _main, for instance. I force > the linker to use the first one, whichever one that is. Could this > give problems down the road ? > === > Jan de Leeuw; Professor and Chair, UCLA Department of Statistics; > US mail: 9432 Boelter Hall, Box 951554, Los Angeles, CA 90095-1554 > phone (310)-825-9550; fax (310)-206-5658; email: [email protected] > homepage: http://gifi.stat.ucla.edu > > ------------------------------------------------------------------------ > ------------------------- > No matter where you go, there you are. --- Buckaroo Banzai > http://gifi.stat.ucla.edu/sounds/nomatter.au > > ------------------------------------------------------------------------ > ------------------------- >