command which lisp compiler is used

Discussion of Common Lisp

command which lisp compiler is used

Postby 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
philberlin
 
Posts: 2
Joined: Mon Aug 03, 2009 8:00 am

Re: command which lisp compiler is used

Postby 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.
User avatar
nuntius
 
Posts: 498
Joined: Sat Aug 09, 2008 10:44 am
Location: Burlington, MA

Re: command which lisp compiler is used

Postby philberlin » Wed Aug 26, 2009 7:57 am

Thank you, all the informations were really useful!!
philberlin
 
Posts: 2
Joined: Mon Aug 03, 2009 8:00 am


Return to Common Lisp

Who is online

Users browsing this forum: No registered users and 3 guests

cron