This is a read-only archive of lispforum.com. The forum was locked to new users and posts and is preserved here as static HTML from a database snapshot taken on 2019-09-07.

command which lisp compiler is used

3 posts · 1795 views

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

(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
#+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

Thank you, all the informations were really useful!!