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

Lua

1.4K
830
+ 1
156
Perl

2K
846
+ 1
555
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.

Advice on Lua and Perl
Needs advice
on
JavaJavaLuaLua
and
PythonPython

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
Replies (2)
Rafey Iqbal Rahman
Recommends
LuaLua
at

Since you are trying to make a Roblox game, you have no other option than to use Lua, since Roblox only allows coding in Lua. Yes, you've heard right, Python is identical and as easy as Lua, although Lua is easier than Python. Beginning from Lua and then escalating to Python is recommended. Java is only helpful when you are creating a heavy, big-budget, enterprise-level product, otherwise, Python would suffice.

See more
Recommends
TypeScriptTypeScript

If you really hate lua check out roblox-ts, a tool that compiles typescript code into roblox lua. https://github.com/roblox-ts/roblox-ts

See more
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Lua
Pros of Perl
  • 38
    Fast learning curve
  • 24
    Efficient memory usage
  • 24
    Very easy to embed in C programs
  • 18
    Open source
  • 14
    Good for game scripting
  • 7
    Simple Language
  • 7
    Supported in most game engines
  • 6
    Syntax is amazing
  • 6
    Pretty simple to learn
  • 6
    Quick to code
  • 4
    D
  • 1
    Can be used for a wide variety of development
  • 1
    Coroutines
  • 70
    Lots of libraries
  • 64
    Open source
  • 61
    Text processing
  • 53
    Powerful
  • 47
    Unix-style
  • 47
    Regex
  • 37
    Stable
  • 31
    Concise syntax
  • 27
    Hackerish
  • 21
    Easy to use
  • 13
    Swiss army chainsaw
  • 12
    CPAN
  • 12
    Code Less Do More
  • 9
    Freedom
  • 7
    All purpose
  • 5
    Community
  • 5
    Familiar
  • 5
    Readability
  • 4
    Many ways to do it
  • 4
    Object-Oriented
  • 4
    Modular
  • 3
    It's the best one-off task language
  • 3
    Smart (does alot for you)
  • 3
    Postmodern
  • 2
    For a man
  • 2
    Good man pages
  • 1
    Multi-threaded support
  • 1
    Single Source Library (CPAN)
  • 1
    Auto case variables
  • 1
    Hashes

Sign up to add or upvote prosMake informed product decisions

Cons of Lua
Cons of Perl
  • 3
    Nooby
  • 2
    Not widespread
  • 3
    Messy $/@/% syntax
  • 3
    No exception handling
  • 2
    No OS threads
  • 2
    Bad OO support
  • 2
    "1;"
  • 1
    Copy-on-create for interpreter-based threads
  • 1
    Barewords
  • 1
    Errors/warnings are ignored by default
  • 1
    Variables are global by default

Sign up to add or upvote consMake informed product decisions

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.

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

Jobs that mention Lua and Perl as a desired skillset
CBRE
Poland Mazowieckie Warsaw
CBRE
United States of America Texas Dallas
CBRE
United States of America Texas Richardson
CBRE
United States of America Texas Richardson
CBRE
United States of America Texas Dallas
What companies use Lua?
What companies use Perl?
See which teams inside your own company are using Lua or Perl.
Sign up for StackShare EnterpriseLearn More

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

Blog Posts

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.
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!
Golang
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