+ All Categories
Home > Technology > Cayla and Vert.x in Ceylon, by Gavin King

Cayla and Vert.x in Ceylon, by Gavin King

Date post: 23-Jun-2015
Category:
Upload: unfromage
View: 10,470 times
Download: 3 times
Share this document with a friend
Description:
Discover the Ceylon/Vert.x integration and Cayla: Ceylon's new web framework.
Popular Tags:
6
Cayla + Vert.x
Transcript
Page 1: Cayla and Vert.x in Ceylon, by Gavin King

Cayla + Vert.x

Page 2: Cayla and Vert.x in Ceylon, by Gavin King

Disclaimer

• I make a very poor Julien Viet

Page 3: Cayla and Vert.x in Ceylon, by Gavin King

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

Page 4: Cayla and Vert.x in Ceylon, by Gavin King

Big picture

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

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

Page 5: Cayla and Vert.x in Ceylon, by Gavin King

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” );

Page 6: Cayla and Vert.x in Ceylon, by Gavin King

Demo

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


Recommended