eigenhombre / PyClojure

(Parts of) Clojure implemented on top of Python
Other
113 stars 13 forks source link

Create and use immutable, persistent data structures (currently Python lists and maps are used) #17

Open eigenhombre opened 12 years ago

zhemao commented 12 years ago

Take a look at my repo funktown. It's a pure-python implementation of Clojure-style immutable vectors and maps.

zhemao commented 12 years ago

Only problem is that it seems to be slower than just copying python dicts or lists wholesale. I might need to rewrite the recursive parts in C to make it faster.

eigenhombre commented 12 years ago

cool, i'll take a look!

eigenhombre commented 12 years ago

I would expect some performance hit for implementing immutability in a language not designed to support it out-of-the-box. Looks promising at first glance...