= false; // you will never write code like this … (new java.lang.Thread({ run: function() { x = true; } })).start(); ! while(x) { /* do nothing */ } ! return x; })();
story = store.query("…", {id: id}); ! var twtr = TwitterFactory().getInstance(); twtr.updateStatus(new StatusUpdate("Story#" + id); ! return env.renderResponse("page.html", { story: story } ); }; * das hier ist Demo-Code, einige Teile fehlen
now = java.util.Calendar.getInstance(); • var y = new Packages.at.orf.MeineSuperKlasse() • Für Java gibt es fast alles: • ORM, J2EE, JDBC-Driver, Imaging, XML, I/O, Spring, LDAP, Apache Commons, …
Ringo runs on the JVM • No compiling needed, hot reload of scripts • Access all the Java APIs from GAE • Datastore API • Cloud SQL • Service APIs (OpenID, Images, …)
habe ant für Dependency-Download genommen • App Engine SDK, Rhino, Ringo, JAFFL, JNR-POSIX • Ringo Core Modules • Packages (stick Web Framework, etc.) • In unter einer Stunde war alles erledigt!