Get Advice Icon

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

Groovy
Groovy

769
388
+ 1
176
Lua
Lua

559
287
+ 1
64
Add tool

Groovy vs Lua: What are the differences?

Developers describe Groovy as "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. On the other hand, Lua is detailed as "Powerful, fast, lightweight, embeddable scripting language". Lua combines simple procedural syntax with powerful data description constructs based on associative arrays and extensible semantics. Lua is dynamically typed, runs by interpreting bytecode for a register-based virtual machine, and has automatic memory management with incremental garbage collection, making it ideal for configuration, scripting, and rapid prototyping.

Groovy and Lua can be primarily classified as "Languages" tools.

"Java platform" is the primary reason why developers consider Groovy over the competitors, whereas "Fast learning curve" was stated as the key factor in picking Lua.

Groovy and Lua are both open source tools. It seems that Groovy with 1.49K GitHub stars and 414 forks on GitHub has more adoption than Lua with 1.26K GitHub stars and 437 GitHub forks.

According to the StackShare community, Groovy has a broader approval, being mentioned in 78 company stacks & 73 developers stacks; compared to Lua, which is listed in 55 company stacks and 22 developer stacks.

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 Lua?

Lua combines simple procedural syntax with powerful data description constructs based on associative arrays and extensible semantics. Lua is dynamically typed, runs by interpreting bytecode for a register-based virtual machine, and has automatic memory management with incremental garbage collection, making it ideal for configuration, scripting, and rapid prototyping.
Get Advice Icon

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

Why do developers choose Groovy?
Why do developers choose Lua?

Sign up to add, upvote and see more prosMake informed product decisions

    Be the first to leave a con
    What companies use Groovy?
    What companies use Lua?

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

    What tools integrate with Groovy?
    What tools integrate with Lua?

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

    What are some alternatives to Groovy and Lua?
    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
    Decisions about Groovy and Lua
    StackShare Editors
    StackShare Editors
    Lua
    Lua
    Rust
    Rust

    To handle its growing observability needs, Postmates created and open sourced Cernan, a telemetry and logging aggregation server. Ceran is built on Rust and Lua, and can ingest data from many sources and then push or exposes what it’s collected to many destinations, or “sinks.” It can also create or manipulate in-flight data with programmable Lua filters.

    See more
    Prometheus
    Prometheus
    Logstash
    Logstash
    nginx
    nginx
    OpenResty
    OpenResty
    Lua
    Lua
    Go
    Go

    At Kong while building an internal tool, we struggled to route metrics to Prometheus and logs to Logstash without incurring too much latency in our metrics collection.

    We replaced nginx with OpenResty on the edge of our tool which allowed us to use the lua-nginx-module to run Lua code that captures metrics and records telemetry data during every request’s log phase. Our code then pushes the metrics to a local aggregator process (written in Go) which in turn exposes them in Prometheus Exposition Format for consumption by Prometheus. This solution reduced the number of components we needed to maintain and is fast thanks to NGINX and LuaJIT.

    See more
    Alex A
    Alex A
    Founder at PRIZ Guru · | 3 upvotes · 100.8K views
    atPRIZ GuruPRIZ Guru
    Grails
    Grails
    Play
    Play
    Scala
    Scala
    Groovy
    Groovy
    Gradle
    Gradle

    Some may wonder why did we choose Grails ? Really good question :) We spent quite some time to evaluate what framework to go with and the battle was between Play Scala and Grails ( Groovy ). We have enough experience with both and, to be honest, I absolutely in love with Scala; however, the tipping point for us was the potential speed of development. Grails allows much faster development pace than Play , and as of right now this is the most important parameter. We might convert later though. Also, worth mentioning, by default Grails comes with Gradle as a build tool, so why change?

    See more
    Interest over time
    Reviews of Groovy and Lua
    No reviews found
    How developers use Groovy and Lua
    Avatar of papaver
    papaver uses LuaLua

    used lua as gameplay glue while at insomniac. one my favorite wins was integrating table support. it took walking the source code in a debugger to figure it out, still remember being at work at 3am when i got it working finally. (no google back then to make such things simple.)

    Avatar of Sine Wave Entertainment
    Sine Wave Entertainment uses LuaLua

    We use Lua as our primary scripting language for third party developers - it's fast, the runtime can be quite small and fits into everywhere it needs to go - from mobile to web.

    Avatar of micro systems
    micro systems uses LuaLua

    Lua is used as the programming language for all extensions and the main business logic.

    Avatar of Valdomiro Bilharvas
    Valdomiro Bilharvas uses GroovyGroovy

    Used as language to describe and interpret as tools with jenkinsfile

    Avatar of Sodep
    Sodep uses GroovyGroovy

    NPL solutions and statistical machine learning.

    Avatar of Tongliang Liu
    Tongliang Liu uses GroovyGroovy

    As long as you don't abuse def and Closure

    Avatar of Dick Cocker
    Dick Cocker uses LuaLua

    Used for hashing client IP in Nginx

    How much does Groovy cost?
    How much does Lua cost?
    Pricing unavailable
    Pricing unavailable