[CM] slime cm-2.10 and ASDF
Torsten Anders
torsten.anders at beds.ac.uk
Tue Aug 6 14:52:45 PDT 2013
> Does your PWGL-Lisp produce fasl-files?
Yes, the PWGL application does usually produce *. clufasl files of every library it loads (no other complied files, though, at list not on a Mac).
Best wishes,
Torsten
--
Dr Torsten Anders
Course Leader, Music Technology
University of Bedfordshire
Park Square, Room A315
http://www.torsten-anders.de
On 6 Aug 2013, at 21:37, Ralf Mattes <rm at seid-online.de> wrote:
> On Tue, Aug 06, 2013 at 06:17:02PM +0100, Torsten Anders wrote:
>> Dear Ralf,
>>
>> Thanks for sharing your cm.asd file.
>>
>> I could load this file into Lisp Works, more specifically as a library into the free PWGL application (http://www2.siba.fi/pwgl/downloads.html). So, in principle this would allow to use PWGL (e.g., its score editors and break-point functions etc.) alongside CM2, which would be great.
>
> Hmm, I can't really help you with PWGL - while it looks like a cool
> system I refuse to work with closed source systems with unclear
> licence. As Anders allready pointed out - unless you own a licenced
> (i.e. no-personal) Edition of LispWorks you operate with a rather
> limited system. I couldn't get CM2 working with my personal editon
> (stack overflow).
>
>
>> However, after loading I noticed that PWGL became unusably slow. Usually, whenever PWGL loads a library all sources are automatically compiled (resulting in *. clufasl files). For some reason, this is not the case after loading your cm.asd file. So, I had a look at that file and noticed that it contains much much more than the *.asd files I saw before (which usually consist of a single asdf:defsystem call. So, it is a bit difficult to figure out why the sources are not compiled.
>
> That's the whole point of my complaint about this asdf file (sometimes
> I think there's some AI hidden in there ...). Time for a major rework -
> this file will not work with asdf3.
>
>> However, I noticed that in the asdf:defsystem call, most files are called with :scheme set to T. Why is that? After all, there are *.lisp versions of these files as well?
>
> Well, no. CM is in fact written in Scheme. The Lisp version is
> created by transforming the Scheme code to Lisp. That's one of
> the magic tricks the asdf file does. Does your PWGL-Lisp produce
> fasl-files?
>
>> For completeness, here are two further minor changes I had to make before I could load CM as a PWGL library.
>> - Renaming the file cm.asd into cm2.asd (the name of the system defined with asdf:defsystem).
>
> Mea culpa, mea maxima culpa! That's what I get from just copying. That file came straight from my quicklisp repro where
> it's of course called cm2.asd.
>
>> - The next error then said "Cannot load this library because Scheme source <PathToCM2>/src/gluplot.scm not found". The CM tar ball version 2.10.0 I just downloaded from http://sourceforge.net/projects/commonmusic/files/cm/ does not contain this file. Luckily I had this file still somewhere else, but perhaps the tar ball should be updated?
>
> Ah - probably. Or you get used to work from the svn version.
>
> Cheers, RalfD
>
>
>> Best wishes,
>> Torsten
>>
>> On 6 Aug 2013, at 10:03, R. Mattes <rm at mh-freiburg.de> wrote:
>>> On Tue, 06 Aug 2013 14:53:36 +1200, adam wrote
>>>>
>>>> I'm sorry to be a pest, gentlemen.
>>>
>>> You aren't. That's what this list is for.
>>>
>>>> After setting up sbcl with Quicklisp, and setting the
>>>> environment variable,
>>>> $ export CM_RUNTIME=sbcl
>>>>
>>>> Running cm.sh of CM-2.10 fails with the error below.
>>>>
>>>> I can supply further information if required. While I can't seem
>>>> to find the sbcl Implementation Notes, I have established that
>>>> UNIX-FILE-KIND is not mentioned in the sbcl manual. Indeed it
>>>> seems to be a reoccurring problem for sbcl.
>>>>
>>>> If anyone can recommend the best fix or patch for this, then
>>>> much appreciated.
>>>
>>> As a quick fix, just replace the file cm.asd in your cm-directory
>>> with the one in the attachment.
>>> BTW, I find it way more convenient to use CM like this:
>>>
>>> - create a symboli link from you cm-directory into ~/quicklisp/local-projects [1]
>>>
>>> - start your lisp of choice and enter:
>>>
>>> (ql:quickload :cm)
>>> (cm)
>>>
>>> HTH RalfD
>>>
>>> [1] on Linux, do:
>>>
>>> $ ln -s /where/you/installed/cm/ ~/quicklisp/local-projects/
>>>
>>>
>>> --
>>> R. Mattes -
>>> Hochschule fuer Musik Freiburg
>>> rm at inm.mh-freiburg.de
>>>
>>> <cm.asd>_______________________________________________
>>> Cmdist mailing list
>>> Cmdist at ccrma.stanford.edu
>>> http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist
>>
>>
>> _______________________________________________
>> Cmdist mailing list
>> Cmdist at ccrma.stanford.edu
>> http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist
More information about the Cmdist
mailing list