• This repository has been archived on 31/Mar/2018
  • Stars
    star
    100
  • Rank 340,703 (Top 7 %)
  • Language
    Scala
  • License
    BSD 3-Clause "New...
  • Created almost 11 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Actor system for Scala.js

Actor system for Scala.js -- obsolete

This project is obsolete. It has been superseded by Akka.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.

More Repositories

1

scala-js-ts-importer

TypeScript Importer for Scala.js
Scala
231
star
2

scala-js-example-app

Example application built with Scala.js
Scala
166
star
3

scala-js-jquery

jQuery facade types for Scala.js
Scala
83
star
4

ozma

Extending Scala with Oz Concurrency
Scala
82
star
5

scalajs-sbt-vite-laminar-chartjs-example

An example of using Scala.js with sbt, Vite, Laminar and Chart.js
Scala
82
star
6

scala-unboxed-option

A type-parametric unboxed Option type for Scala
Scala
59
star
7

scala-js-pickling

Pickling for Scala.js
Scala
40
star
8

sbt-dynscalajs

Dynamically switch between the JVM target and versions of Scala.js in a Scala project
Scala
24
star
9

scalatscomp

A TypeScript compiler written in Scala (wip)
Scala
15
star
10

sepi

Object-oriented scripting engine for Delphi
Pascal
12
star
11

scalajs-reflect

Proof of concept of a "linker plugin" enabling some reflection for Scala.js
Scala
11
star
12

scalajs-phaser-demo

Small demo of a game written in Scala.js with the Phaser library
JavaScript
10
star
13

scala-javalib

Partial implementation of the Java standard library in Scala
Scala
8
star
14

scalajsir-calc

A toy project to play with the Scala.js IR
Scala
8
star
15

funlabyrinthe-scala

A reimplementation of FunLabyrinthe in Scala
Scala
7
star
16

funlabyrinthe

A fun maze game with tremendous customization features
Pascal
5
star
17

gwt-sha512-benchmark

SHA-512 benchmark for GWT
Java
2
star
18

kotlin-long-bench

Kotlin
2
star
19

scala-js-teavm-examples

Port of the Scala examples of TeaVM to Scala.js
Scala
2
star
20

mozart2-libmozart-experiment

Template for experimenting with the Mozart2 VM library
C++
2
star
21

funlaby-extensions

Extensions for FunLabyrinthe
Pascal
2
star
22

funlaby-library

Official library of FunLabyrinthe
Pascal
2
star
23

mozart-app-test

Test application using the new Mozart VM
2
star
24

try_git

1
star
25

scala-js-long-benchmark

JavaScript
1
star
26

teavm-long-bench

SHA-512 benchmark for TeaVM
Java
1
star
27

capture-the-flag

Simulation of the game Capture the Flag: Ozma example
Scala
1
star