Get Advice Icon

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

Erlang
Erlang

413
343
+ 1
250
Lua
Lua

523
262
+ 1
63
Add tool

Erlang vs Lua: What are the differences?

Erlang: A programming language used to build massively scalable soft real-time systems with requirements on high availability. Some of Erlang's uses are in telecoms, banking, e-commerce, computer telephony and instant messaging. Erlang's runtime system has built-in support for concurrency, distribution and fault tolerance. OTP is set of Erlang libraries and design principles providing middle-ware to develop these systems; Lua: 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.

Erlang and Lua belong to "Languages" category of the tech stack.

"Real time, distributed applications" is the primary reason why developers consider Erlang over the competitors, whereas "Fast learning curve" was stated as the key factor in picking Lua.

Erlang and Lua are both open source tools. It seems that Erlang with 7.7K GitHub stars and 2.09K forks on GitHub has more adoption than Lua with 1.26K GitHub stars and 437 GitHub forks.

AdRoll, Grooveshark, and Heroku are some of the popular companies that use Erlang, whereas Lua is used by Shopify, Close, and Thumbtack. Erlang has a broader approval, being mentioned in 70 company stacks & 45 developers stacks; compared to Lua, which is listed in 55 company stacks and 22 developer stacks.

What is Erlang?

Some of Erlang's uses are in telecoms, banking, e-commerce, computer telephony and instant messaging. Erlang's runtime system has built-in support for concurrency, distribution and fault tolerance. OTP is set of Erlang libraries and design principles providing middle-ware to develop these systems.

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 Erlang?
Why do developers choose Lua?

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

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

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

      What tools integrate with Erlang?
      What tools integrate with Lua?

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

      What are some alternatives to Erlang and Lua?
      Elixir
      Elixir leverages the Erlang VM, known for running low-latency, distributed and fault-tolerant systems, while also being successfully used in web development and the embedded software domain.
      Haskell
      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.
      Clojure
      Clojure is designed to be a general-purpose language, combining the approachability and interactive development of a scripting language with an efficient and robust infrastructure for multithreaded programming. Clojure is a compiled language - it compiles directly to JVM bytecode, yet remains completely dynamic. Clojure is a dialect of Lisp, and shares with Lisp the code-as-data philosophy and a powerful macro system.
      OCaml
      It is an industrial strength programming language supporting functional, imperative and object-oriented styles. It is the technology of choice in companies where a single mistake can cost millions and speed matters,
      See all alternatives
      Decisions about Erlang and Lua
      StackShare Editors
      StackShare Editors
      Rust
      Rust
      Lua
      Lua

      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
      StackShare Editors
      StackShare Editors
      Erlang
      Erlang
      Elixir
      Elixir
      Consul
      Consul

      Postmates built a tool called Bazaar that helps onboard new partners and handles several routine tasks, like nightly emails to merchants alerting them about items that are out of stock.

      Since they ran Bazaar across multiple instances, the team needed to avoid sending multiple emails to their partners by obtaining lock across multiple hosts. To solve their challenge, they created and open sourced ConsulMutEx, and an Elixir module for acquiring and releasing locks with Consul and other backends.

      It works with Consul’s KV store, as well as other backends, including ets, Erlang’s in-memory database.

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

      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
      Sebastian Gębski
      Sebastian Gębski
      CTO at Shedul/Fresha · | 7 upvotes · 39.3K views
      atFresha EngineeringFresha Engineering
      AppSignal
      AppSignal
      Hex
      Hex
      Credo
      Credo
      Erlang
      Erlang
      Phoenix Framework
      Phoenix Framework
      Elixir
      Elixir

      Another major decision was to adopt Elixir and Phoenix Framework - the DX (Developer eXperience) is pretty similar to what we know from RoR, but this tech is running on the top of rock-solid Erlang platform which is powering planet-scale telecom solutions for 20+ years. So we're getting pretty much the best from both worlds: minimum friction & smart conventions that eliminate the excessive boilerplate AND highly concurrent EVM (Erlang's Virtual Machine) that makes all the scalability problems vanish. The transition was very smooth - none of Ruby developers we had decided to leave because of Elixir. What is more, we kept recruiting Ruby developers w/o any requirement regarding Elixir proficiency & we still were able to educate them internally in almost no time. Obviously Elixir comes with some more tools in the stack: Credo , Hex , AppSignal (required to properly monitor BEAM apps).

      See more
      Interest over time
      Reviews of Erlang and Lua
      No reviews found
      How developers use Erlang 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 Analytical Informatics
      Analytical Informatics uses ErlangErlang

      The central business logic and ETL engine is written in Erlang.

      Avatar of Mathias Vonende
      Mathias Vonende uses ErlangErlang

      Very nice programming language, used for backend integration.

      Avatar of Dick Cocker
      Dick Cocker uses LuaLua

      Used for hashing client IP in Nginx

      Avatar of Ryan Jennings
      Ryan Jennings uses ErlangErlang

      foundation VM for phoenix framework

      Avatar of Software Joint
      Software Joint uses ErlangErlang

      Cowboy web server serves content

      Avatar of KongHack Inc.
      KongHack Inc. uses ErlangErlang

      Custom plugins for ejabberd

      How much does Erlang cost?
      How much does Lua cost?
      Pricing unavailable
      Pricing unavailable
      News about Erlang
      More news