Good morning,
I'm wondering if there is somewhere any example of embedded use of
MKCL from a C/C++ program? I have not yet located one anywhere.
Attempting to proceed based on examples written for ECL is painful, as
more has changed than just naming. I have not yet managed to get
something as simple as [1] ported and to run after half an hour of
effort.
Also, I should mention that I noticed that MKCL built from Git will
install the shared library as /usr/local/lib/mkcl_1.1.10.so, without
the customary lib- prefix. This means that in any case the -lmkcl
linker flag will be ineffective without the manual creation of a
/usr/local/lib/libmkcl.so symlink.
Is MKCL still meant to usable embedded into C/C++ programs, or has it
been evolving in other directions?
Thanks,
Arto
[1] http://cwndr.ws/posts/Calling-Lisp-from-C-using-ECL.html
--
Arto Bendiken | @bendiken | http://ar.to
On Sat, Sep 6, 2014 at 1:16 PM, Jean-Claude Beaudoin <
jean.claude.beaudoin(a)gmail.com> wrote:
>
> On Fri, Sep 5, 2014 at 10:24 PM, 金舜琳 <3han5chou7(a)gmail.com> wrote:
>
>>
>> Hi, there
>>
>> I found a bug.
>> mkcl returns:
>> (print (coerce "string" 'list)) ; => (#\g #\n #\i #\r #\t #\s)
>> but CLHS http://clhs.lisp.se/Body/f_coerce.htm specifies `coerce` to
>> return the same sequence as origin.
>>
>>
> Thank you very much for your bug report. I will apply your patch shortly.
>
>
Your patch as now been applied to the code of MKCL, if not in its letter at
least in its spirit.
(Final code should be more efficient).
The patch currently sits on the commit list head of MKCL's git repository
(master branch).
Thank you again,
Jean-Claude Beaudoin
Hi, there
I found a bug.
mkcl returns:
(print (coerce "string" 'list)) ; => (#\g #\n #\i #\r #\t #\s)
but CLHS http://clhs.lisp.se/Body/f_coerce.htm specifies `coerce` to return
the same sequence as origin.
Because I couldn't find CONTRIBUTING file, I've attached my patch.
Bests
--
the Univ. of Tokyo math dept.
Sunrim KIM/金 舜琳 (きん すんりん)
Mail: 3han5chou7(a)gmail.com