Re: [ANN] immutable-int-map

2014-04-22 Thread Alex Miller
On Tuesday, April 22, 2014 4:14:58 AM UTC-5, tcrayford wrote: > > Bonus: rename the library "immutable-long-map", then you can have a > section in the readme titled "why the long map?" > > On Monday, 21 April 2014 13:12:05 UTC+1, Alex Miller wrote: >> >> This is great stuff. Why not longs? Are y

Re: [ANN] immutable-int-map

2014-04-22 Thread tcrayford
Bonus: rename the library "immutable-long-map", then you can have a section in the readme titled "why the long map?" On Monday, 21 April 2014 13:12:05 UTC+1, Alex Miller wrote: > > This is great stuff. Why not longs? Are you going for space savings? -- You received this message because you are

Re: [ANN] immutable-int-map

2014-04-21 Thread Plínio Balduino
Got it. Awesome. Good job, Zach On Mon, Apr 21, 2014 at 1:52 AM, Zach Tellman wrote: > I could represent the map {0 :foo, 100 :bar} as an array, but it would > have to be a million element array with a lot of empty space. This would be > (maybe) faster w.r.t. lookups, but would be vastly s

Re: [ANN] immutable-int-map

2014-04-21 Thread Zach Tellman
Correct. I'll clarify that I mean 64 bit integers in the readme. On Apr 21, 2014 5:26 AM, "Alex Miller" wrote: > Never mind, look like you mean integer in the generic sense and you are > using longs, right? > > -- > You received this message because you are subscribed to the Google > Groups "Cloj

[ANN] immutable-int-map

2014-04-21 Thread Alex Miller
Never mind, look like you mean integer in the generic sense and you are using longs, right? -- 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

[ANN] immutable-int-map

2014-04-21 Thread Alex Miller
This is great stuff. Why not longs? Are you going for space savings? -- 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

Re: [ANN] immutable-int-map

2014-04-20 Thread Zach Tellman
I could represent the map {0 :foo, 100 :bar} as an array, but it would have to be a million element array with a lot of empty space. This would be (maybe) faster w.r.t. lookups, but would be vastly slower for enumerating entries, merging other maps, and adding keys that are larger than the

Re: [ANN] immutable-int-map

2014-04-20 Thread Plínio Balduino
"it's an immutable map that can only have positive integers as keys" -- Like an array? (My question is child of my complete ignorance, and I'm not questioning your knowledge or motivation) Plínio On Mon, Apr 21, 2014 at 1:40 AM, Zach Tellman wrote: > This one's pretty simple: it's an immutabl

[ANN] immutable-int-map

2014-04-20 Thread Zach Tellman
This one's pretty simple: it's an immutable map that can only have positive integers as keys. It can be found at https://github.com/ztellman/immutable-int-map. The one interesting aspect of this is that it has an efficient merge mechanism, which means it plays better with Clojure's reducer fra