LUA

Lua is extensible light weight programming language written in C. Lua started as an in-house project in 1993 by Roberto, Luiz Henrique, and Waldemar.

It was designed from the beginning to be a software that can integrated with code written in C and other conventional languages. Such integration brings many benefits. Lua does not try to do what C can already do but aims at offering what C is not good for: a good distance from dynamic structures, no redundancies, the hardware, ease of testing and debugging. It has a safe environment, and good facilities for handling strings automatic memory management, and other kinds of data with dynamic size.

How Lua is implemented

Lua consists of to parts the Lua interpreter part and the functioning software system. Functioning software system which is an actual computer application that can interpret programs written in the Lua programming language. Lua interpreter is written in ANSI C, so it is highly portable and can run on a vast spectrum of devices from highend network servers to small devices.

Lua's language and its interpreter are fast, mature, and small.It has evolved from the other programming languages and top software standards. Its small size makes it possible for it to run on small devices with low memory.

The Lua Interpreter

It is just a small program that enables you to type Lua commands and have them executed immediately. Lua interpreter stops execution of a lua file in case it encounters a error unlike a compiler that executes fully.

The Lua Compiler

When we extend Lua to other languages/ applications, we need a Software Development Kit and with a compiler that is compatible with Lua Application Program Interface.

Features of LUA

Lua provides a set of unique features that makes it distinct from other languages. These include:

  • Extensible

  • Simple

  • Efficient

  • Portable

  • Free and open

Uses of Lua

  • Game Programming

  • Scripting in Standalone Applications

  • Scripting in Web

  • Addon and Extensions for databases like MySQL Proxy and MySQL WorkBench

  • Security systems such as Intrusion Detection System


Share this post

We are always here to help. If you have a query Send Now