Changes for page WebObjects with Scala

Last modified by Ravi Mendis on 2011/05/10 02:10

From version 423.1
edited by Ravi Mendis
on 2010/01/05 20:56
Change comment: There is no comment for this version
To version 422.1
edited by Ravi Mendis
on 2010/01/14 22:58
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,10 +1,14 @@
1 1  === What is Scala? ===
2 2  
3 3  Scala is a modern language not unlike Groovy.
4 -It is said to be more powerful and faster than Groovy or Ruby which has been the reason for its adoption at sites like Twitter.
4 +It is said to be more powerful and faster than Groovy or Ruby.
5 +This has been the reason for its adoption at sites like Twitter.
5 5  
6 -Many of its features and paradigms favor multi-threading and concurrency. Some of these may not be unfamiliar to Objective-C and WebObjects developers. Here's a summary:
7 +Many of its features and paradigms favor multi-threading and concurrency.
8 +It could be said that Scala was designed from the ground up for concurrency.
7 7  
10 +Some of these features may not be unfamiliar to Objective-C or WebObjects developers. Here's a summary:
11 +
8 8  |= |= Objective-C |= Java |= Scala
9 9  |= Mutable/Immuable Datatypes | Collections //e.g: NSArray/NSMutableArray// | No | Yes
10 10  |= Closures | Blocks (//Extension//) | No | Anonymous Functions
... ... @@ -26,10 +26,10 @@
26 26  With Web 2.0, building concurrent WebObjects applications is a must.
27 27  Developing and maintaining a concurrent or multi-threaded WebObjects application can be challenging.
28 28  
29 -Scala offers concurrency that is (effectively) built-in to the language and is inherently thread-safe.
30 -In other words, developing Ajax (i.e asynchronous communication) with WO will require concurrent request handling and thread-safe code, for which Scala is a better choice than Java.
33 +The lack of static variables means that Scala is inherently thread-safe.
34 +It has concurrency that is effectively built-in to the language in the form of Actors.
31 31  
32 -In addition it may offer new solutions for concurrency in WebObjects and EOF.
36 +So for WebObjects developers, Scala offers itself as a powerful, safe and easy-to-use solution for concurrent applications.
33 33  
34 34  === Can WebObjects be Programmed In Scala? ===
35 35