Alternatives to Lua

A lightweight, embeddable scripting language with a small standalone interpreter. The listings below can replace it for an important use case. Each note says what changes if you switch.

The original

Replacements

Listings that take over the same core job as Lua.

  • Python

    A general-purpose programming language used for scripting, web backends, data analysis and machine learning.

    Python has a far larger standard library and package ecosystem than Lua, but it is heavier and less suited to embedding inside other programs.

  • Ruby

    A dynamic, open-source programming language focused on simplicity and programmer productivity.

    Ruby is a readable dynamic scripting language suited to scripting and web development, with a larger runtime than Lua's small embeddable interpreter.

  • Perl

    A mature general-purpose scripting language known for text processing, with the large CPAN module archive.

    Perl offers very strong text processing and over 42,000 CPAN distributions, but its terse syntax can be harder to read than Lua's simple language.

Similar software

Related functionality, not a direct replacement.