Re: Faster JSON library

2011-10-07 Thread Chas Emerick
Clutch was mentioned a couple of times, so I figured I'd chime in. :-) As for why clutch uses c.c.json — I don't think there's any particular reason. Tunde chose it before I got involved, but I'm sure I probably would have done the same thing, mostly because JSON en/decoding speed isn't

does clojurescript implement: list?

2011-10-07 Thread Dave Sann
It seems not. I rummaged through the source and bootstrap.js and it does not seem to exist. Dave -- 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

Re: Faster JSON library

2011-10-07 Thread Dave Sann
There was no particular reason to mention clutch. It was just the example that seemed to be in the discussion. Dave -- 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

Re: Faster JSON library

2011-10-07 Thread Chas Emerick
Sure, I wasn't attempting to be defensive or whatever. Just thought the perspective might be worthwhile. - Chas On Oct 7, 2011, at 12:55 AM, Dave Sann wrote: There was no particular reason to mention clutch. It was just the example that seemed to be in the discussion. Dave -- You

Re: The Website / Wikispaces

2011-10-07 Thread Bobby Eickhoff
Yes, and I also frequently get the Wikispaces homepage after hitting the browser's back button (while surfing through the pages at clojure.org). -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Suggestion needed for namespace management in modular clojure app

2011-10-07 Thread Vivek Khurana
Hi! I am working on a clojure app which needs to be modular. The module need to be pluggable. While I have figure out the pluggable part, I am facing issues with managing namespaces. I would prefer to have a modules directory where each module will create a sub directory and all files in the

Re: Reuse of generic Clojure/ClojureScript code?

2011-10-07 Thread Alen Ribic
Thanks Dave for sharing you current strategy for reusing generic Clojure/ClojureScript code. Have a look at the following dev thread where some ideas have been shared and feel free to comment: http://groups.google.com/group/clojure-dev/browse_thread/thread/831b74363da10187/3403e5ccbc488bc3 I

Re: clojure.core.logic.core/match usage

2011-10-07 Thread Sunil S Nandihalli
Thanks David for fixing this so fast. It works very nicely... Sorry I couldn't reply sooner. Sunil. On Thu, Oct 6, 2011 at 8:15 AM, David Nolen dnolen.li...@gmail.com wrote: This should be fixed, I released 0.2.0-alpha4. Feedback appreciated. David. On Mon, Oct 3, 2011 at 6:27 AM, Sunil S

Re: clojure.core.logic.core/match usage

2011-10-07 Thread David Nolen
Turns out there was another edge case that I missed around :only which I've since fixed in master. Once I resolve MATCH-26 I'll cut another alpha release. David On Fri, Oct 7, 2011 at 11:55 AM, Sunil S Nandihalli sunil.nandiha...@gmail.com wrote: Thanks David for fixing this so fast. It works

Re: The Website / Wikispaces

2011-10-07 Thread Sergey Didenko
Me too. -- 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 unsubscribe from this group, send email

Re: Faster JSON library

2011-10-07 Thread kovas boguta
My 2 cents: 1. JSON transformation is of fundamental importance to many Clojure applications. 2. Having the standard solution be blown away by a factor of 140x for the sake of purity is not pragmatic. If the user experience with contrib is to use it, realize its not ready for prime time, and

Re: Faster JSON library

