Need advice about which tool to choose?Ask the StackShare community!
Groovy vs JRuby: What are the differences?
What is Groovy? A dynamic language for the Java platform. Groovy builds upon the strengths of Java but has additional power features inspired by languages like Python, Ruby and Smalltalk. It makes modern programming features available to Java developers with almost-zero learning curve.
What is JRuby? A high performance, stable, fully threaded Java implementation of the Ruby programming language. JRuby is the effort to recreate the Ruby (http://www.ruby-lang.org) interpreter in Java. The Java version is tightly integrated with Java to allow both to script any Java class and to embed the interpreter into any Java application. See the docs directory for more information.
Groovy and JRuby can be categorized as "Languages" tools.
"Java platform" is the top reason why over 38 developers like Groovy, while over 7 developers mention "Java" as the leading cause for choosing JRuby.
Groovy and JRuby are both open source tools. JRuby with 3.32K GitHub stars and 830 forks on GitHub appears to be more popular than Groovy with 1.49K GitHub stars and 414 GitHub forks.
According to the StackShare community, Groovy has a broader approval, being mentioned in 79 company stacks & 73 developers stacks; compared to JRuby, which is listed in 13 company stacks and 4 developer stacks.
Pros of Groovy
- Java platform43
- Much more productive than java32
- Concise and readable28
- Very little code needed for complex tasks27
- Dynamic language21
- Nice dynamic syntax for the jvm12
- Very fast9
- Easy to setup6
- Can work with JSON as an object6
- Literal Collections5
- Supports closures (lambdas)4
- Syntactic sugar2
- Developer Friendly2
- Interoperable with Java1
- Optional static typing1
Pros of JRuby
- Java8
- Faster than Ruby6
- JVM3
- Built-in Testing2
- Deploy as executable jay2
- Open source2
- Supports native Ruby gems out the box2
- Threads2
- Garbage collection built-in2
- Great community1
Sign up to add or upvote prosMake informed product decisions
Cons of Groovy
- Groovy Code can be slower than Java Code3
- Objects cause stateful/heap mess1