Need advice about which tool to choose?Ask the StackShare community!

Groovy

1.1K
601
+ 1
199
JRuby

81
78
+ 1
30
Add tool

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
Pros of JRuby
  • 43
    Java platform
  • 32
    Much more productive than java
  • 28
    Concise and readable
  • 27
    Very little code needed for complex tasks
  • 21
    Dynamic language
  • 12
    Nice dynamic syntax for the jvm
  • 9
    Very fast
  • 6
    Easy to setup
  • 6
    Can work with JSON as an object
  • 5
    Literal Collections
  • 4
    Supports closures (lambdas)
  • 2
    Syntactic sugar
  • 2
    Developer Friendly
  • 1
    Interoperable with Java
  • 1
    Optional static typing
  • 8
    Java
  • 6
    Faster than Ruby
  • 3
    JVM
  • 2
    Built-in Testing
  • 2
    Deploy as executable jay
  • 2
    Open source
  • 2
    Supports native Ruby gems out the box
  • 2
    Threads
  • 2
    Garbage collection built-in
  • 1
    Great community

Sign up to add or upvote prosMake informed product decisions

Cons of Groovy
Cons of JRuby
  • 3
    Groovy Code can be slower than Java Code
  • 1
    Objects cause stateful/heap mess
    Be the first to leave a con

    Sign up to add or upvote consMake informed product decisions

    What is Groovy?

    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?

    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.

    Need advice about which tool to choose?Ask the StackShare community!

    What companies use Groovy?
    What companies use JRuby?

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with Groovy?
    What tools integrate with JRuby?

    Sign up to get full access to all the tool integrationsMake informed product decisions

    Blog Posts

    GitJenkinsGroovy+4
    3
    1574
    What are some alternatives to Groovy and JRuby?
    Java
    Java is a programming language and computing platform first released by Sun Microsystems in 1995. There are lots of applications and websites that will not work unless you have Java installed, and more are created every day. Java is fast, secure, and reliable. From laptops to datacenters, game consoles to scientific supercomputers, cell phones to the Internet, Java is everywhere!
    Scala
    Scala is an acronym for ‚ÄúScalable Language‚ÄĚ. This means that Scala grows with you. You can play with it by typing one-line expressions and observing the results. But you can also rely on it for large mission critical systems, as many companies, including Twitter, LinkedIn, or Intel do. To some, Scala feels like a scripting language. Its syntax is concise and low ceremony; its types get out of the way because the compiler can infer them.
    Kotlin
    Kotlin is a statically typed programming language for the JVM, Android and the browser, 100% interoperable with Java
    Python
    Python is a general purpose programming language created by Guido Van Rossum. Python is most praised for its elegant syntax and readable code, if you are just beginning your programming career python suits you best.
    Gradle
    Gradle is a build tool with a focus on build automation and support for multi-language development. If you are building, testing, publishing, and deploying software on any platform, Gradle offers a flexible model that can support the entire development lifecycle from compiling and packaging code to publishing web sites.
    See all alternatives
    Interest over time
    News about JRuby
    More news