Popularity
3.8
Growing
Activity
0.3
Growing
122
15
8

Programming language: Scala

SynapseGrid alternatives and similar packages

Based on the "Functional Reactive Programming" category

Do you think we are missing an alternative of SynapseGrid or a related project?

Add another 'Functional Reactive Programming' Package

README

SynapseGrid

Build Status

SynapseGrid is an original approach to implement functional reactive programming paradigm in Scala. The library is based on a solid foundation of Petri nets.

A few words about what SynapseGrid is:

  • framework for constructing systems that are:
    • reactive
    • event-driven
    • resilent
  • it resembles other modern event-driven architectures (ScalaRx, Akka Streams, Spark, etc.).

Blog about SynapseGrid

Feature highlights

  1. SynapseGrid allows function composition of "multifunctions" (functions with a few inputs and outputs). It is more flexible than monads composition of Kleisli Arrows.
  2. Strictly typed message handling in Akka actors (more natural than in Typed actors or Typed Channels).
  3. Multi input/multi output functions (multifunctions).
  4. Systems process portions of information ASAP. The grid can be the base of real time systems.
  5. It is possible to nest subsystems (like matreshkas) creating modular systems.
  6. Declarative composition in the form of DataFlow diagram.
  7. Easy to use DSL: val a = contact[String]("a") val b = contact[String]("b") val c = contact[Char]("c") a -> b flatMap (.split("\s+")) a -> c flatMap (.toCharArray) inputs(a) outputs(b,c)
  8. Dependency injection replacement (accompanied with Scala traits).
  9. DataFlow diagram for a system can be created easily — system.toDot(): [example1 system picture](docs/images/example1.png) [example2 system picture](docs/images/example2.png) [example3 system picture](docs/images/example3.png)

For details see [README in English](docs/README.EN.md).

Getting started

Add a dependency to your build:

  • gradle:

    compile ['ru.primetalk:synapse-grid-core_2.11:1.4.7', 'ru.primetalk:synapse-grid-akka_2.11:1.4.7']

or compile ['ru.primetalk:synapse-grid-core_2.11:1.4.7', 'ru.primetalk:synapse-grid-akka_2.11:1.4.7']

  • sbt:

    libraryDependencies += "ru.primetalk" %% "synapse-grid-core" % "1.4.7" libraryDependencies += "ru.primetalk" %% "synapse-grid-akka" % "1.4.7"

(or any other build system: group: ru.primetalk, artifactId: synapse-grid-core, version: 1.4.7)

Travis build status

  • PR status: Build Status

See also (English)

  1. [Walkthrough](docs/README.EN.md).
  2. [Motivation for SynapseGrid](docs/SpeechPortalMotivation.RU.md).
  3. [License (BSD-like)](LICENSE.md).
  4. [Subsystems](docs/Subsystems.EN.md).
  5. Blog about SynapseGrid
  6. [Distrubuted systems](docs/Distributed.EN.md)
  7. [Typed frames](docs/Frames.EN.md).

См. также (See also in Russian)

  1. [README по-русски](docs/README.RU.md).
  2. [Actors support (in Russian)](docs/Actors.RU.md).
  3. [Лицензия](docs/LICENSE.RU.md).
  4. [Работа с подсистемами](docs/Subsystems.RU.md).
  5. Blog about SynapseGrid (en)
  6. [Распределённые системы](docs/Distributed.RU.md).
  7. [Строго типизированные фреймы](docs/Frames.RU.md).
  8. Хабрахабр: Строго типизированное представление неполных данных


*Note that all licence references and agreements mentioned in the SynapseGrid README section above are relevant to that project's source code only.