[ANN] clafka 0.2.2

2015-08-07 Thread dan . stone16321
A new version of https://github.com/mixradio/clafka has been released. clafka is a library providing an idiomatic clojure api for kafka's SimpleConsumer and KafkaProducer. It is intended to be used as the basis for consumers whose needs are not met by the zookeeper consumer that is included wit

[ANN] clafka 0.1.0 - a clojure kafka client focusing on the SimpleConsumer and KafkaProducer.

2015-06-09 Thread dan . stone16321
I am pleased to announce the release of the initial version of our new kafka library! I see this library as useful for people that want to... a. Read some data from their kafka logs worry free (no consumer groups, no state etc) b. Implement a new kind of consumer, as their needs are not met by

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 clojure@googlegrou

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

[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 game

Hierarchical data core.logic

2014-11-13 Thread dan . stone16321
I think this is a dummy question, but wondering whether this is possible in core.logic? Lets say I have a set of relations (db-rel foo p) (db-rel bar p) (db-rel fooz p p2) and facts [foo 1] [bar 2] [fooz 2 1] [bar 3] [fooz 3 1] See that the fooz relation is potentially describing bar as chil

Re: Weird data reader issue (clj-time)

2014-08-21 Thread dan . stone16321
Thats it! Thanks for the great explanation. On Wednesday, August 20, 2014 5:55:18 PM UTC+1, Marshall Bockrath-Vandegrift wrote: > > What's your `print-dup` for instants print them as? The way compilation > for these expressions is going to work is: > > (a) The initial form will be read using th

Weird data reader issue (clj-time)

2014-08-20 Thread dan . stone16321
Maybe I am missing something obvious - I am using custom data readers for joda-time instants. time/inst strings are coerced into utc date times, time/insto keep the offset around. Using the exact same function to parse the string via the data-reader, and just calling the function - I get diff

Re: core.cache strange behaviour for short ttl

2014-03-03 Thread dan . stone16321
In case anyone was wondering I worked out what was going on and it makes perfect sense. I was being stupid :) If you ask for a value via 'lookup' expired values will not be returned at this point as 'has?' is called internally. I made a quick and dirty library to reflect the behaviour I want f

core.cache strange behaviour for short ttl

2014-02-28 Thread dan . stone16321
Taking the code below, if I repeatedly read from a cache I will occasionally get nil back from the cache. This seems to happen on my machine for ttl's under 5 ms. Although I'm sure I would never use such a short TTL in the wild, I would like to know why I am seeing this... Has anybody else notic