Re: Random "IllegalArgumentException: No distinct mapping found" after replacing defmultis with protocols

2011-03-26 Thread Michael Wood
On 26 March 2011 02:57, Tassilo Horn wrote: > Alan writes: > > Hi Alan, > >> That error message is coming from some use of (case), usually in your >> code but conceivably from somewhere in Clojure.  It tries to do some >> clever bit-fiddling to generate a constant-time-dispatch on the >> hashcode

Re: Random "IllegalArgumentException: No distinct mapping found" after replacing defmultis with protocols

2011-03-26 Thread Tassilo Horn
Michael Wood writes: Hi Michael, >>> Given that you don't use case at all, and the backtrace suggests the >>> case call is in dispatching for the protocol, it sounds to me like a >>> bug in the protocol dispatcher. >> >> I would have preferred a bug in my code... > > It's definitely a bug in cas

Re: bindings & lazy-seq

2011-03-26 Thread Mark Nutter
I'll take a stab at this and then someone can tell me if I'm understanding it myself. > (lazy-seq > (binding [*in* in#] ><-- some code -->)) This is inside the definition, so it executes whenever you actually USE the definition--i.e. it binds *in* to in# at the time the lazy seq is used, whi

Re: ClojureCLR in production ?

2011-03-26 Thread Jules
Thanks for getting back to me Timothy - I'm encouraged - I'll give it a whirl. Jules -- 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 - pleas

Re: ClojureCLR in production ?

2011-03-26 Thread David Jagoe
Jules, I ran into a problem implementing a Clojure CLR http client for a Clojure web server. I can't remember the details off-hand but I recall that it had something to do with a static global variable in some .NET http client library and SSL certificate handling. It wasn't a problem with ClojureC

Good choices for a NoSQL database with Clojure?

2011-03-26 Thread Base
hi All - Any recommendations on a NoSQL database to use with clojure? I am experimenting if it will fit my project better than a SQL db and have no real experience with them. Strong clojure support is obviously important for this. The only one I know of is MongoDb... Thoughts?? Thanks Base

Re: Good choices for a NoSQL database with Clojure?

2011-03-26 Thread Timothy Baldridge
> Any recommendations on a NoSQL database to use with clojure? I am > experimenting if it will fit my project better than a SQL db and have > no real experience with them. I highly recommend couchdb via the clutch clojure lib. It's fast, and works well. CouchDB is very easy to setup and learn. An

Re: Jesus, how the heck to do anything?

2011-03-26 Thread Preecha P
I think you should take a look at clojure box again. You could split the windows and have both code/repl open at the same times. After you feel comfortable with that, try leiningen and build some project. On Mar 23, 2:50 pm, ultranewb wrote: > Short version:  How do I just open an editor, type i

Re: Good choices for a NoSQL database with Clojure?

2011-03-26 Thread Sean Allen
On Sat, Mar 26, 2011 at 12:56 PM, Base wrote: > hi All - > > Any recommendations on a NoSQL database to use with clojure?  I am > experimenting if it will fit my project better than a SQL db and have > no real experience with them. > > Strong clojure support is obviously important for this.  The o

Re: Jesus, how the heck to do anything?

2011-03-26 Thread Sean Allen
On Wed, Mar 23, 2011 at 11:04 PM, ultranewb wrote: > On Mar 24, 7:26 am, Armando Blancas wrote: >> That's quite alright. Nine out of ten people here hate java; > > Actually, I didn't know that.  I imagined that 9 out of 10 people here > would be java-ites.  It's good to know that I'm in good comp

A newbie's summary - what worked, what didn't

2011-03-26 Thread ultranewb
NetBeans w/ Enclosure - Could get a REPL, couldn't figure out how to do anything else. Result - uninstalled. IntelliJ w/ La Clojure - Could get a REPL, couldn't figure out how to do anything else. In particular, I followed some specific instructions from somewhere (can't remember where) for how

Re: A newbie's summary - what worked, what didn't

2011-03-26 Thread Mark Engelberg
On Sat, Mar 26, 2011 at 10:24 AM, ultranewb wrote: > Clojure Box - > Could get a REPL, couldn't figure out how to do anything else (i.e. > Leinegen blah blah).  Result - kept the install, as this was the 2nd > most promising solution tried thus far. If you don't care about building projects into

Re: Good choices for a NoSQL database with Clojure?

2011-03-26 Thread Vivek Khurana
On Sat, Mar 26, 2011 at 10:26 PM, Base wrote: > hi All - > > Any recommendations on a NoSQL database to use with clojure?  I am > experimenting if it will fit my project better than a SQL db and have > no real experience with them. > > Strong clojure support is obviously important for this.  The o

Re: Good choices for a NoSQL database with Clojure?

2011-03-26 Thread Michael Ossareh
On Sat, Mar 26, 2011 at 09:56, Base wrote: > hi All - > > Any recommendations on a NoSQL database to use with clojure? I am > experimenting if it will fit my project better than a SQL db and have > no real experience with them. > > I've replaced my rdbms with Riak (www.basho.com). > Strong clo

Re: int or long as map key

2011-03-26 Thread Stuart Sierra
Through version 1.2.0, Clojure used Java's Object.equals method for map lookups. Java specifies Object.equals to be false for numbers of different types. Clojure 1.3.0-alpha* uses its own = function for map lookups specifically to avoid this problem. The = function is true for numbers of diff

Re: Good choices for a NoSQL database with Clojure?

2011-03-26 Thread Timothy Washington
I briefly tried out FleetDB , which is a DB with a clojure, s-expression data model. It works very well for what it does. But there were things I needed that it didn't supply: - A) adding / searching within sub-directories - B) inability to search within a document that'

Re: Good choices for a NoSQL database with Clojure?

2011-03-26 Thread Michael Ossareh
On Sat, Mar 26, 2011 at 12:15, Michael Ossareh wrote: > > > On Sat, Mar 26, 2011 at 09:56, Base wrote: > >> hi All - >> >> Any recommendations on a NoSQL database to use with clojure? I am >> experimenting if it will fit my project better than a SQL db and have >> no real experience with them.

Re: Good choices for a NoSQL database with Clojure?

2011-03-26 Thread Base
Thanks All! I guess I didnt even realize that they were so different (though that certainly makes sense). Basically I want to design a system that will have maybe 30M (eventually) complex graphs of data that need to be searchable through either pattern matching or unification or ?... The pattern

Re: Good choices for a NoSQL database with Clojure?

2011-03-26 Thread Michael Ossareh
On Sat, Mar 26, 2011 at 13:12, Base wrote: > Thanks All! I guess I didnt even realize that they were so different > (though that certainly makes sense). > > Basically I want to design a system that will have maybe 30M > (eventually) complex graphs of data that need to be searchable through > eit

Re: Noob Question - Clojure number rounding

2011-03-26 Thread .Bill Smith
I think that is what Brenton posted on Mar 23. -- 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 u

Re: Good choices for a NoSQL database with Clojure?

2011-03-26 Thread Sean Allen
On Sat, Mar 26, 2011 at 4:12 PM, Base wrote: > Thanks All!  I guess I didnt even realize that they were so different > (though that certainly makes sense). > > Basically I want to design a system that will have maybe 30M > (eventually) complex graphs of data that need to be searchable through > ei

Announcement: flutter - hiccup-based form field generation

2011-03-26 Thread Joost
I'm currently working on a library to provide a consistent and extensible method for generating form fields, based on hiccup. The code is at github: https://github.com/joodie/flutter The README should give you a decent indication of what I'm aiming for. In any case, this library will NOT provide

Re: Good choices for a NoSQL database with Clojure?

2011-03-26 Thread Wilson MacGyver
Since you want a graph db with search, and you want to use it with clojure which means at least a decent java API. I recommend you check out http://neo4j.org/ It's a graph db with search ability, and has a very good java API. -- You received this message because you are subscribed to the Goog

Re: Good choices for a NoSQL database with Clojure?

2011-03-26 Thread Benny Tsai
A Clojure wrapper for neo4j was recently posted: https://github.com/wagjo/borneo There's also Jiraph, another embedded graph database for Clojure: https://github.com/ninjudd/jiraph -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group

Re: A newbie's summary - what worked, what didn't

2011-03-26 Thread ultranewb
On Mar 27, 12:35 am, Mark Engelberg wrote: > Type some Clojure code into the file you created.  Save periodically > with "Ctrl-x Ctrl-s".  When you want to try out your code, type > "Ctrl-c ctrl-k" and all your code will be evaluated and those > definitions will now be available for interactive us

Re: Jesus, how the heck to do anything?

2011-03-26 Thread ultranewb
On Mar 27, 12:16 am, Preecha P wrote: > I think you should take a look at clojure box again. You could split > the windows and have both code/repl open at the same times. Doesn't work for me. See this thread: http://groups.google.com/group/clojure/browse_thread/thread/3c61be467d783415 -- You r

Re: A newbie's summary - what worked, what didn't

2011-03-26 Thread Mark Engelberg
On Sat, Mar 26, 2011 at 4:29 PM, ultranewb wrote: > On Mar 27, 12:35 am, Mark Engelberg wrote: >> Type some Clojure code into the file you created.  Save periodically >> with "Ctrl-x Ctrl-s".  When you want to try out your code, type >> "Ctrl-c ctrl-k" and all your code will be evaluated and thos

Re: A newbie's summary - what worked, what didn't

2011-03-26 Thread Daniel Bell
I'm sure you're sick of how-to's by now (I was), but I took the trouble to write down EXACTLY what I did for an Ubuntu/emacs/swank/ SLIME/leiningen set-up. On Mar 26, 5:40 pm, Mark Engelberg wrote: > On Sat, Mar 26, 2011 at 4:29 PM, ultranewb wrote: > > On Mar 27, 12:35 am, Mark Engelberg wrote

Re: Emacs with Lisp and Clojure.

2011-03-26 Thread Daniel Bell
http://thtatithticth.blogspot.com/2011/02/obligatory-development-environment-post.html On Mar 24, 11:31 am, MarisO wrote: > swank-clojure is deprecated, don't use it.  Instead start swank from > leiningen. > > I found these instructions how to install clojure support in > emacshttp://riddell.us/

Re: Good choices for a NoSQL database with Clojure?

2011-03-26 Thread Base
Thank you all so much (and michaelyou rock!!) I will give Riak a shot. Thanks again. On Mar 26, 5:55 pm, Benny Tsai wrote: > A Clojure wrapper for neo4j was recently > posted:https://github.com/wagjo/borneo > > There's also Jiraph, another embedded graph database for > Clojure:https://gi

Re: A newbie's summary - what worked, what didn't

2011-03-26 Thread ultranewb
On Mar 27, 6:40 am, Mark Engelberg wrote: > Make sure the pane with your code is the active pane when you type > Ctrl-c Ctrl-k.  It won't work if the focus is on the REPL. Nope, it doesn't work, no matter where the focus is. -- You received this message because you are subscribed to the Google