Re: [Ecls-list] embedding questions

2012-12-11 Thread Matthew Mondor
On Tue, 11 Dec 2012 11:01:18 -0600 Peter Keller wrote: > On Sat, Dec 08, 2012 at 05:47:11AM -0500, Matthew Mondor wrote: > > On Sat, 8 Dec 2012 01:46:16 -0600 > > A precaution is necessary if Lisp functions will be called from C > > by threads which weren't started by ECL: such threads should fir

Re: [Ecls-list] embedding questions

2012-12-11 Thread Peter Keller
On Sat, Dec 08, 2012 at 05:47:11AM -0500, Matthew Mondor wrote: > On Sat, 8 Dec 2012 01:46:16 -0600 > A precaution is necessary if Lisp functions will be called from C > by threads which weren't started by ECL: such threads should first be > "registered" with ECL. This is not an issue specific to

Re: [Ecls-list] embedding questions

2012-12-09 Thread Peter Keller
Hello, On Sun, Dec 09, 2012 at 12:04:30AM +0100, Juan Jose Garcia-Ripoll wrote: > On Sat, Dec 8, 2012 at 7:27 PM, Peter Keller wrote: > Say for instance you need to create structures with two slots > > * Evaluate a "(defstruct foo a b)" form at the outer part of your code > (c_string_to_object +

Re: [Ecls-list] embedding questions

2012-12-08 Thread Juan Jose Garcia-Ripoll
On Sat, Dec 8, 2012 at 7:27 PM, Peter Keller wrote: > > Is what I'm doing really off base? > First, I am not sure whether you really need to translate objects, or whether you can simply live with the pointers around. If you look at ECL's FFI, it provides the lisp world with means to access the v

Re: [Ecls-list] embedding questions

2012-12-08 Thread Peter Keller
Hello, Thank you for anwering my questions! I appreciate the time you spent writing the answer. On Sat, Dec 08, 2012 at 11:13:04AM +0100, Juan Jose Garcia-Ripoll wrote: > On Sat, Dec 8, 2012 at 8:46 AM, Peter Keller wrote: > > 2. Are there any issues or special considerations with creating CLOS

Re: [Ecls-list] embedding questions

2012-12-08 Thread Matthew Mondor
On Sat, 8 Dec 2012 01:46:16 -0600 Peter Keller wrote: Only to add to what Juanjo already said: > 2. Are there any issues or special considerations with creating CLOS > objects and then calling methods on them from the C side? Will those > methods dispatch correctly on the arguments without addit

Re: [Ecls-list] embedding questions

2012-12-08 Thread Juan Jose Garcia-Ripoll
On Sat, Dec 8, 2012 at 8:46 AM, Peter Keller wrote: > I'm about to use ECL for some embedding work, namely having a front > end C interface to a well-known C plugin system with an ECL backend > implementing all of the plugin functionality. > Good! Please report both success and any problems you