Re: Anyone playing with Scala?
Re: Anyone playing with Scala?
- Subject: Re: Anyone playing with Scala?
- From: Lachlan Deck <email@hidden>
- Date: Thu, 17 Sep 2009 15:40:26 +1000
On 17/09/2009, at 3:24 PM, Ravi Mendis wrote:
I am thinking of using Scala with WebObjects...yes.
Typically deadlocks are more likely to be caused by your own code,
rather than the underlying frameworks.
This assumes you're using Wonder/WO/EOF in a thread-safe manner.
i.e you are taking the necessary precautions for EOF (like turning
off shared EOs, auto lock/unlocking of ECs, etc).
Broadly speaking, Scala is safer to use than Java for developing a
concurrent request handling app because of its lack of static
variables
I'm not sure why static variables would be necessarily anti-
concurrent? It depends on the type of variable, no? e.g., a static
string is immutable. A static nsformatter is not re-entrant... etc
and methods, use of separate mutable/immutable datatypes and
collections, etc.
Using Ajax (i.e asynchronous communication) with WO is where the
need for concurrent request handling and better thread-safety come
in...
with regards,
--
Lachlan Deck
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden