Re: [ANN] silc - a tiny entity database for clojure (games)

2014-12-03 Thread Daniel Kersten
Is it possible to retrieve all entities with a set of attributes, regardless of the attribute values? On Wed, 3 Dec 2014 06:19 Atamert Ölçgen mu...@muhuk.com wrote: I don't feed trolls. On Wed, Dec 3, 2014 at 10:10 AM, Atamert Ölçgen mu...@muhuk.com wrote: Why are you using BigDecimal's for

Re: [ANN] silc - a tiny entity database for clojure (games)

2014-12-03 Thread dan . stone16321
Yes I should probably not be using BigDecimals :) I'll fix this as soon as I can. On Wednesday, December 3, 2014 2:10:53 AM UTC, Atamert Ölçgen wrote: Why are you using BigDecimal's for indices? If you want to go big, isn't BigInt a better choice? Actually, I would just use Long's.

Re: [ANN] silc - a tiny entity database for clojure (games)

2014-12-03 Thread dan . stone16321
Is it possible to retrieve all entities with a set of attributes, regardless of the attribute values? Not yet, I haven't indexed for it. You could approximate it using the ave index if you just concat any set of entities under any value. However it would require the attributes you are

Re: [ANN] silc - a tiny entity database for clojure (games)

2014-12-03 Thread dan . stone16321
I have released an update to the lib with a new index the `attribute-entity` index, and improved the readme (I hope). Check it out! Regards, Dan -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: [ANN] silc - a tiny entity database for clojure (games)

2014-12-03 Thread James Reeves
Coincidentally, I put together a similar library a few months ago ( https://github.com/weavejester/ittyon), but I didn't think anyone else would find it useful. It looks like there are more people experimenting with games in Clojure than I thought. - James On 3 December 2014 at 21:30,

[ANN] silc - a tiny entity database for clojure (games)

2014-12-02 Thread dan . stone16321
I have put together a quick library http://github.com/danstone/silc that allows you to manage many entities and their attributes in a pure way with indexing for performance, include composite indexes. The intention of the library is certainly as the basis for an entity component system for

Re: [ANN] silc - a tiny entity database for clojure (games)

2014-12-02 Thread Wei Hsu
A pure entity database would have been useful for a game I was working on last month. I'll try it out for the next one. Thanks for publishing it! On Tuesday, December 2, 2014 2:37:06 PM UTC-8, dan.sto...@gmail.com wrote: I have put together a quick library http://github.com/danstone/silc that

Re: [ANN] silc - a tiny entity database for clojure (games)

2014-12-02 Thread Reid McKenzie
Cool project! Did you try using the pldb built into core.logic? I have a similar system built atop pldb backing one of my side projects and I'm very happy with it. Reid On 12/02/2014 04:37 PM, dan.stone16...@gmail.com wrote: I have put together a quick library http://github.com/danstone/silc

Re: [ANN] silc - a tiny entity database for clojure (games)

2014-12-02 Thread Atamert Ölçgen
This is a very nice example of abstraction. Using a hash-map is just an implementation detail. However I'd be very interested to hear if there are any other compelling use cases for this. Sparsely populated tables, unstructured anything... We used an EAV abstraction (over SQL) to build a

Re: [ANN] silc - a tiny entity database for clojure (games)

2014-12-02 Thread Atamert Ölçgen
Why are you using BigDecimal's for indices? If you want to go big, isn't BigInt a better choice? Actually, I would just use Long's. (MAX_VALUE = 9223372036854775807) On Wed, Dec 3, 2014 at 10:04 AM, Atamert Ölçgen mu...@muhuk.com wrote: This is a very nice example of abstraction. Using a

Re: [ANN] silc - a tiny entity database for clojure (games)

2014-12-02 Thread Raoul Duke
Actually, I would just use Long's. (MAX_VALUE = 9223372036854775807) https://www.google.com/search?q=youtube+gangnam+overflow -- 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

Re: [ANN] silc - a tiny entity database for clojure (games)

2014-12-02 Thread Atamert Ölçgen
I don't feed trolls. On Wed, Dec 3, 2014 at 10:10 AM, Atamert Ölçgen mu...@muhuk.com wrote: Why are you using BigDecimal's for indices? If you want to go big, isn't BigInt a better choice? Actually, I would just use Long's. (MAX_VALUE = 9223372036854775807) On Wed, Dec 3, 2014 at 10:04 AM,