Could you use something like Redis? Use hashes as keys, fake immutability 
by 'popping' kv pairs and inserting new ones keyed to the (presumably 
different) hash of the updated map.

On Thursday, August 13, 2015 at 7:52:06 AM UTC-4, Christian Weilbach wrote:
>
> -----BEGIN PGP SIGNED MESSAGE----- 
> Hash: SHA1 
>
> Hi Atamert, 
>
> sorry for replying late. 
>
> On 11.08.2015 10:29, Atamert Ölçgen wrote: 
> > Hi Christian, 
> > 
> > hasch looks nice, I might end up just using it. I will be hashing 
> > smaller collections (maps where keys are keywords and values are 
> > atomic data like integers). 
>
> Ok, then io will probably hurt you much more than some overhead for 
> hashing, I guess. 
>
> > 
> > Collisions BTW are not such a big deal for my use case. I will have 
> > a limited number of fragments (buckets, index pages, etc.) anyway. 
> > 65536 of them perhaps. The more I think about the problem the more 
> > I realize I am implementing some sort of hash map. 
>
> I guess a durable one. In this case it might be interesting to think 
> about extending the persistent datastructures of Clojure in a way to 
> keep them on disk. I am currently experimenting a bit with that on 
> hash-maps of a commit graph, although I need it to work in 
> ClojureScript as well and cannot just reimplement core protocols 
> because of async io. 
> That way changing metadata of my datatype can have constant size. 
>
> Feel free to post any feedback on your progress/findings :). 
>
> Christian 
> -----BEGIN PGP SIGNATURE----- 
> Version: GnuPG v1 
>
> iQEcBAEBAgAGBQJVzITYAAoJEKel+aujRZMkZX4H/j5kpqolsS61y2IH+68Bq55/ 
> sdiME1eXdJ4VgYQH+IF4WDTYtPGZgV7U3XnM7Bqc5SygkGxOvDc5p4piTeSfpJIh 
> HE8GkBP8RkQNU5rqKu0M6xeSJGQdnAp/1VzQdJux9KAC2+0RG+SLKKft95zka9iz 
> PHDy+n/m8qTrMSUjpk2tVxuglyjkGaQeBm9bfRN07Cn/96e9XcafzsekMwZiI8HU 
> 70n5ACbBWFXz5zxe0xfoUdA48OJSXrnoQTCmA95zOLnZ9thHgs066jjXCjNtomzD 
> NRhx7J9hi4lU54VmRcYJb4mVw5JLXQCWnARh8//o6P2SbmYFJkDIsCLtPJ9xJu4= 
> =H4lz 
> -----END PGP SIGNATURE----- 
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to