Jump to content



Photo

Cplua & "standard" Lua Compatibility


  • Please log in to reply
1 reply to this topic

#1 rafapa

rafapa

    Newbie

  • Members
  • Pip
  • 14 posts
  • Location:Spain

Posted 30 September 2005 - 11:26 AM

I have been following the thread about CPLua and I have a few questions about the project.

1.- I am not sure if it has been stated which Lua version is the base for the CPLua project. Could you clarify?
2.- What's the portability of a program developed using CPLua to another platform. I am a bit confused about all the "extensions" mentioned in the CPLua thread. Obviously the CAS will not be supported in other platforms . I am mainly refering to the mentioned plotting library, the matrix stuff...
3.- CPLua use a "standard" version of the Lua interpreter and add some stuff on top of it? I mean, if the version of the "standard" Lua interpreter change it could be "easy" (that is almos inmediate) to switch to it in CPLua?

Sorry if the questions have been answered before but with seven pages it's getting a bit difficult to manage.

Please keep the good work (Orwell, PAP, ...).

#2 Orwell

Orwell

    Casio Overlord

  • Members
  • PipPipPipPipPipPipPip
  • 777 posts
  • Gender:Male
  • Location:Paris - France

  • Calculators:
    Casio AFX 1.02 / Casio ClassPad 300

Posted 30 September 2005 - 11:37 AM

1.- I am not sure if it has been stated which Lua version is the base for the CPLua project. Could you clarify?

The last available version, Lua 5.0.2 . This can be verified with the global variable "_VERSION" in CPLua :)

2.- What's the portability of a program developed using CPLua to another platform. I am a bit confused about all the "extensions" mentioned in the CPLua thread. Obviously the CAS will not be supported in other platforms . I am mainly refering to the mentioned plotting library, the matrix stuff...

Well, the portability is possible as long as the program do not use ClassPad specific functions, packages or libraries. Those functions are detailed in the file "functions.txt". There are also some basis functions and packages (provided with Lua distribution) that are not (yet) activated in CPLua, because they need a major adaptation. Tell me if you want more specific details... :unsure:

3.- CPLua use a "standard" version of the Lua interpreter and add some stuff on top of it? I mean, if the version of the "standard" Lua interpreter change it could be "easy" (that is almos inmediate) to switch to it in CPLua?

Indeed, the main modifications are made on top of the Lua kernel (that is, in the libraries etc). It should be easy to use a newer version of Lua, as long as it is compatible with Lua 5.0.2 ;)

Sorry if the questions have been answered before but with seven pages it's getting a bit difficult to manage.

No problem, it is indeed clearer to start a new topic so everyone could find the information more easily :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users