> Not designed for OO programming
Yes it is ! I thought that too at first when I didn't really know lua.
The OO in Lua is not based on Class but on Prototype with the table. You
should get
a copy of "Programming in Lua" from Roberto Ierusalimschy it is really
worth it.
> Does anyone would be interested in using Python (or another one :
Ruby, ???) instead ?
For Ruby that I really like (I contribute to ruby-gnome and ruby-opengl
bindings) I think that
lua is by far a best choice if you want to embed an interpreter in your
application and want it to be ligthweigth.
Some of the ruby dev work on mruby a lightweight alternative to ruby
http://www.mruby.org/
Regards
https://github.com/cedlemo
On 31/07/2015 22:56, Alexis BRENON wrote:
Hi everyone,
Perhaps the question was already asked million times, and probably
it's a very good subject for trolls, but I'm asking myself a question.
Why Lua has been chosen to be the language for AwesomeWM configuration ?
I'm currently building a kind of framework for Awesome confg
(https://github.com/AlexisBRENON/awesome-configuration) and to do so,
I learned many aspects of Lua. I even use it for Hackaton, to see if I
know it well. But the more I learn, the more I see it's defaults...
Just to cite a few that piss me off :
* No distinction between list/table and hash/dict
* Too few standard functions for table manipulation (the length
operator on a table used as a dictionnary, always returns 0... No
table concatenation)
* No multithreading/multi-CPU support (only coroutines)
* Not designed for OO programming
As far as I know, Python could have been a good choice.
TL;DR :
Why AwesomeWM uses Lua as configuration language ?
Does anyone would be interested in using Python (or another one :
Ruby, ???) instead ?
Does an attempt to build an Awesome API in another language has been
already started ?
I would be happy to hear/read the position of the first creator of
Awesome.
Kind regards,
Alexis