LinuxLinks.com
Newbies What Next ? News Forums Calendar

Search





News Sections
Home
General News (3987/0)
Reviews (637/0)
Press Releases (465/0)
Distributions (197/0)
Software (935/0)
Hardware (538/0)
Security (192/0)
Tutorials (359/0)
Off Topic (181/0)


User Functions
Username:

Password:

Don't have an account yet? Sign up as a New User


Events
There are no upcoming events




3 Excellent Free Lua Books

Lua is a lightweight, compact, and fast programming language designed as an embeddable scripting language. This cross-platform language has a simple syntax with powerful data description constructs. Lua aims for simplicity, small size, performance and portability. It has automatic memory management and incremental garbage collection, making it ideal for configuration, scripting, and rapid prototyping.

In the popularity takes, Lua lags behind say Python, Perl, or Ruby for scripting purposes. And Lua is not designed to develop standalone software. But where Lua excels is as a secondary language. Witness Lua cropping up in kernels, tools, and games. For the latter, LÖVE is worthy of a mention. It is a sweet framework you can use to make 2D games in Lua.

Lua is free software distributed under the terms of the MIT license. Lua's developers consist of a team at PUC-Rio, the Pontifical Catholic University of Rio de Janeiro in Brazil. The language has been in development for more than 20 years.

The focus of this article is to select the best free books which help developers master Lua.

1. Lua for Beginners

Lua for Beginners
Website www.dropbox.com
Author ignatz
Format PDF
Pages 83

Lua for Beginners is an unofficial guide designed to offer a good introduction to the world of Lua. It covers the basics of Lua, taking the reader a step at a time through the language. It comes with exercises to test learning.

The guide is incomplete in parts.

Chapters cover:

  • Introduction
  • A first look at Lua - printing results
  • Variables - variable names, changing a variable, types of variable, and deleting variables
  • Conditions - shows how decisions are made in Lua. Covers the basic If test, how to set conditions, and combining multiple if tests
  • Loops
  • Lists - an introduction covering making date lists
  • More lists, tables and loops - two dimensional tables, tables of named items
  • Functions - built in functions, building your own functions, optional variables and defaults, variable number of parameters, and named parameters
  • Scope - includes "local" functions 
  • Playful practice projects - the fairground coin trick, Wimbledon, and downloading movies
  • Classes - explains classes with 3 examples
  • Pointers
  • Classes and Callbacks
  • Class inheritance
  • Coroutines
  • Closures (and zombic variables)
  • Debugging and error handling
  • Metatables

2. Programming in Lua

Programming in Lua
Website www.lua.org/pil/
Author Roberto Ierusalimschy
Format PDF
Pages 261

Programming in Lua is the official book about the language, giving a solid base for any programmer who wants to use Lua. 

Chapters of the book:

  • The Language: Types and values, expressions, statements, functions, more about functions, iterators and the generic for, compilation, execution and errors, coroutines, and complete examples
  • Tables and Objects: Data structures, Data files and persistence, metatables and metamethods, the environment, packages, object-oriented programming, and weak tables
  • The Standard Libraries: The mathematical library, the table library, the string library, the I/O library, the operating system library, and the debug library
  • The C API: An overview of the C API, extending your application, calling C from Lua, techniques for writing C functions, user-defined types in C, and managing resources

3. Lua 5.3 Reference Manual

Lua Reference Manual
Website www.lua.org/manual/5.3
Author Roberto Ierusalimschy, Luiz Henrique de Figueiredo, Waldemar Celes 
Format HTML
Pages -

This reference book describes version 5.3 of the Lua programming language and the Application Program Interface that allows interaction between Lua programs and their .host C-programs. The book provides a thorough treatment of the latest version of Lua.

