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.git
from command line). - Run
sbt publishLocal
in 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.scala
inscalan
directory. Copy value ofextraClassPath
from there (including quotes) intoscalan-starter-core/src/main/resources/application.conf
under keyscalan.plugins.extraClassPath
in this directory (seereference.conf
files inscalan
for 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.