command which lisp compiler is used

Discussion of Common Lisp
Post Reply
philberlin
Posts: 2
Joined: Mon Aug 03, 2009 8:00 am

command which lisp compiler is used

Post by philberlin » Mon Aug 24, 2009 6:06 am

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

nuntius
Posts: 538
Joined: Sat Aug 09, 2008 10:44 am
Location: Newton, MA

Re: command which lisp compiler is used

Post by nuntius » Mon Aug 24, 2009 8:41 pm

(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.

philberlin
Posts: 2
Joined: Mon Aug 03, 2009 8:00 am

Re: command which lisp compiler is used

Post by philberlin » Wed Aug 26, 2009 7:57 am

Thank you, all the informations were really useful!!

Post Reply