Scala.js

#programming-language

See also: Scala

Articles

Libraries

Videos

Towards Browser and Server Utopia with Scala.JS an example using CRDTs

Talk by Richard Dallaway, Jun 2015.


These are my notes:

def answer = Option(41).map(_ + 1)

get approximately converted to:

(function() {
    var o = Option().apply(41);
    if (o.isEmpty()) {
        var answer = None()
    } else {
        var arg1 = o.get();
        var answer = new Some().init(1 + arg1);
    };
    return answer;
});

Part 2 of the talk:

The problem

What not to do

Solution: “Commutative Replicated Data Type (CRDT)”

WOOT

Graph

Application Stack