Lucre
statement
Lucre is an STM based persistent and reactive system for the Scala programming language. It is the foundation of the computer music framework SoundProcesses and its interface front-end Mellite.
Lucre is (C)opyright 2009–2022 by Hanns Holger Rutz. All rights reserved.
All modules are released under
the GNU Affero General Public License v3+.
The software comes with absolutely no warranties. To contact the author, send an e-mail to contact at sciss.de.
Further reading:
- Rutz, H.H., "A Reactive, Confluently Persistent Framework for the Design of Computer Music Systems," in Proceedings of the 9th Sound and Music Computing Conference (SMC), Copenhagen 2012.
requirements / installation
Lucre builds with sbt against Scala 2.12, 2.13, Dotty (JVM) and Scala 2.13 (JS). The last version to support Scala 2.11 was v3.13.1.
N.B.: On Scala.js, currently the types Artifact and ArtifactLocation are missing, as there is no notion of
the underlying java.io.File. In the future, we might change the API to support more generic paths or URIs instead
of plain files. Furthermore, the package bdb is not available on Scala.js, meaning there is currently no
persistent database back-end available, and you will have to stick to InMemory systems. Ex
serialization will currently fail at link time due to the dependency on reflection which is not supported under
Scala.js. The currently published version for Scala.js should thus be regarded as aiding experiments with Scala.js
only.
linking to Lucre
Lucre comes with multiple modules:
adjunctintroduces a type-class API with fast serialization.baseintroducesBasequasi-system type, which may or may not be transactional; it contains aPlainbase system.geomintroduces geometric data types (required bydata)dataintroduces data structures compatible withbasecoreintroducesSyssystem type, extending overbase, and introducing the event reaction layer; it contains in-memory and durable systems.exprintroduces expressionsconfluentcontains a confluently persistent systembdbcontains a database back-end based on Oracle BerkeleyDB Java Edition 7.
The following dependency is necessary:
"de.sciss" %% "lucre" % v
Or just for a selected module:
"de.sciss" %% "lucre-{module}" % v
Where {module} is any of the above names.
The current version v is "4.6.4".
contributing
Please see the file CONTRIBUTING.md