Lua logo

Lua

Powerful, fast, lightweight, embeddable scripting language
529
264
+ 1
63

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 444 GitHub forks. Here’s a link to Lua's open source repository on GitHub

Who uses Lua?

Companies
259 companies reportedly use Lua in their tech stacks, including Shopify, Close, and Thumbtack.

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

Why developers like Lua?

Here’s a list of reasons why companies and developers use Lua
Lua Reviews

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 · 76.2K views
atSparkPostSparkPost
nginx
nginx
OpenResty
OpenResty
Lua
Lua

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
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
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
papaver
papaver
captain of a starship at electronic dreams · | 1 upvotes · 3.3K views
Lua
Lua

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 · 3.2K views
atmicro systemsmicro systems
Lua
Lua

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

See more
AdamFrisby
AdamFrisby
| 1 upvotes · 3.2K views
atSine Wave EntertainmentSine Wave Entertainment
Lua
Lua

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

See more

Jobs that mention Lua as a desired skillset

See all jobs

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.
PHP
Fast, flexible and pragmatic, PHP powers everything from your blog to the most popular websites in the world.
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!
See all alternatives

Lua's Followers
264 developers follow Lua to keep up with related blogs and decisions.
Samuel Silva
Nurullah Özdemir
Masken8
Fabio Fraga Machado
Kindou Kindou
Natdanai Lukhanumarnchao
Mehulkumar Bhatt
Seksun Duangsong
Milad Nekofar
Igor Melker