4 ms·
"Scala does a wonderful thing, it allows enterprise developers to taste some of the goodies of Ruby / Python but stay in static Java land. which is great news f
by mgkimsal 14y ago
"Scala does a wonderful thing, it allows enterprise developers to taste some of the goodies of Ruby / Python but stay in static Java land. which is great news for everyone."
Groovy does the same thing with less friction and switching overhead.
- cfontes 14y agoNanana... I know both, and Scala and Groovy are complety different tools Groovy is great to Websites and fast development they remove the code complexity and verbosity of java using type inference, some functional goodies like closures and add DSL capabilities,I use it everyday and it's a very nice tool. Scala is another kind of tool, it also does type inference and add functional goodies and support DSL BUT it have a deep love to parallelism (actors and non mutable objects as an example) and is way closer to the functional paradigm than Groovy, but it's more complex. So you gotta choose wisely so you don't end up with the hammer to a screw kind of problem. My view: Groovy is for fast development and WEB stuff mainly because of Grails which is an awesome tool as well. Scala is more a backend tool when you need Horse Power, but that's because the lang is more complex, I don't like Play and Lift is not as easy to understand as Grails. Again no Flamewars please.
- mgkimsal 14y agoWasn't trying to start a flamewar. Yes, they're completely different tools. Per the original quote though "it (scala) allows enterprise developers to taste some of the goodies of Ruby / Python" Groovy fits that bill far better than Scala if you're primarily looking for a taste, without having to adopt the complexity of a new worldview.
- cfontes 14y agoI am sorry I said no flamewars because of what I was saying, to point that I didn't want to start one. Your answer was not the flamewars kind at all. And yes Groovy fits perfectly in that statement.
- chaostheory 14y ago> Scala is another kind of tool, it also does type inference and add functional goodies and support DSL BUT it have a deep love to parallelism (actors and non mutable objects as an example) I believe Groovy also supports actor concurrency via gPars. That said, I still haven't seen anything like Akka on any other language, specifically its distributed processing p2p feature. To me Akka is Scala's 'killer app'. I agree I don't like the new Play framework. I didn't mind the magic being taken away but with taking the magic out, they also killed any form of convenience without providing a replacement.
- discreteevent 14y ago" I stil haven't seen anything like Akka on any other language". You can use Akka from java but the messages are effectively dynamically typed which isn't a big deal. However, as Rich Hickey said, a queue is simpler than an actor (Go understands this also). Java has excellent blocking queue implementations. In fact java has libs that support all kinds of concurrent solutions and they are not that complex. I still like Scala though (and really like Go but my work is on the jvm)
- chaostheory 14y ago> You can use Akka from java True, but I just got sick of Java being a 2nd class citizen on Akka. > In fact java has libs that support all kinds of concurrent solutions and they are not that complex. hmmm does java have a distributed concurrent solution that isn't complex? Aside from Akka, I am not aware of any.
- eranation 14y agoI like Groovy, but I think even the author said once that if he knew about scala, he might have not invented Groovy (if anyone knows the link to the quote, and if it's indeed true, please comment)
- ramblerman 14y agoIt was James Strachan who said that. He is credited with the initial idea and set the project in motion in 2004. He stopped commiting in 2005 and Groovy 1.0 was released in 2007. He made the scala statement in 2009. He's certainly entitled to his opinion. But I find the title "Author" or "Creator" a little harsh to people like Guillaume Laforge and others who have really brought the project from beta to 2.0 in the 7 years since he quit.
- vorg 14y agoJames Strachan set the Groovy project in motion in mid-2003, not 2004. He stopped posting to the mailing list in December 2005. James credits Bob McWhirter as being his co-creator. Jochen Theodorou led the technical effort on Groovy since then. Other major committers over the last 5 years include Paul King, Alex Tkachman, Cedric Champeau, and Jeremy Rayner. I don't know for sure about before that. Guillaume Laforge's main technical effort was writing some utility functions very early on. Although Guillaume has the title "Project Manager", he's really No.2 to the real management force behind Groovy, i.e. Graeme Rocher, who leads the Grails development. If Grails switched languages, Groovy would disappear almost overnight as it's not used much in anything else significant. OReilly's total worldwide book sales of Groovy (all titles) over 12 months is 1205 books (http://radar.oreilly.com/2012/04/computer-book-market-2011-part4.html http://radar.oreilly.com/2012/04/computer-book-market-2011-p...). > really brought the project from beta to 2.0 in the 7 years since A few weeks before Groovy 2.0's "final release" in June this year, Grales 2.1, Griffon 1.0 and Gradle 1.0 were all released, bundling Groovy 1.8. Listen to what Groovy's users are doing, not what its fanboys are saying. Groovy 2.0 is nothing more than beta-quality software offered to production users so they'll "unit test" it in their workplaces. No-one should be using Groovy 2.x until Grails bundles it.
- vorg 14y ago> Groovy does the same thing with less friction and switching overhead. Are you the same M.Kimsal who sells subscriptions to "groovymag" ?
- mgkimsal 14y agoYes I am. To the extent I have a vested interest in Groovy, it may or may not be relevant to my original post. My larger point was, as I said before, if the purpose is to offer a 'taste' of dynamic functionality, a la ruby/python, to Java developers, Groovy is a much simpler way to go about it. Should people then get a real hankering for it, you've got more options, either with more groovy, or jruby or jython or scala or what have you. Nothing more.