Scala on Google App Engine


        Eishay Smith
           KaChing
Who Am I

    kaChing - Rocking the inventing world ! 
    Scala @ LinkedIn
    Blogging http://www.eishay.com
    Newspip...
Google App Engine

 Run your web apps on Google's infrastructure. 
    Easy to build, easy to maintain, easy to scale.  
 ...
Tooling

 Eclipse
    Great GAE support for Java with GWT and JDO
    Some problems coming to Scala
 Ant
    All you need
...
Scala and Google Web Toolkit (GWT)

    GWT - quickly build and maintain complex & performant
    JavaScript front-end app...
Use interface

To buffer between Scala and GWT code
Implement using the best language

 
Use From GWT

 
One XML to bind them all

 
Regular HttpServlet

 
With Regular Binding

 
Scala @ JDO: Spelling it out




Similar to the Java JDO
Using the same annotations
Scala @ JDO: ANT

 The ORM enhancer works on the class files
   Bytecode instrumentation
   Does not matter if its Java or...
Scala @ JDO: Eclipse Support

 Not really working since the IDE is looking for Java
 source files to instrument
 The solut...
More Limitations

 Same limitations as in Java
    IO libraries
    Threading
 Can't open new threads => Actors in a same ...
Building
Scala
Scalac knows
how to read
java code !
Needed for
circular
dependencies.
We Are Hiring !
Upcoming SlideShare
Loading in …5
×

A First Look At Scala On Google App Engine

4,522 views

Published on

A First Look At Scala On Google App Engine

0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
4,522
On SlideShare
0
From Embeds
0
Number of Embeds
34
Actions
Shares
0
Downloads
35
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

A First Look At Scala On Google App Engine

  1. 1. Scala on Google App Engine Eishay Smith KaChing
  2. 2. Who Am I kaChing - Rocking the inventing world !  Scala @ LinkedIn Blogging http://www.eishay.com Newspipes http://github.com/eishay/newspipes kaChing Twitter Bot http://code.google.com/p/kaching-twitter/ Presented:             "Absorbing Scala into Java Ecosystem"
  3. 3. Google App Engine Run your web apps on Google's infrastructure.  Easy to build, easy to maintain, easy to scale.   Now with Java  And a host of languages  that run on the JVM JRuby, Groovy, Scala, Jython, ...
  4. 4. Tooling Eclipse Great GAE support for Java with GWT and JDO Some problems coming to Scala Ant All you need Longer development/test cycle Oher IDEs Netbeans IDEA
  5. 5. Scala and Google Web Toolkit (GWT) GWT - quickly build and maintain complex & performant JavaScript front-end apps written in Java (NOT Scala) GWT actually compiles the Java source code A GWT class should not reference any Scala class Still, GWT is super cool, use it!   You can still have 99% of the server side in Scala Use Java only for service interfaces Use Scala for the rest
  6. 6. Use interface To buffer between Scala and GWT code
  7. 7. Implement using the best language  
  8. 8. Use From GWT  
  9. 9. One XML to bind them all  
  10. 10. Regular HttpServlet  
  11. 11. With Regular Binding  
  12. 12. Scala @ JDO: Spelling it out Similar to the Java JDO Using the same annotations
  13. 13. Scala @ JDO: ANT The ORM enhancer works on the class files Bytecode instrumentation Does not matter if its Java or Scala
  14. 14. Scala @ JDO: Eclipse Support Not really working since the IDE is looking for Java source files to instrument The solution is to use Eclipse Builders  Have the ANT JDO builder building after compilation Provide an appengine.sdk path to the jar Eclipse use
  15. 15. More Limitations Same limitations as in Java IO libraries Threading Can't open new threads => Actors in a same thread mode  Lift on a single threaded Actor is happy
  16. 16. Building Scala Scalac knows how to read java code ! Needed for circular dependencies.
  17. 17. We Are Hiring !

×