<div class="gmail_quote">On Thu, Mar 25, 2010 at 1:06 PM, yami <span dir="ltr"><<a href="mailto:yamisoe@gmail.com">yamisoe@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br><br>I have following pseudo code:<br>  cl_object some_object =  si_safe_eval(3, c_string_to_object("(blah blah)"), Cnil, OBJNULL);<br>  for (i=0; i<LARGE_NUMBER; i++) {<br>      cl_funcall(2, cl_intern(1, make_simple_base_string("use_some_object")), some_object); <br>

  }<br><br>It seems that after some iterations, the value of some_object changed... Any ideas?<br></blockquote><div><br></div><div>If "some_object" is in a thread that is know to ECL and it is an automatic (i.e. stack) C variable, the object will not change.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">BTW: it is a pain to deal with ECL & C, because no good documentation is available.<br>Why there is no good doc work here?</blockquote>
<div><br></div><div>Lack of time? There is currently one man working on this, plus contributed patches. Users have produced pages at the wiki, but nobody has contributed a documentation of existing functions / types. I myself spend 100% time right now solving bugs, adding requested features, porting to platforms, and answering email -- no pun intended :-)</div>
<div><br></div><div>There is also the fact that in ECL, except for c_string_to_object, the optional si_safe_eval(), and a couple of functions, there are no other functions required except those listed in the ANSI Common Lisp standard, which are translated word-by-word in to their C equivalents (COS -> cl_cos, etc)</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Especially for integrating ECL and C programs, which is a selling-point of ECL.<br></blockquote><div><br></div>
<div>Embeddability is not the only selling point of ECL. It is extremely portable, allows multithreading, it can also produce standalone programs, small executables, shared libraries, delivered without problems, it integrates well with C language allowing the opposite (and usually simpler) practice, which is using C from lisp, easy FFI, ... </div>
</div><br>-- <br>Instituto de Física Fundamental, CSIC<br>c/ Serrano, 113b, Madrid 28006 (Spain) <br><a href="http://tream.dreamhosters.com">http://tream.dreamhosters.com</a><br>