Wiki source code of Building Concurrent Applications with WebObjects and Scala
Version 140.1 by Ravi Mendis on 2010/03/04 00:11
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
| |
133.1 | 1 | Given that todays processors ship with dual or quad cores and server processors ship with between 8 to 32 cores, languages like Java, Ruby, Groovy and Python are struggling to keep up. |
| |
50.1 | 2 | |
| |
133.1 | 3 | Scala, as its name suggests is built from the ground-up for concurrent programming - a methodology that can take advantage of these modern multi-core processors. |
| 4 | |||
| |
125.1 | 5 | If you use Scala for a concurrent programming, the chances are that you're using Scala Actor to do that. |
| |
50.1 | 6 | |
| 7 | == Using Scala Actors with EOF == | ||
| 8 | |||
| |
119.1 | 9 | EOF being notoriously single-threaded, is incredibly unsuitable for use by Scala Actors. |
| |
139.1 | 10 | Instead you may still use EOF but only to execute SQL directly. |
| |
50.1 | 11 | |
| |
73.1 | 12 | === Using EOAccess to execute SQL === |
| |
139.1 | 13 | |
| 14 | Using Wonder API: [[ERXEOAccessUtilities.evaluateSQLWithEntityNamed()>>http://webobjects.mdimension.com/hudson/job/Wonder53/javadoc/er/extensions/eof/ERXEOAccessUtilities.html#evaluateSQLWithEntity(com.webobjects.eocontrol.EOEditingContext,%20com.webobjects.eoaccess.EOEntity,%20java.lang.String)]] |