Clasp — Bringing Common Lisp and C++ Together
NOTE: November 28, 2018 - This contains a pre-release of Clasp 0.9.
Clasp is a new Common Lisp implementation that seamlessly interoperates with C++ libraries and programs using LLVM for compilation to native code. This allows Clasp to take advantage of a vast array of preexisting libraries and programs, such as out of the scientific computing ecosystem. Embedding them in a Common Lisp environment allows you to make use of rapid prototyping, incremental development, and other capabilities that make it a powerful language.
See the RELEASE-NOTES
At the moment, Clasp is supported on Linux, Mac OS X and FreeBSD. On these systems, you should be able to build it from source.
Building takes a lot of resources. In parallel mode ('USE_PARALLEL_BUILD = True' in wscript.config) you will not be able to survive with only 8 GB of RAM and it will be 1-2 hours build time. If you have 8 GB of RAM you can turn off the parallel build which will then run for a day or so. Make sure to have some paging space ("swapfile") configured.
There is a docker image for a superset of Clasp called Cando
Currently there are no binary releases available, however you can extract a working /opt/clasp tree for Debian 10 out of the docker image.
Common Lisp Ecosystem Support
Clasp supports the following major components:
Post on the issues or contact us if you're interested in changing that.
Contributing to Clasp
We very much welcome any kind of contribution to Clasp, even if it is just bug finding and testing. A lot can be done all around the project, if you want to dive into something large. See the CONTRIBUTING file for the few guidelines we've set up around contributions.
Generally you can report problems in two fashions, either by opening an issue ticket or by chatting with us directly. In both cases, though, you should have the following pieces handy in order for us to be able to help you out as quickly and painlessly as possible:
- Your operating system name and version.
- The branches that you're using of Clasp and Externals-Clasp.
- A paste of the build log or failure point that you reached.
Clasp has an IRC channel on Freenode called #clasp. If you have questions, problems, suggestions, or generally would like to just hang out with us devs, come and stop by!
More on Clasp
For more information on Clasp and the discussion around it, see the following sites:
Clasp was supported by:
- The Defense Threat Reduction Agency (DOD-DTRA) (HDTRA1-09-1-0009)
- The National Institutes of Health (NIH/NIGMS Grant number: 2R01GM067866-07A2)
- The National Science Foundation (Grant number: 1300231)