Re: quick way to test compatibility

Pascal Bourguignon <pjb-jNDFPZUTrfRkIYSJMME8NAC/[email protected]>
Newsgroups gmane.lisp.ecl.general
Message-ID <[email protected]>
> On 8 Apr 2017, at 11:29, Fabrizio Fabbri <strabixbox-/[email protected]> wrote:
> 
> 
>> Il giorno 7 apr 2017, alle ore 16:51, Gross, Daniel <[email protected] <mailto:[email protected]>> ha scritto:
>> 
>> Hi, 
>>  
>> I have some lisp source code and would like to test compatibility with ECL. Is there a simple way to test for compatibility. Ideally, I would compile and/or repl and run the code with ecl.
>>  
> Hi Daniel,
> which OS? You may want to build the latest release, is quite easy.
> 
> To test you can easily do something like
> 
> ecl -load “foo.lsp”
> 
> or 
> 
> ecl -eval “(print 1)” -eval “(quit)”
> 
> cheers
> f.
> 

Actually if you want to test compatibility, you could use clall:

[pjb@despina :0.0 ~]$  clall -r '(let ((x (1+ most-positive-fixnum))) (eq x x))' \
                         '(eq (1+ most-positive-fixnum) (1+ most-positive-fixnum))'

Armed Bear Common Lisp         --> T
Armed Bear Common Lisp         --> NIL
Clozure Common Lisp            --> T
Clozure Common Lisp            --> NIL
CLISP                          --> T
CLISP                          --> NIL
ECL                            --> T
ECL                            --> NIL
SBCL                           --> T
SBCL                           --> NIL

clall can be found at:
http://git.informatimago.com/viewgit/index.php?a=viewblob&p=public/bin&h=5e43fee1e6982d33b2f28bba256bc1a3aeaf7496&hb=a1dfa9e38ce00fab628053ef10999a0bb6f27395&f=clall <http://git.informatimago.com/viewgit/index.php?a=viewblob&p=public/bin&h=5e43fee1e6982d33b2f28bba256bc1a3aeaf7496&hb=a1dfa9e38ce00fab628053ef10999a0bb6f27395&f=clall>


-- 
__Pascal J. Bourguignon__
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.