Clojure-py Aims to Turn Python into Platform
Join the DZone community and get the full member experience.
Join For FreeFor those of you asking yourself, "What is clojure-py?", it's an implementation of Clojure in pure Python. The idea grew from the belief that static virtual machines and dynamic languages do not play well together because the language implementors are limited by the virtual machine's perception of what the "world should look like."
So now you're probably asking yourself, "Why should I care?" Well, Clojure has strengths in areas that Python doesn't, so a combination of the two could bring the best of both worlds.
Metaprogramming: Clojure's Lisp heritage makes it extremely suitable for macro-based metaprogramming because it follows the "code is data" philosophy.
Persistent Immutable Data Structures: Clojure has a set of immutable lists, vectors, sets and maps, and since they can't be changed, a new collection is created each time something is added or removed.
Clojure-py is available for download on Github. There's also a roadmap for the project that has a list of items marked "isolated change," which are changes designed to be easy for newcomers, if you'd like to help the project along.
We believe that with a proper dynamic JIT (like pypy) a version of clojure running on a dynamic VM can outperform its JVM and CLR counterparts. Aside from that, there are many Python libraries like PySide (Qt GUI), numpy, scipy, and stackless that do not have JVM counterparts, or at least the Python implementations are easier to use and learn. clojure-py will integrate tightly with thy Python VM and will be able to use all of these libraries.
-- Clojure-py
So now you're probably asking yourself, "Why should I care?" Well, Clojure has strengths in areas that Python doesn't, so a combination of the two could bring the best of both worlds.
Metaprogramming: Clojure's Lisp heritage makes it extremely suitable for macro-based metaprogramming because it follows the "code is data" philosophy.
Persistent Immutable Data Structures: Clojure has a set of immutable lists, vectors, sets and maps, and since they can't be changed, a new collection is created each time something is added or removed.
Clojure-py is available for download on Github. There's also a roadmap for the project that has a list of items marked "isolated change," which are changes designed to be easy for newcomers, if you'd like to help the project along.
Python (language)
Opinions expressed by DZone contributors are their own.
Comments