Found in 1 comment on Hacker News
brimworks · 2016-01-27 · Original thread
Here are some things that I think are "beautiful" about Lua:

[a] Here is the complete syntax of Lua:

http://www.lua.org/manual/5.2/manual.html#9

...compare that to Perl where there is no "complete syntax" of Perl. This shows how simple it is and thus it is easier to write tools for and teach others how to use it.

[b] The complete default API consists of ~200 functions:

http://www.lua.org/manual/5.2/contents.html#index

[c] The defacto book on learning the complete language (including the C interface) is 366 pages:

http://www.amazon.com/dp/859037985X

Simplicity is beauty IMHO. I would expect any competent developer to get up to speed on the Lua language within a week, it would then take them another couple of weeks to get up to speed on the libraries we use with Lua.

The real power in Lua comes when you couple it with competent APIs that do the "real" work. The Distelli Agent uses libuv for the OS interface, libcrypto (part of openssl) for the crypto primitives, zlib for compression, LPeg for parsing, sqlite for an embedded DB, etc.

The job of the Lua code is simply to "tie" these core components together.

Fresh book recommendations delivered straight to your inbox every Thursday.