<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi all,<br>
    <br>
    Congratulations to Scilab team for the release, it looks very
    promising!<br>
    <br>
    <br>
    I have begun to test the compatibility of some of my tools with
    Scilab 6 and I have some questions:<br>
    <br>
    <blockquote>- the way libraries are handled seems to have changed
      with Scilab 6, and the example provided in 'help lib' does not
      work anymore, <br>
      <br>
      <blockquote><font size="-1">//define some functions</font><br>
        <font size="-1">function z=myplus(x, y)</font><br>
        <font size="-1">  z = x + y</font><br>
        <font size="-1">endfunction</font><br>
        <br>
        <font size="-1">function z=yourplus(x, y)</font><br>
        <font size="-1">  x = x - y</font><br>
        <font size="-1">endfunction</font><br>
        <br>
        <font size="-1">//create the *.bin files in libdir</font><br>
        <font size="-1">libdir = TMPDIR;</font><br>
        <font size="-1">save(libdir + '/myplus.bin', 'myplus');</font><br>
        <font size="-1">save(libdir + '/yourplus.bin', 'yourplus');</font><br>
        <br>
        <font size="-1">//create the name file</font><br>
        <font size="-1">mputl(['myplus';'yourplus'],TMPDIR+'/names');</font><br>
        <br>
        <font size="-1">//build the library containing myplus and
          yourplus</font><br>
        <font size="-1">mylibfoo = lib(libdir+'/');</font><br>
      </blockquote>
      The above code says that the path is not a path to a valid
      library.<br>
      Could someone explain what 'lib' is expecting? (I would like to
      avoid using 'genlib' as it does not recursively goes through
      subdirectories).<br>
      <br>
      <br>
      - when 'error' is called within a function that overload the
      behaviour for some object, then the error message is not
      displayed, e.g.<br>
      <br>
      <blockquote><font size="-1">a = mlist(['myType']);</font><br>
        <font size="-1">function %myType_e(varargin)</font><br>
        <font size="-1">   error('My error msg')</font><br>
        <font size="-1">endfunction</font><br>
        <font size="-1">a(1)</font><br>
      </blockquote>
      <br>
      only says that the operation is not defined for this type without
      displaying 'My error msg'.<br>
      <br>
      <br>
      - I'm not sure that this is specific to Scilab 6, but I've noticed
      a large difference in performance for solving linear systems A*x =
      b in comparison to Octave and Matlab. For instance,<br>
      <br>
      <blockquote><font size="-1">n = 100;</font><br>
        <font size="-1">N = 1000;</font><br>
        <font size="-1">T = 0;</font><br>
        <font size="-1">for i = 1:n</font><br>
        <font size="-1">   A = rand(N,N);</font><br>
        <font size="-1">   b = rand(N,1);</font><br>
        <font size="-1">   tic();</font><br>
        <font size="-1">   x = A\b;</font><br>
        <font size="-1">   T = T + toc();</font><br>
        <font size="-1">end</font><br>
        <font size="-1">disp(T/n)</font><br>
      </blockquote>
      <br>
      is (significantly) slower with Scilab (binaries for linux 64bits)
      than with Octave. Is it due to the way the underlying lapack
      library is compiled?<br>
      <br>
      <br>
      - In Scilab 5, given a variable 'x', the expression <br>
      <br>
      <blockquote><font size="-1">x = clear('x') </font><br>
      </blockquote>
      <br>
      was allowed and would clean the variable 'x'. Used together with
      'resume' in a function, that allowed to clean variables from the
      above environment. While it might not be a very safe coding
      practice, is there a way to reproduce this behaviour in Scilab 6 ?
      <br>
    </blockquote>
  </body>
</html>