lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

2017-02-22 3:54 GMT+02:00 oliver <>:

> To script a C/c++ app, use Lua; for everything else including colonizing
> Mars, creating the next cybernetic form of life, and solving the World's
> energy crisis, use Python. I'll admit to a *bit* of bias.

I was a Python programmer for about six years (2006-2011) and heard
about Lua just when 5.2 reached beta. I might never have done so, but
Lua had become important in the TeX world and I was curious. That
was a good time to come to Lua, since the whole _ENV issue was
only history, and 5.3 is mostly a sleek 5.2 with mag wheels, leather
seats and tiptronic gearshift.

Lua seemed to come up with the answers on everything that irritated
me about Python. To mention just one: I could find some code on the
list or on, copy-amd-paste it with the mouse,
amd it worked. With Python the same thing almost never worked
because whitespace has invisible but significant properties.

I never looked back.

Python's perceived good points come from its admittedly impressive
set of application libraries (that page that you are supposed to go to
bed with) and the fact that Perl is just too off-putting to programmers
like met that had become used to languages that look understandable.
I still think that Perl is obviously best if one's application is interacting
with the operating system all the time, but I can't really read, let alone
write it.

So for me, Python is the spoilt brat's Perl.

The clincher (as Oliver notes) is just how easy and seamless it is to
combine Lua and C. With LuaJIT's FFI you don't even need the API
for that.