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
read_json
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 anywh
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
You only use ? when dealing with the pattern matching sugar.
On Friday, October 7, 2011, Sunil S Nandihalli
wrote:
> Hi,
> I was looking through the core.logic readme file. I notice that the
var-names (symbols) are prefixed with '?' at some locations and they are not
at some other locations. Can
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
wrote:
> 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
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
> fo
On Oct 7, 5:02 pm, Alan Malloy 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 didn't
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 wrote:
> Turns out there was another edge case
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 w
George Kangas 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
user> (reali
seems like that could be added to Intrinsics.java
On Fri, Oct 7, 2011 at 1:20 PM, Stuart Halloway
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 on reflection, and
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"
12
> 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 t
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
On Fri, Oct 7, 2011 at 12:08 PM, Tal Liron wrote:
> (I know, I should open a bug)
http://dev.clojure.org/jira/browse/DJSON :)
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/
Railo Technologies, Inc. -- http://ww
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 the
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 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 pr
> 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 t
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
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 th
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
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 wor
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 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 Nandihalli <
> suni
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 have
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 modu
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 clojure@googlegroups
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 rec
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 ne
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 mode
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 top-mos
30 matches
Mail list logo