**[Clojure][1]** is a Lisp dialect for the Java Virtual Machine (with versions for [the CLR][2] and JavaScript). Clojure is a modern Lisp dialect with an emphasis on functional programming (lazy/impure), running on the JVM with transparent access to all Java libraries, an interactive REPL development environment, dynamic runtime polymorphism, Lisp-style macro meta-programming and concurrent programming capabilities supported by software transactional memory. ###Key features: - **Lisp heritage** - Clojure is a fully [homoiconic][3] language with support for macro-based metaprogramming. The full features of the language are available at compile time, and it is possible to manipulate "code as data". These mechanisms are frequently used to extend the language itself or create new domain-specific languages. - **Functional programming** - Clojure is primarily a functional language. It features immutable data structures and lazy sequences. Like many other Lisps, it is eagerly evaluated (although lazy sequences, macros and closures can be introduced to obtain lazy behavior) and impure. - **Concurrent programming**, supported by [software transactional memory][4], and designed for multi-core environments. - **Dynamic** - Clojure is a dynamic language. However it should be noted that it is still fully compiled, exploits primitive operations on the JVM where needed for performance and can also support (optional) static type hints. - **Hosted on the JVM**, allowing for easy and transparent access to the wide ecosystem of Java libraries. - **Open source** - Clojure is run as a collaborative open source project ([hosted on GitHub][5]) and there is a rapidly growing ecosystem of open source libraries for Clojure, in addition to all the open source tools already available for Java - **Portable** - Clojure can run on any platform that supports the JVM, and Clojure versions are also available for the CLR (ClojureCLR) and JavaScript (ClojureScript) ###Code Samples: Hello world is simple.... (println "Hello World!") The "infamous" Lisp parentheses are used to apply a function, which is always the first item in the list: (+ 1 2 3 4) => 10 Functions can easily be defined and passed to higher order functions like `map`: (defn triple [x] (+ x x x)) (map triple [1 2 3 4 5 10]) => (3 6 9 12 15 30) Infinite lazy sequences are fully supported: (take 7 (iterate (partial str "a") "b")) => ("b" "ab" "aab" "aaab" "aaaab" "aaaaab" "aaaaaab") You can even do powerful computations on infinite sequences, such as defining the complete [Fibonacci][6] series: (def fibonaccis (lazy-cat [0 1] (map + fibonaccis (rest fibonaccis)))) (take 10 fibonaccis) => (0 1 1 2 3 5 8 13 21 34) ###Resources: - **The [Getting Started][7] wiki** (including instructions on IDE / Emacs / Vim setup and build tools) - The Clojure [Google group][8] archives - [Clojure quick reference][9] - [ClojureDocs][10] -- "Community powered Clojure Documentation and Examples" - [Disclojure][11] -- daily summary of Clojure intertweets - [Planet Clojure][12] -- the Clojure blog aggregator - [4Clojure][13], [Clojure Koans][14] -- Interactive fill-in-the-blank Clojure problems - [Coderwall Clojure Network](http://coderwall.com/n/clojure) -- Tips from a network of Clojure developers - [Clojure Toolbox][15] -- A categorised directory of libraries and tools for Clojure ## Clojure Web Frameworks - [Compojure][16] - [Ring][17] ##Clojure Video Tutorials **General Clojure** - [Inside Clojure](http://channel9.msdn.com/shows/Going+Deep/Expert-to-Expert-Rich-Hickey-and-Brian-Beckman-Inside-Clojure/) - [Sean Devlin's screencasts](http://vimeo.com/channels/fulldisclojure) - [Intro to Clojure](http://www.youtube.com/user/briantwill#g/c/AC43CFB134E85266) - [Clojure's basics ](http://vimeo.com/10896148) - [Concurrent programming in Clojure](http://vimeo.com/8672404) - [Clojure 1.2 Protocols](http://vimeo.com/11236603) - [Rich Hickey on Protocols and Clojure 1.3](http://www.infoq.com/interviews/hickey-clojure-protocols) - [Clojure's Solutions to the Expression Problem](http://www.infoq.com/presentations/Clojure-Expression-Problem) - [Clojure Concurrency On-Demand!](http://link.pluralsight.com/clojure) - [Rich Hickey on Clojure's Features and Implementation](http://www.infoq.com/interviews/hickey-clojure) - [Clojure](http://www.infoq.com/presentations/hickey-clojure) - [Are We There Yet?](http://www.infoq.com/presentations/Are-We-There-Yet-Rich-Hickey) - [Persistent Data Structures and Managed References](http://www.infoq.com/presentations/Value-Identity-State-Rich-Hickey) - [Stuart Halloway on Clojure and Functional Programming](http://www.infoq.com/interviews/stuart_holloway_clojure) - [Programming Clojure](http://www.amazon.com/gp/product/1934356336?ie=UTF8&tag=aleottshompag-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=1934356336) - [Clojure in the Field](http://www.infoq.com/presentations/Clojure-in-the-Field) - [Clojure and Simplicty](http://java.dzone.com/videos/clojure-and-simplicty) - [Clojure in Clojure](http://vimeo.com/9090935) - [Clojure: Functional Concurrency for the JVM](http://www.parleys.com/#st=5&id=1518&sl=1) - [Devoxx'09](http://devoxx.com) - [Asynchronous Events in Clojure](http://vimeo.com/18970727) - [Clojure for Schemers](http://vimeo.com/22675078) - [Introduction to Monads](http://www.youtube.com/watch?v=ObR3qi4Guys) - [several video lectures](http://www.vimeo.com/user5897815/videos) - [Clojure - Up Close and Personal](http://vimeo.com/15046335) - [circumspec, inferior-lisp, clojure, and slime](http://vimeo.com/9770382) - [Compojure/Emacs Intro](http://vimeo.com/8356990) - [Functional Programming with Clojure](http://peepcode.com/products/functional-programming-with-clojure) **Clojure Web Development** - [Mark McGranaghan: "One Ring to Bind Them"](http://www.youtube.com/watch?v=qqNevHwH47w) - [Clojure and the Web](http://www.infoq.com/presentations/Clojure-and-the-Web) **ClojureScript** - [Rich Hickey Unveils ClojureScript](https://www.youtube.com/watch?v=tVooR-dF_Ag) [1]: http://clojure.org/ [2]: https://github.com/clojure/clojure-clr [3]: http://en.wikipedia.org/wiki/Homoiconicity [4]: http://en.wikipedia.org/wiki/Software_transactional_memory [5]: https://github.com/clojure/clojure [6]: http://en.wikipedia.org/wiki/Fibonacci_number [7]: http://dev.clojure.org/display/doc/Getting+Started [8]: http://groups.google.com/group/clojure [9]: http://faustus.webatu.com/clj-quick-ref.html [10]: http://clojuredocs.org/ [11]: http://disclojure.org/ [12]: http://planet.clojure.in/ [13]: http://4clojure.com/ [14]: https://github.com/functional-koans/clojure-koans [15]: http://www.clojure-toolbox.com/ [16]: https://github.com/weavejester/compojure/wiki [17]: https://github.com/ring-clojure/ring