Page 1 of 1

command which lisp compiler is used

Posted: Mon Aug 24, 2009 6:06 am
by philberlin
Hello,

because the code in AllegroCl and Lispworks vary for opening a socket, I wanted to ask, if there is a command to identify the compiler one is working with?

Thanks in advance,
Phil

Re: command which lisp compiler is used

Posted: Mon Aug 24, 2009 8:41 pm
by nuntius
(lisp-implementation-type) tells you which "brand" lisp you're running.
(lisp-implementation-version) tells you which release it is.

Also look for hints stored in *features*; these allow for easy conditional compilation such as

Code: Select all

#+sbcl
(defun i-am () "sbcl")
#+ecl
(defun i-am () "ecl")
As regarding sockets, you might be interested in the usocket compatibility layer.

Re: command which lisp compiler is used

Posted: Wed Aug 26, 2009 7:57 am
by philberlin
Thank you, all the informations were really useful!!