Hacker Newsnew | comments | show | ask | jobs | submit login

Clojure isn't Common Lisp, but it's A Lisp, and a pretty decent one...



Clojure is incompatible with any other Lisp...

-----


So? Is Scheme compatible with Common Lisp?

Clojure can run on any platform the JVM can (so basically anywhere except iOS). Clojurescript can run anywhere Javascript does (so everywhere). It's a practical, immediately useful language, that's seen significant uptake and activity.

I like Common Lisp, but it's much easier to build useful apps in Clojure.

-----


> I like Common Lisp, but it's much easier to build useful apps in Clojure.

Unlikely.

-----


What do you mean exactly?

I mean, Common Lisp is incompatible to Scheme for example.

-----


Common Lisp was designed to be backwards compatible with Maclisp. Maclisp was developed from McCarthy's LISP.

Clozure OTOH is compatible with nothing.

-----


It's compatible with all devices which support a JVM, which these days outnumber the ones supporting Maclisp.

-----


Yeah, it is compatible with the JVM. But that does not make it a Lisp. Not a bit.

-----


How isn't Clojure a Lisp?

What is a Lisp according to you?

I'm not asking this in an agressive way, btw, I'm just really curious.

-----


    Clojure 1.5.1
    user=> (car '(1 2 3))
    CompilerException java.lang.RuntimeException: Unable to resolve symbol: car in this context, compiling:(NO_SOURCE_PATH:1:1) 
There are several things wrong with above.

I would expect:

    ECL (Embeddable Common-Lisp) 12.5.1 (git:6f2fd5413066103f46a7d9f70148c2f0541698f7)
    Copyright (C) 1984 Taiichi Yuasa and Masami Hagiya
    Copyright (C) 1993 Giuseppe Attardi
    Copyright (C) 2000 Juan J. Garcia-Ripoll
    ECL is free software, and you are welcome to redistribute it
    under certain conditions; see file 'Copyright' for details.
    Type :h for Help.  
    Top level in: #<process TOP-LEVEL>.
    > (car '(1 2 3))      

    1

-----


So simply that a language does not support car/cdr but uses first/rest instead disqualifies itself as a Lisp?

-----




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact

Search: