On Sun, Oct 16, 2011 at 11:16 AM, Jestan Nirojan
wrote:
> Your solution worked, about 4x~5x improvement.
> Thanks a lot BG.
Glad that it worked for you, Jestan. Protocols are usually the right
approach for these kind of tasks.
Regards,
BG
--
Baishampayan Ghose
b.ghose at gmail.com
--
You rec
Your solution worked, about 4x~5x improvement.
Thanks a lot BG.
regards.
-Jestan Nirojan
On Oct 15, 2:10 pm, Baishampayan Ghose wrote:
> > I have a Java Map contains Map of Maps/List (JSON like map) and have
> > to convert to Clojure map (This happens at Java - Clojure Interop), So
> > I have
Ha, the argument order as written here was just off the top of my
head; when I look at where I actually use it, it's [test f value] like
Sean said, for use with partial.
That said, I like to-fix's brevity over using partial all the time.
Clojure makes it so easy to compose functions on the fly tha
Thru the Safari javascript console, inspecting the abc var yields an js-array
object.
(so looking at the "real rendered js-thing" ;-) )
-FS.
On Oct 15, 2011, at 6:05 PM, David Nolen wrote:
> The JavaScript console or the ClojureScript REPL? The ClojureScript REPL
> prints ClojureScript object
The JavaScript console or the ClojureScript REPL? The ClojureScript REPL
prints ClojureScript objects, not JavaScript objects.
David
On Sat, Oct 15, 2011 at 9:02 PM, Frank Siebenlist <
frank.siebenl...@gmail.com> wrote:
> Thanks for the quick reply, and yes that works!
>
> Still a bit puzzled wh
Thanks for the quick reply, and yes that works!
Still a bit puzzled why "sometimes" cljsc-vectors seem to be converted into
arrays as in the
(def abc ["jaja" "nee"]) example where I can see in the js-console that abc is
an array js-object…
---
Yes, the js config dict and array objects are use
Vectors are not JavaScript arrays. No need to use the js/Array constructor:
(array 1 2 3)
Should work fine. Given how often JS frameworks want to be fed nested
objects like this, a patch for
http://dev.clojure.org/jira/browse/CLJS-37would be nice.
David
On Sat, Oct 15, 2011 at 8:33 PM, Frank Si
I'm trying to "translate" some js-code into cljsc,
and the following is a snippet that does it almost verbatim to see if I can
make things work:
(def MyApp
(Ext.Application.
(make-js-map
{"name" "NotesApp"
"useLoadMask" true
"launch" (fn []
On Fri, Oct 14, 2011 at 11:21 AM, Stuart Sierra
wrote:
> I spent some time this morning on performance enhancements to
> clojure.data.json, including a fix for DJSON-1. I just pushed release
> 0.1.2 to Sonatype; it will reach Maven Central in a few hours.
I updated CongoMongo to depend on 0.1.2 -
Sorry, accidentally hit the send mail key combo! Here's the completed email...
On 15 Oct 2011, at 23:14, Rich Hickey wrote:
>
> Your last bit confuses me. You certainly are making something
> wonderful in, and for, Clojure with Overtone. I don't know where I
> said or implied anything about the d
On 15 Oct 2011, at 23:14, Rich Hickey wrote:
> Your last bit confuses me. You certainly are making something
> wonderful in, and for, Clojure with Overtone. I don't know where I
> said or implied anything about the discussions being only about making
> tools or solving hard problems.
My apologie
I've started work on a library for amqp messaging in
clojure: https://github.com/mrh0057/clj-amqp. The library matches pretty close
to the rabbitmq java library. I didn't port over the consume and wait
functionality from the rabbitmq library because I can't think of a use case for
clojure.
It's difficult to have a policy of "positive opinions only" without
engendering non-productive discussions about censorship etc.
The main message is one of consideration. You might have positive
opinions about say, music, and I might be interested in them, but our
discussing music here wouldn't be
Just a quick reminder - this is tomorrow.
Really looking forward to seeing some of you there - I'll be arriving @ 1000.
Thanks,
Ben
On Mon, Oct 10, 2011 at 9:44 PM, Ben Evans
wrote:
> Hi,
>
> There is an Incanter Hack Day taking place on Sunday at the Royal
> Festival Hall in London. We'll be
Devlin,
I totally agree with you :-) I read the core of the post in a similar fashion
and I respect and agree with the general notion. However, my perception of the
tone of the message was that it felt slightly 'anti-opinion' whereas I believe
that constructive positive opinion has an extremely
Aaron, I can't speak for Rich but I don't think I read the original post the
same way you did.
I think the big point being made (and one I agree with) is that we should try,
to the best of our ability, to keep our focus on the constructive. Diatribes
and/or opinion pieces are less constructive,
> In the original discussion in this list, a couple alternatives similar
> to the following were suggested for property access to remain closer
> to the Clojure situation:
>
> (set! (.:id foo) "my-css-id"))
> (set! (.:fillStyle ctxt) "rgb(255, 150, 0)")
>
> Were those thrown out for being too ugly?
While I understand and respect the importance of focussing discussions to the
making of things, surely there is more to a community communication substrate
than this sole category of topic.
Do these guidelines, therefore, attempt preclude threads such as the discussion
on the possible impact o
The most common cause of issues like this is if you reload ns1 after
loading ns2, then T2 will be implementing an "old" version of pro-1,
while fun will be testing for satisfaction of the "current" version.
On Oct 15, 8:04 am, Eric in San Diego wrote:
> Hi all -
>
> I'm experiencing some unexpect
This is just a reminder. While in general our communication here is very good,
occasionally it goes astray.
These mailing lists are run by, and for, people who make things. Most messages
should have one of these forms:
I made something - here is my contribution
I am trying to use the thing some
Hi all -
I'm experiencing some unexpected behavior with protocols. Stripping
out extraneous details...
;
(ns my.ns1
...)
(defprotocol pro-1
...)
(deftype T1 [...]
pro-1
...)
(defn fun [p]
^{:pre [(satisfies? pro-1 p)
]
}
...)
Then in another file:
(
On Oct 14, 11:23 pm, Devin Walters wrote:
> Responding to an earlier point in this thread: Now is the time for breaking
> changes. ClojureScript is alpha. Use in production by enterprising folk
> should not be discouraged, but at the sa(m|n)e time, I don't believe there
> have been any mixed me
Stuart
On Sat, Oct 15, 2011 at 11:19, Bruce Durling wrote:
> Stuart,
>
> On Fri, Oct 14, 2011 at 19:21, Stuart Sierra
> wrote:
>> I spent some time this morning on performance enhancements to
>> clojure.data.json, including a fix for DJSON-1. I just pushed release
>> 0.1.2 to Sonatype; it will r
Stuart,
On Fri, Oct 14, 2011 at 19:21, Stuart Sierra
wrote:
> I spent some time this morning on performance enhancements to
> clojure.data.json, including a fix for DJSON-1. I just pushed release
> 0.1.2 to Sonatype; it will reach Maven Central in a few hours.
Still waiting for the propagation.
> I have a Java Map contains Map of Maps/List (JSON like map) and have
> to convert to Clojure map (This happens at Java - Clojure Interop), So
> I have written a converter function 'as-clj-map' by modifying the
> clojure walk functions, It works fine, but consume lot of cpu when the
> data structu
On Oct 15, 1:23 am, Sean Corfield wrote:
> On Sat, Oct 15, 2011 at 12:59 AM, Alan Malloy wrote:
> > As you notice lower, I like this argument-order so that I can chain
> > operations on values better
>
> Yes.
>
> > But, that map is handy, so we have (to-fix), which is basically a
> > partial sett
ok thanks
D
--
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 e
On Sat, Oct 15, 2011 at 12:59 AM, Alan Malloy wrote:
> As you notice lower, I like this argument-order so that I can chain
> operations on values better
Yes.
> But, that map is handy, so we have (to-fix), which is basically a
> partial setting all *but* the first arg (tying nicely into what you
Hi all,
I have a Java Map contains Map of Maps/List (JSON like map) and have
to convert to Clojure map (This happens at Java - Clojure Interop), So
I have written a converter function 'as-clj-map' by modifying the
clojure walk functions, It works fine, but consume lot of cpu when the
data structur
On Oct 14, 11:16 pm, Sean Corfield wrote:
> On Fri, Oct 14, 2011 at 5:50 PM, Alan Malloy wrote:
> > I really liked this one too, though my first draft of it was more like
> > (defn pipe [test f]
> > (fn [value]
> > (...)))
> ...
> > fix is basically your pipe, except it takes a series of test
On Thu, Oct 13, 2011 at 1:35 AM, Marko Kocić wrote:
> Looking at the log seems like MS Access doesn't support prepared statements.
Ah, so there was a path in c.c.sql that didn't use PreparedStatement
which meant it supported MS Access? (by accident, I'm sure :)
If someone with a Windows system c
31 matches
Mail list logo