PyClojure icon indicating copy to clipboard operation
PyClojure copied to clipboard

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

Open eigenhombre opened this issue 13 years ago • 4 comments

eigenhombre avatar Feb 15 '12 14:02 eigenhombre

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

zhemao avatar Feb 15 '12 22:02 zhemao

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.

zhemao avatar Feb 15 '12 22:02 zhemao

cool, i'll take a look!

eigenhombre avatar Feb 15 '12 22:02 eigenhombre

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...

eigenhombre avatar Feb 16 '12 01:02 eigenhombre