The book explores:

  • Introduction
  • Basic concepts - describes the basic concepts of the language: Values and types, environments and the global environment, error handling, metatables and metamethods, garbage collection, and coroutines
  • The Language - describes the lexis, the syntax, and the semantics of Lua: Lexical conventions, variables, statements, expressions, and visibility Rules
  • The Application Program Interface - describes the C API for Lua: The stack, stack size, valid and acceptable indices, C closures, registry, error handling in C, handling yields in C, functions and types, and the debug interface
  • The Auxiliary Library - provides several convenient functions to interface C with Lua
  • Standard Libraries - provide useful functions that are implemented directly through the C API: Basic functions, coroutine manipulation, modules, string manipulation, UTF-8 support, table manipulation, mathematical functions, input and output facilities, operating system facilities, and the debug library
  • Lua Standalone

The book is released freely under the Lua license.

Bookmark and Share


Last Updated Sunday, August 09 2015 @ 07:19 AM EDT


We have written a range of guides highlighting excellent free books for popular programming languages. Check out the following guides: C, C++, C#, Java, JavaScript, CoffeeScript, HTML, Python, Ruby, Perl, Haskell, PHP, Lisp, R, Prolog, Scala, Scheme, Forth, SQL, Node.js, Fortran, Erlang, Pascal, Ada, OCaml (new), Lua (new), Clojure (new), and Audio Programming (new).


Matching Content


Group Tests
100 Essential Apps
All Group Tests


Top Free Software
5 Office Suites
3 Lean Desktops
7 Document Processors
4 Distraction Free Tools
9 Project Management
4 Business Solutions
9 Groupware Apps
14 File Managers
10 Databases
21 Backup Tools
21 Productivity Tools
5 Note Taking Apps
9 Terminal Emulators
21 Financial Tools
5 Bitcoin Clients
21 Text Editors
21 Video Emulators
21 Home Emulators
42 Graphics Apps
6 CAD Apps
42 Scientific Apps
10 Web Browsers
42 Email Apps
12 Instant Messaging
10 IRC Clients
7 Twitter Clients
12 News Aggregators
11 VoIP Apps
42 Best Games
9 Steam Games
42 Audio Apps
5 Music Streaming
42 Video Apps
5 YouTube Tools
80 Security Apps
9 System Monitoring
8 Geometry Apps
Free Console Apps
14 Multimedia
4 Audio Grabbers
9 Internet Apps
3 HTTP Clients
5 File Managers
Programming
8 Compilers
9 IDEs
9 Debuggers
7 Revision Control Apps
6 Doc Generators
Free Web Software
21 Web CMS
14 Wiki Engines
8 Blog Apps
6 eCommerce Apps
5 Human Resource Apps
10 ERP
10 CRM
6 Data Warehouse Apps
8 Business Intelligence
6 Point-of-Sale

Other Articles
Migrating from Windows
Back up your data
20 Free Linux Books
24 Beginner Books
12 Shell Scripting Books


Older Stories
Sunday 11/08
  • Open Source Alternatives to LastPass (0)
  • Optimize Web Delivery with these Open Source Tools (0)
  • Good Graphical User Interfaces for R (0)

  • Monday 10/12
  • DFileManager: Cover Flow File Manager (0)

  • Saturday 10/03
  • Curious about Linux? Try Linux Desktop on the Cloud (0)
  • The 6 Best Natural Language Processing Tools in the World Today (0)

  • Monday 09/21
  • MIPS Creator CI20 - Debian 8 beta image (0)

  • Saturday 09/12
  • Great Ways for Kids to Learn the Art of Coding (0)
  • Best Web Project Management Software (0)

  • Sunday 08/30
  • 5 best open source board games to play online (0)


  • Vote

    What Linux distribution do you run on your main computer?

    Debian
    Fedora
    Mint
    Slackware
    openSuSE
    Arch
    Ubuntu
    Redhat
    Mageia
    CentOS
    FreeBSD
    Results
    1783 votes | 3 comments

    Built with GeekLog and phpBB
    Comments to the webmaster are welcome
    Copyright 2009 LinuxLinks.com - All rights reserved