Cayla and Vert.x in Ceylon, by Gavin King

Post on 23-Jun-2015

10,470 views 3 download

Tags:

description

Discover the Ceylon/Vert.x integration and Cayla: Ceylon's new web framework.

transcript

Cayla + Vert.x

Disclaimer

• I make a very poor Julien Viet

Big picture

• Vert.x — a node.js-style web server for the JVM

• Ceylon Vert.x — embed Vert.x in Ceylon, integrate with Ceylon SDK

• Vert.x Ceylon — load Ceylon modules in Vert.x server

• ceylon.promises — promises module in Ceylon SDK

Big picture

• Cayla — a server-side web framework for Vert.x

• Cayla MVVM — a client side MVC framework with databinding (Knockout-like)

PromisesSynchronous ! try { String s = do(); return “it works ” + s; } catch (Exception e) { return “it failed”; }

Asynchronous ! Promise<String> p = do(); p.then_( (String s) => “it works ” + s, (Exception e) => “it failed” );

Demo

• Let’s write a little program using promises in Cayla and Vert.x