2011-10-07 Thread Lars Nilsson
Trying to be a little bit constructive here, in case I come across as complaining, I took the source for c.d.json and put it into a leiningen project, enabled warn on reflection, and found that several cases of (... (let [c (char i] ... (= c \x) ...) results in Clojure deciding it needs to perform

Re: Faster JSON library

2011-10-07 Thread Stuart Halloway
Trying to be a little bit constructive here, in case I come across as complaining, I took the source for c.d.json and put it into a leiningen project, enabled warn on reflection, and found that several cases of (... (let [c (char i] ... (= c \x) ...) results in Clojure deciding it needs to

Re: Faster JSON library

2011-10-07 Thread Sean Corfield
That would be http://dev.clojure.org/jira/browse/DJSON-1 which I opened at the end of July... On Fri, Oct 7, 2011 at 11:10 AM, Lars Nilsson chamael...@gmail.com wrote: Trying to be a little bit constructive here, in case I come across as complaining, I took the source for c.d.json and put it

Re: Faster JSON library

2011-10-07 Thread Tal Liron
As long as we're fixing d.c.json... it would be nice to add support for encoding sequences and maps. (I know, I should open a bug) On 10/07/2011 02:04 PM, Sean Corfield wrote: That would be http://dev.clojure.org/jira/browse/DJSON-1 which I opened at

Re: Faster JSON library

2011-10-07 Thread Lars Nilsson
I get the following, trying to follow that link. Login Required You are not logged in. You cannot view this URL as a guest. You must log in or sign up for an account . If you think this message is wrong, please consult your administrators about getting the necessary permissions. Lars Nilsson On

Re: Faster JSON library

2011-10-07 Thread Stuart Halloway
Trying to be a little bit constructive here, in case I come across as complaining, I took the source for c.d.json and put it into a leiningen project, enabled warn on reflection, and found that several cases of (... (let [c (char i] ... (= c \x) ...) results in Clojure deciding it needs to

How to use realized? on a lazy sequence?

2011-10-07 Thread George Kangas
Here's a REPL session, wherein I try to use realized? on a lazy-seq. Clojure 1.3.0 Define the lazy-seq: user= (def naturals (iterate inc 0)) #'user/naturals Force realization of the first 1 + 123456 elements: user= (time (nth naturals 123456)) Elapsed time: 481.349 msecs 123456

Re: Faster JSON library

2011-10-07 Thread Kevin Downey
seems like that could be added to Intrinsics.java On Fri, Oct 7, 2011 at 1:20 PM, Stuart Halloway stuart.hallo...@gmail.com wrote: Trying to be a little bit constructive here, in case I come across as complaining, I took the source for c.d.json and put it into a leiningen project, enabled warn

Re: How to use realized? on a lazy sequence?

2011-10-07 Thread Tassilo Horn
George Kangas gwkan...@gmail.com writes: Now I try to use realized? on 123456th element: user= (realized? (nth naturals 123456)) ClassCastException java.lang.Long cannot be cast to clojure.lang.IPending clojure.core/realized? (core.clj:6505) Hm, that's strange indeed. I also get

Re: How to use realized? on a lazy sequence?

2011-10-07 Thread Alan Malloy
Can't you write that function yourself? (defn realized-length [xs] (loop [n 0 xs xs] (if (realized? xs) (recur (inc n) (rest xs)) n))) drop returns a new lazy sequence, with no realized elements, so naturally you can't ask if the sequence under it is realized. If you want to

Re: clojure.core.logic.core/match usage

2011-10-07 Thread Sunil S Nandihalli
Thanks David, Although not related to core.match, I was playing with your core.logic, I found that there was no condi (there were only conde condu and conda) .. Is it just left as a future thing? Sunil. On Fri, Oct 7, 2011 at 9:34 PM, David Nolen dnolen.li...@gmail.com wrote: Turns out there

Re: How to use realized? on a lazy sequence?

2011-10-07 Thread George Kangas
On Oct 7, 5:02 pm, Alan Malloy a...@malloys.org wrote: Can't you write that function yourself? (defn realized-length [xs]   (loop [n 0 xs xs]     (if (realized? xs)       (recur (inc n) (rest xs))       n))) Thanks, Alan! drop returns a new lazy sequence, with no realized elements, I

Re: clojure.core.logic.core/match usage

2011-10-07 Thread Ambrose Bonnaire-Sergeant
Hi Sunil, core.logic's conde is condi, there is no equivilant to TRS's conde in core.logic. Thanks, Ambrose On Sat, Oct 8, 2011 at 10:08 AM, Sunil S Nandihalli sunil.nandiha...@gmail.com wrote: Thanks David, Although not related to core.match, I was playing with your core.logic, I found

Re: clojure.core.logic.core/match usage

2011-10-07 Thread David Nolen
There is no conde as defined in The Reasoned Schemer in core.logic. conde in core.logic is condi. David On Friday, October 7, 2011, Sunil S Nandihalli sunil.nandiha...@gmail.com wrote: Thanks David, Although not related to core.match, I was playing with your core.logic, I found that there was

Re: when does one prefix the symbolnames with '?' when used in core.logic goals..

2011-10-07 Thread Ambrose Bonnaire-Sergeant
Hi Sunil, For a more detailed tutorial on matche, search for matche on this page: https://github.com/frenchy64/Logic-Starter/wiki/Introduction-to-Logic-Programming-with-Clojure Thanks, Ambrose On Sat, Oct 8, 2011 at 10:20 AM, Sunil S Nandihalli sunil.nandiha...@gmail.com wrote: Hi, I was

error on compile

2011-10-07 Thread Vivek Khurana
Hi! When I try to compile a class from repl I am getting following error user= (compile 'xyz.modules.accounts.accounts) java.lang.ClassNotFoundException: clojure.contrib.json.Read_JSON_From (json.clj:167) I have tried searching the docs but I cant find clojure.contrib.json.Read_JSON_From

Re: error on compile

2011-10-07 Thread Sunil S Nandihalli
Without actually seeing the code, only guess I can make is that you are probably using vars with underscores in them. While I do not know for sure that it is not allowed, I do know that they are typically avoided. Usually, I think, something like read-json-from gets internaly converted to