Dimitris Papavasiliou
unread,Oct 1, 2022, 12:41:29 PM10/1/22Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to chibi-scheme
Hello all,
I'm in the final stages of releasing an application that embeds Chibi-Scheme. I'm working primarily on GNU/Linux, but hope to support other platforms too and up until now I've built Chibi-Scheme manually and installed it locally and its working fine, at least for development.
I'm not sure though that installing Chibi-Scheme system-wide and using it as a shared library would be appropriate for production use. For one, this would make the assumption that two or more programs embedding Chibi-Scheme on the same system, would want to use the same, default configuration (i.e. whatever the system package maintainer chose). This doesn't necessarily seem like a reasonable assumption (for instance, if I get something like PR#856 merged, I won't want to).
It would seem best to statically link Chibi-Scheme into the application, bundling together whatever system libraries are necessary. I can build and link a static library and, although I haven't managed to make it work yet, probably bundle any C libraries using "make clibs.c" etc., but what about system libraries implemented in Scheme? One approach might be to "make install" into a local directory of the embedding application then distribute the "installed" files along with it and set import paths accordingly. I also notice support for images, which seem to be of particular interest in all this, but can't find any documentation on them.
I guess the question is, what would be the best way to truly embed Chibi-Scheme into an application? Here "truly" is meant in the sense that Chibi-Scheme should become part of the application and be distributed with it and "best" is meant as least amount of work, complexity, potential for complications on other platforms and the like.
Thanks,
Dimitris