Scalan-starter is a simple base project to start working with Scalan (see its README for more information).
Because there is currently no published version of Scalan, to build scalan-starter you first need to:
- Clone or download LMS (git clone https://github.com/scalan/virtualization-lms-core.gitfrom command line).
- Run sbt publishLocalin the directory it was cloned to.
- Clone or download Scalan (git clone https://github.com/scalan/scalan.git).
- Similarly run sbt publishLocal.
- Previous step produces file
examples/target/scala-2.11/src_managed/main/buildinfo/application.scalainscalandirectory. Copy value ofextraClassPathfrom there (including quotes) intoscalan-starter-core/src/main/resources/application.confunder keyscalan.plugins.extraClassPathin this directory (seereference.conffiles inscalanfor other configuration options, which you may also want to change).
You should now be able to run sbt test to check that demonstration examples. You will see messages like
error: illegal sharing of mutable objects ..., which can be ignored.
Now you can try writing your own Scalan DSLs and kernels and running them.