Introduction to the Lua scripting language _lua

Source: Internet
Author: User
Tags lua

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.