Re: [Scilab-users] A gateway example in the current scilab-6.0.1 source still remaining in the scilab 5.5.2 old Scilab C API version.

2019-02-01 Thread Antoine ELIAS

Hello René,

With Scilab 5.3.0, late of 2010, we have introduce a new API that will 
be compatible with new Scilab 6 environment.
The goal was to depreciate stackx.h interface too dependent on the 
format of the old data storage format. ( called "stack" ).
This interface is defined in Scilab documentation : 
https://help.scilab.org/docs/6.0.0/en_US/section_57c66b650f71d7a7eaca3dfe608a4c08.html
During development of Scilab 6, we worked on a more efficient API: 
https://help.scilab.org/docs/6.0.1/en_US/api_scilab.html


If you want to write gateways and keep compatibility between 5 and 6, 
prefer 
https://help.scilab.org/docs/6.0.0/en_US/section_57c66b650f71d7a7eaca3dfe608a4c08.html
If you want to write for Scilab 6 and more use 
https://help.scilab.org/docs/6.0.1/en_US/api_scilab.html


You can find examples in documentation or in the demonstration toolbox 
'toolbox skeleton' in your Scilab installation folder. 
(SCI/contrib/toolbox_skeleton)

For example the same gateway writes in both API:
--> edit("SCI/contrib/toolbox_skeleton/sci_gateway/c/sci_csum.c"); 
//compatible 5 and 6 version
--> edit("SCI/contrib/toolbox_skeleton/sci_gateway/c/sci_csum6.c"); 
//scilab 6 and more


Thank you for the report, we need to update or remove old examples.
Regards,
Antoine
Le 01/02/2019 à 09:55, René Grognard a écrit :

Dear user or developer experienced in the new Scilab C API,

All the sub-directory: 
scilab-6.0.1/share/scilab/modules/dynamic_link/examples/gateway, 
giving a nice, non-trivial example of a gateway, seems an identical 
copy of the same sub-directory in scilab-5.5.2.


Is there somewhere a version converted for scilab-6.0.1 ?

The conversion does not seem at all obvious to me. For example I 
cannot see how the simple instructions given by: Port to the Scilab 6 
C API, in: Gateways: from Scilab 5 to Scilab 6, could ever make this 
gateway compatible with both the Scilab 5 and 6 APIs. (Is there a 
"mapping" somewhere between the functions, etc, of the old and new 
Scilab APIs as there is between Scilab and Matlab?)


The conversion of that gateway example --- with matrix multiplication 
in C --- would be a far better example to: Getting started with 
API_Scilab, than the rather trivial one given. At any rate as it 
stands the sub-directory in question has no place within the current 
scilab-6.0.1.


Thanks for any comment and maybe the location of an updated version of 
this particular gateway example.


René Grognard









___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] A gateway example in the current scilab-6.0.1 source still remaining in the scilab 5.5.2 old Scilab C API version.

2019-02-01 Thread René Grognard
Dear user or developer experienced in the new Scilab C API,

All the sub-directory:
scilab-6.0.1/share/scilab/modules/dynamic_link/examples/gateway, giving a
nice, non-trivial example of a gateway, seems an identical copy of the same
sub-directory in scilab-5.5.2.

Is there somewhere a version converted for scilab-6.0.1 ?

The conversion does not seem at all obvious to me. For example I cannot see
how the simple instructions given by: Port to the Scilab 6 C API, in:
Gateways: from Scilab 5 to Scilab 6, could ever make this gateway
compatible with both the Scilab 5 and 6 APIs. (Is there a "mapping"
somewhere between the functions, etc, of the old and new Scilab APIs as
there is between Scilab and Matlab?)

The conversion of that gateway example --- with matrix multiplication in C
--- would be a far better example to: Getting started with API_Scilab, than
the rather trivial one given. At any rate as it stands the sub-directory in
question has no place within the current scilab-6.0.1.

Thanks for any comment and maybe the location of an updated version of this
particular gateway example.

René Grognard
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users