Re: Anyone playing with Scala?
Re: Anyone playing with Scala?
- Subject: Re: Anyone playing with Scala?
- From: Q <email@hidden>
- Date: Thu, 17 Sep 2009 15:10:33 +1000
On 17/09/2009, at 2:43 PM, Ravi Mendis wrote:
Playtime is over for Scala...
...my intention is to do my next production app in Scala.
The primary motivation for using Scala is that it is inherently
thread-safe.
Web 2.0 apps (like a ERDivaLook app for example) really need
concurrent request handling.
How does scala improve concurrent request handling in WO? Your session
is going to only allow a single RR to use it at a time. And EOF has
context locks and a giant lock on changes stopping concurrency. If you
go stateless then there is no shared state data between requests
anyway, except whatever you put into Application. Where does the need
for better thread safety fit in?
Or are you talking about using Lift or something other than WO in your
future projects?
With Java, one can be careful, but unless you code-review regularly
you can never be sure you have thread-safe code.
In Scala you are automatically writing thread-safe code (more or
less).
So you don't have to have sleepless nights over deadlocks when using
concurrent request handling :)
Now, developing and deploying more ambitious Web 2.0 UI is a
possibility...
On Thursday, September 17, 2009, at 06:10AM, "Q" <email@hidden>
wrote:
Thanks Ravi, I will check it out. It's only been 2 years and 3 months
since I asked the original question. :)
Over the last couple of years I have actually written a few proof of
concept approaches for writing wo apps in other languages: ruby,
groovy, javascript, etc. They worked with various amounts of success,
and it is all very cool, but I always keep coming back to java
because
of the tool support and IDE integration with WOLips and Java.
Particularly for things that aren't code, like component validation,
content assist, etc.
Do you feel this is something you would use to write real world apps
with, or is it just something you have tried as a bit of fun?
On 17/09/2009, at 11:27 AM, Ravi Mendis wrote:
Dusting off an ancient thread here...
For those interested in programming WebObjects in Scala, you might
like:
http://wiki.objectstyle.org/confluence/display/WO/WebObjects+with
+Scala
Thanks to Dominique Schonenberger for gifting me "Programming in
Scala" (by Martin Odersky) for my holidays :)
FYI: Martin Odersky, is both the author of the language and the
book.
I highly recommend it! It's easy to see why Scala's become popular
at Twitter, linkedin, etc.
Thanks,
Ravi
--
Seeya...Q
Quinton Dolan - email@hidden
Gold Coast, QLD, Australia (GMT+10)
--
Seeya...Q
Quinton Dolan - email@hidden
Gold Coast, QLD, Australia (GMT+10)
_______________________________________________
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