Skip to content

Lua Programming - Notes

Table of Contents (ToC)

Overview

Lua is a lightweight, high-level scripting language designed for embedded systems and extensibility, with a simple syntax and fast execution.

Applications

  • Scripting in Game Development: Lua is commonly used for scripting in game engines like Unity and Roblox.
  • Embedded Systems: Lua's lightweight nature makes it suitable for programming embedded systems and IoT devices.
  • Configuration Files: Widely used for configuration files due to its simplicity and ease of integration.
  • Web Development: Lua can be embedded in web servers for dynamic content generation.
  • Extensibility in Software: Integrated as a scripting language in various software applications for customization.

Tools & Frameworks

  • LuaJIT: A Just-In-Time Compiler for Lua, providing enhanced performance.
  • Love2D: A framework for 2D game development using Lua.
  • Redis: A popular in-memory data structure store that uses Lua for scripting.
  • OpenResty: A web platform that integrates Lua into NGINX, enhancing web server capabilities.
  • Corona SDK: A cross-platform framework for mobile app development using Lua.

Hello World!

-- Lua Hello World program
print("Hello, World!")

References