Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Groovy Fundamentals

 
Ranch Hand
Posts: 462
Scala jQuery Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Another question...does Groovy handle multi-threading/concurrency in a nicer way than core Java?
 
best scout
Posts: 1294
Scala IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Unfortunately I don't have practical experience with it but the famous GPars library offers a lot of interesting stuff to handle concurrency problems.

In general I'd say it's as easy in Groovy as it is in Java to mess up concurrency problems. In my experience one of the biggest problems in concurrent applications is mutable shared state and there is not much which prevents the use of mutable shared state, neither in Java nor in Groovy. I think functional languages like Scala or Clojure are better suited for real concurrency problems which doesn't mean that it is not possible to write pefect concurrent applications in Groovy.

Marco

 
gunslinger & author
Posts: 169
16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I agree that in its core library, Groovy handles concurrency pretty much the same way Java does. The GPars library is extraordinary, however. It has actors, and dataflows, and concurrent collections, and STM, and more. It really deserves more publicity than it's getting.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic