GithubHelp home page GithubHelp logo

lalford / scala-js-actors Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sjrd/scala-js-actors

0.0 1.0 0.0 2.18 MB

Actor system for Scala.js

License: BSD 3-Clause "New" or "Revised" License

Scala 96.84% HTML 1.59% ApacheConf 0.67% CSS 0.81% JavaScript 0.09%

scala-js-actors's Introduction

Actor system for Scala.js

This project aims at providing an actor system for Scala.js, featuring:

  • Supervision
  • (Almost) transparent collaboration with actors in an Akka-based backend
  • Transparent collaboration with actors in several Web Workers

It is currently a prototype, working well but still in a rough shape. Hence, it is not published anywhere yet.

Build it and try the examples

To build the libraries, use

> package

in an sbt console.

Fault-tolerance example

The fault-tolerance example is taken from Akka's documentation and showcases supervision, death watch notifications and the like.

Build it with:

> faultToleranceExample/fastOptJS

then open examples/faulttolerance/index-fastopt.html in your browser and look at the Web console for the output.

Web Workers example

The Web Workers example demonstrates the communication between Web Workers.

Build it with:

> webworkersExample/fastOptJS

then open examples/webworkers/index-fastopt.html in your browser and look at the Webconsole for the output.

Chat example (with client-server communication)

The Chat example is a full-stack Play/Akka/Scala.js application where client and server communicate transparently between Akka/JVM and "Akka/JS".

Build the client then run the server with:

> chatExampleScalaJS/fullOptJS
> project chatExample
[scalajs-actors-examples-chat] $ run

then navigate to http://localhost:9000/opt with your browser. To have some fun, open multiple tabs (or multiple browsers) and start playing with the chat.

Design documentation

The best source of documentation for the design at large is this report.

License

Scala.js actors is distributed under the Scala License.

scala-js-actors's People

Contributors

sjrd avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.