Get Advice Icon

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

Lua
Lua

559
287
+ 1
64
Perl
Perl

1.3K
480
+ 1
468
Add tool

Lua vs Perl: What are the differences?

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; Perl: Highly capable, feature-rich programming language with over 26 years of development. Perl is a general-purpose programming language originally developed for text manipulation and now used for a wide range of tasks including system administration, web development, network programming, GUI development, and more.

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

"Fast learning curve" is the top reason why over 19 developers like Lua, while over 62 developers mention "Lots of libraries" as the leading cause for choosing Perl.

Lua and Perl are both open source tools. Lua with 1.26K GitHub stars and 437 forks on GitHub appears to be more popular than Perl with 428 GitHub stars and 150 GitHub forks.

MIT, SendGrid, and WebbyLab are some of the popular companies that use Perl, whereas Lua is used by Shopify, Close, and Thumbtack. Perl has a broader approval, being mentioned in 132 company stacks & 61 developers stacks; compared to Lua, which is listed in 55 company stacks and 22 developer stacks.

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.

What is Perl?

Perl is a general-purpose programming language originally developed for text manipulation and now used for a wide range of tasks including system administration, web development, network programming, GUI development, and more.
Get Advice Icon

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

Why do developers choose Lua?
Why do developers choose Perl?

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

    Be the first to leave a con

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

    What companies use Lua?
    What companies use Perl?

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

    What tools integrate with Lua?
    What tools integrate with Perl?

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

    What are some alternatives to Lua and Perl?
    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
    Decisions about Lua and Perl
    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
    Seth Ammons
    Seth Ammons
    Principal Software Developer at SendGrid · | 10 upvotes · 19.8K views
    atTwilio SendGridTwilio SendGrid
    Go
    Go
    Docker
    Docker
    Perl
    Perl
    #CodeCollaborationVersionControl
    #ContinuousIntegration

    In addition to our fancy Docker setup, we have captured and sanitized production logs for the behavior of our legacy Perl MTA, and we can test that the log output from the new Go version behaves the same way as the old version. These tests are set up to allow us to switch between the legacy and new version of the MTA and ensure that both systems behave in a legacy-compatible way. Not only can we ensure that we operate against a variety of issues we've seen over time from inboxes, but we know that the newest version of our MTA continues to cover all the same expected behaviors of the legacy version. #CodeCollaborationVersionControl #ContinuousIntegration

    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
    Interest over time
    Reviews of Lua and Perl
    No reviews found
    How developers use Lua and Perl
    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 Perljobs.Ru
    Perljobs.Ru uses PerlPerl

    The whole backend part (deployment and other scripts, business logic, web interface) is written in Perl.

    Весь бэкенд (скрипты деплоя и прочие, бизнес-логика, веб-интерфейс) написан на Perl.

    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 John Galbraith
    John Galbraith uses PerlPerl

    I use Perl to rip through log files and compare them to some signature files I have created. When I get a match, it adds the bad guy to the list of shame in MySQL.

    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 Alexander Karelas
    Alexander Karelas uses PerlPerl

    A very expressive language, lets you say the same thing in many different ways

    Avatar of rapt.fm
    rapt.fm uses PerlPerl

    We use perl with rex to control our distributed systems.

    Avatar of ssshake
    ssshake uses PerlPerl

    I use perl on some legacy applications.

    Avatar of Dick Cocker
    Dick Cocker uses LuaLua

    Used for hashing client IP in Nginx

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