Lua is a simple, scalable, and efficient scripting language that is widely used in a variety of areas, such as embedded systems, mobile devices, Web servers, and effective.
Lua was initially designed to integrate with software written in C or other languages. LUA is not as comprehensive as C, but provides features that C is not good at, such as advanced abstraction of hardware, dynamic architecture, no redundancy, easy testing and debugging. In addition, LUA implements a secure operating environment, a set of automatic memory management mechanisms, excellent string processing capabilities, and the ability to handle dynamic size arrays.
The main feature of Lua is its scalability, which is reflected in many of the features in the language:
1. Dynamic types provide support for polymorphism
2. Automatic memory management simplifies the interface
3. Advanced functions and anonymous functions allow higher levels of parameterization
Most of the underlying functionality of LUA is implemented through external libraries, and LUA can be integrated into other languages such as C/S, Fortran, Java, C #, Smalltalk, and even into other scripting languages, such as Perl and Ruby.
In addition to being an extensible language, LUA is a "glue language" that supports a component-based development approach: creating new applications by gluing existing high-level components. The components that are glued can be compiled, or can be written in a static type language. In addition, LUA can adapt and transform components, unlike other glue languages.
How LUA is used
1. Embed in an application, such as Cgilua
2. Using the LUA interpreter
3. Use both Lua and C
Learn about LUA applications including: Tengine, Kepler Web projects