Upload
unfromage
View
10.473
Download
3
Tags:
Embed Size (px)
DESCRIPTION
Discover the Ceylon/Vert.x integration and Cayla: Ceylon's new web framework.
Citation preview
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