Tic Tac Toe in Lift

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    Tic Tac Toe in Lift - Presentation Transcript

    1. Lift The simply functional web framework
    2. Scala • Kjører på JVM’en (og CLR) • Sterkt typet • Typeinferens • Hybrid mellom funksjonelt og objektorientert
    3. Lift • Skrevet i Scala • Forsøk på (nok en gang) å plukke de beste aspektene av konkurrerende rammeverk • Komponent-orientert (a’la Wicket, Tapestry) • View-first
    4. Tic Tac Toe
    5. Tic Tac Toe Server Client O TicTacToeClient X TicTacToeServer TicTacToeClient O X
    6. Actors • Basert på Erlangs Actor model • Abstraksjon av tråder • Meldingsbasert • Thread pool
    7. object PingPong extends Application { var count = 0; val pong = actor { loop { react { case Ping => println("Actor Pong Received Ping") sender ! Pong case Stop => println("Stopping Pong") exit() } } } val ping = actor { pong ! Ping loop { react { case Pong => println("Actor Ping Received Pong") count = count + 1; if (count < 3) { sender ! Ping } else { sender ! Stop println("Stopping Ping") exit() } } } } } case object Ping case object Pong case object Stop
    8. DEMO!

    + Erlend HalvorsenErlend Halvorsen, 3 weeks ago

    custom

    68 views, 0 favs, 0 embeds more stats

    Slides from my lightning talk on writing a real tim more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 68
      • 68 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 1
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories