Re: I knew that primitives were better, but this is ridiculous

2016-05-13 Thread JvJ
Actually, I just achieved substantial performance gains with cross-map iteration. Previously, if I was iterating over rows/cols, I would check each one for the relevant components. Now, I do an intersection operation on the row/col indexes before iterating. It works pretty well, and gives

Iterate over transient map

2016-05-13 Thread JvJ
I'm implementing a data structure, cross-map , which cross-indexes keys with the structure [row column]. I'm also trying to implement a transient version to speed things up a bit. However, I would like to do certain iteration operations on the transient

Re: I knew that primitives were better, but this is ridiculous

2016-05-13 Thread James Reeves
On 13 May 2016 at 19:50, Michael Willis wrote: > > Every time I go to the hammock (so to speak) to think over how to design > such a system, I realize that I'm just re-inventing the database, so I come > away feeling like somewhere, somehow there must already exist an

Re: I knew that primitives were better, but this is ridiculous

2016-05-13 Thread Alan Thompson
It sounds like DataScript may be just what you need: https://github.com/tonsky/datascript Alan On Fri, May 13, 2016 at 11:50 AM, Michael Willis wrote: > I'm also really interested in the topic of indexing a CES game engine. At > one point I was trying to build a game,

Re: I knew that primitives were better, but this is ridiculous

2016-05-13 Thread Michael Willis
I'm also really interested in the topic of indexing a CES game engine. At one point I was trying to build a game, and mine was designed with components being maps of entity-id -> value. I found that it worked really well to quickly do things like running a function for all entities that have

Re: understanding a clojuredocs merge example

2016-05-13 Thread Jason Felice
(def baz (partial merge {:opt1 "default-1" :opt2 "default-2"})) :) On Thu, May 12, 2016 at 5:08 PM, hiskennyness wrote: > > > On Thursday, May 12, 2016 at 9:33:29 AM UTC-4, Michael Willis wrote: >> >> As long as we're cutting out unnecessary code, this is also equivalent:

[ANN] org.clojure/java.jdbc 0.6.1 -- important bug fix / PostgreSQL support

2016-05-13 Thread Sean Corfield
What? Clojure contrib wrapper for JDBC org.clojure/java.jdbc 0.6.1 bug fix release https://github.com/clojure/java.jdbc#change-log Release 0.6.1 on 2016-05-12 -- IMPORTANT BUG FIX! • insert! and insert-multi! now default :transaction? to true (as they should have done in

Re: changing metadata questions

2016-05-13 Thread hiskennyness
> > > OK, I am working with refs, let's do it!: > > (let [x (with-meta (ref {:a 42}) >> {:raw 17})] >>(alter-meta! x #(update-in % [:raw] inc)) >>(meta x)) > > > Nope. IRef cannot be cast to IObj. ...google...google... Hunh? The :meta > option on ref? > > [1] Why the

Re: dependency problem

2016-05-13 Thread 'Alan Forrester' via Clojure
On 13 May 2016, at 11:46, Juan A. Ruz @tangrammer wrote: > (sorry previous comment was sent before I wanted :- ) > Hi Alan, > I think you should keep commons-code 1.9 as far as is the last-version > required by any dep of your project > so ... > > you could exclude

Re: dependency problem

2016-05-13 Thread Juan A. Ruz @tangrammer
(sorry previous comment was sent before I wanted :- ) Hi Alan, I think you should keep commons-code 1.9 as far as is the last-version required by any dep of your project so ... you could exclude globally (using :exclusions) your dependencies that are causing the conflict and specified later

Re: dependency problem

2016-05-13 Thread Juan A. Ruz @tangrammer
Hi Alan, I think you should keep commons-code 1.9 as far as is the last-version required by any dep of your project so ... you can :exclusions [org.clojure/clojure commons-codec] :dependencies [[org.clojure/clojure "1.7.0"] [commons-codec "1.9"]

AOT uberjar building broken - anyone know a workaround?

2016-05-13 Thread Michael Sperber
We have a fairly large Clojure application which we're deploying as an uberjar. We'd like to deploy AOT, but are running into this: http://dev.clojure.org/jira/browse/CLJ-1544 Unless I misread, it means that AOT compilation is essentially broken. The workaround suggest there is to only AOT the

dependency problem

2016-05-13 Thread 'Alan Forrester' via Clojure
I have been trying to use the Twitter API library by Adam Wynne: https://github.com/adamwynne/twitter-api and it appears to have a dependency problem. My project.clj file looks like this (defproject hash-tag-counting-thingy "0.1.0-SNAPSHOT" :description "FIXME: write description" :url