Lua logo

Lua

Powerful, fast, lightweight, embeddable scripting language
733
455
+ 1
98

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.
Lua is a tool in the Languages category of a tech stack.
Lua is an open source tool with 1.3K GitHub stars and 449 GitHub forks. Here’s a link to Lua's open source repository on GitHub

Who uses Lua?

Companies
280 companies reportedly use Lua in their tech stacks, including Shopify, Tokopedia, and Unacademy.

Developers
434 developers on StackShare have stated that they use Lua.

Lua Integrations

Google Code Prettify, Corona SDK, Devo, MoonScript, and Crown are some of the popular tools that integrate with Lua. Here's a list of all 5 tools that integrate with Lua.
Private Decisions at about Lua

Here are some stack decisions, common use cases and reviews by members of with Lua in their tech stack.

Shared insights
on
LuaLua

Used for hashing client IP in Nginx Lua

See more
papaver
papaver
captain of a starship at electronic dreams · | 1 upvotes · 11.6K views
Shared insights
on
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.) Lua

See more
Shared insights
on
JavaJavaPythonPythonLuaLua

I am trying to make Roblox game which requires Lua. I quite don't want to go with Lua just because other tools just might let me do more projects later on. I heard that Python is most similar to Lua, but I am still not sure which tool to use. Java, I think it will help me with many stuff later on for websites, projects, and more!

See more
Public Decisions about Lua

Here are some stack decisions, common use cases and reviews by companies and developers who chose Lua in their tech stack.

Chris McFadden
Chris McFadden
VP, Engineering at SparkPost · | 7 upvotes · 190.8K views
Shared insights
on
nginxnginxOpenRestyOpenRestyLuaLua
at

We use nginx and OpenResty as our API proxy running on EC2 for auth, caching, and some rate limiting for our dozens of microservices. Since OpenResty support embedded Lua we were able to write a custom access module that calls out to our authentication service with the resource, method, and access token. If that succeeds then critical account info is passed down to the underlying microservice. This proxy approach keeps all authentication and authorization in one place and provides a unified CX for our API users. Nginx is fast and cheap to run though we are always exploring alternatives that are also economical. What do you use?

See more
Shared insights
on
JavaJavaPythonPythonLuaLua

I am trying to make Roblox game which requires Lua. I quite don't want to go with Lua just because other tools just might let me do more projects later on. I heard that Python is most similar to Lua, but I am still not sure which tool to use. Java, I think it will help me with many stuff later on for websites, projects, and more!

See more

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
Shared insights
on
LuaLuaRustRust
at

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
papaver
papaver
captain of a starship at electronic dreams · | 1 upvotes · 11.6K views
Shared insights
on
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.) Lua

See more
Marc Balmer
Marc Balmer
at micro systems · | 1 upvotes · 11.6K views
Shared insights
on
LuaLua
at

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

See more

Lua Alternatives & Comparisons

What are some alternatives to Lua?
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.
JavaScript
JavaScript is most known as the scripting language for Web pages, but used in many non-browser environments as well such as node.js or Apache CouchDB. It is a prototype-based, multi-paradigm scripting language that is dynamic,and supports object-oriented, imperative, and functional programming styles.
Arduino
Arduino is an open-source electronics prototyping platform based on flexible, easy-to-use hardware and software.
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!
Go
Go is expressive, concise, clean, and efficient. Its concurrency mechanisms make it easy to write programs that get the most out of multicore and networked machines, while its novel type system enables flexible and modular program construction. Go compiles quickly to machine code yet has the convenience of garbage collection and the power of run-time reflection. It's a fast, statically typed, compiled language that feels like a dynamically typed, interpreted language.
See all alternatives

Lua's Followers
455 developers follow Lua to keep up with related blogs and decisions.
Computación Creativa CIE
david prendergast
Harish Nair
zanderbaker1004609
senor-tomate
Prakhar Srivastava
Ai Tee Lee
jun hong kim
ivailobsu5214
Joby Jull