By the way, i figured performance issue (there was a prn call for each
command which significantly slowed everything down, heh).
Now, numbers are close to Redis, except for lrange for big lists and I
havent' tested zsets yet. Need to gain more experience in jvm tweaking
and data structure optimiz
Greetings, all.
Clojure newb here. Life's more difficult because I have to deal with CLR
3.5.
I'm going through the resources I can find. And I'm totally typing this in
off the
top of my head, even though I know it's evil. I apologize for that. I think
the gist
gets across, though.
One's a bl
the 2 previous responses answered your question perfectly ...I'm just a
bit amazed that you would go away and write clojure code to consume JSON
and all that, without realising that data-structures in Clojure are
immutable! I think we can all agree they are *the* cornerstone of
Clojure. It is
Cmd/Ctrl means either the Cmd key (which is on macs) or the Ctrl key on
windows/linux. So if it says Cmd/Ctrl + d that would mean just ctrl + d.
Cheers,
Chris.
On Wed, Sep 26, 2012 at 5:01 PM, humblepie wrote:
> For the life of me I can figure out the key binding for the Cmd key. Can
> someone
Couple of initial things, Clojure has immutable data structures so
when you call for example 'assoc' it will return you a new map with
the new values assoc'd. It will not mutate the original, so:
(let [foo {}]
(assoc foo :a 1)
(assoc foo :b 2)
foo)
Will return {}. You need to do something l
larry google groups writes:
> We put some data in this atom. And then we output it. But I have had
> great difficulty getting anything to appear on the screen. Assuming
> the problem was with the fact the main sequence was lazy, I added in
> doall everywhere it made sense. But I still can not get
I would like 2 types of advice:
1.) an answer to this specific question
2.) advice on how one is suppose to debug mysteries likes this
I have a simple web app that serves some data (hopefully in JSON
format, but at the moment I will accept anything at all). The app uses
Ring and Moustache and ou
Thanks for mentioning doto--hadn't seen that before. Particularly, I think
some of my unit tests can be made significantly more readable with that.
Wes
On Thu, Sep 27, 2012 at 11:40 AM, Russell Whitaker <
russell.whita...@gmail.com> wrote:
> On Thu, Sep 27, 2012 at 8:26 AM, arekanderu wrote:
>
I'm reading _The Joy of Clojure_ right now, and they touch on it,
which is nice coming from Scheme/Racket.
On Thu, Sep 27, 2012 at 10:40 AM, Russell Whitaker
wrote:
> On Thu, Sep 27, 2012 at 8:26 AM, arekanderu wrote:
>> Thank you Meikel for your so helpful replies.
>>
>
> Thanks also from a lur
On Thu, Sep 27, 2012 at 8:26 AM, arekanderu wrote:
> Thank you Meikel for your so helpful replies.
>
Thanks also from a lurker, to whom these facts were a useful surprise:
I'd wondered
the same myself.
Cheers, R
>
> On Thursday, September 27, 2012 4:19:44 PM UTC+3, Meikel Brandmeyer
> (kotarak)
Thank you Meikel for your so helpful replies.
On Thursday, September 27, 2012 4:19:44 PM UTC+3, Meikel Brandmeyer
(kotarak) wrote:
>
> Hi,
>
> Am Donnerstag, 27. September 2012 12:16:41 UTC+2 schrieb arekanderu:
>
> I am new to clojure and I have two questions about do and the way it
>> should b
Thanks Stuart - especially @namespaces is very helpful for understanding more
about the resolution process.
On Sep 26, 2012, at 12:00 PM, Stuart Sierra wrote:
> Some of this information exists in the CLJS compiler, although it's not
> documented.
>
> For example, the cljs.analyzer namespace
When one needs to get clojure data passed around over some string carrying
pipe, one would need to override the print-dup/print-method methods for
non-roundtrippable objects like java.io.File. This modifies the public and
functionally global namespace, which is not good practice. A recommended
Same goes for ICFP:
http://icfpconference.org/icfp2012/accepted.html
On Thu, Sep 27, 2012 at 1:05 AM, Jianshi Huang wrote:
> Just curious, why there are no Clojure speakers and papers?
>
> I think projects like cascalog, clojure.logic and light table are
> brilliant showcases for Lisp. The light
Hi Gregorious,
I will show you the track that i'm followin to learn Clojure. I'm a
programmer since 99, so maybe this does not apply for you, but can be a
good reference:
1- http://blackstag.com/blog.posting?id=5 (for me was a good starting point)
2 - http://java.ociweb.com/mark/clojure/article
You have several options here:
1) Agents
2) Something like actors (my implementation is here
https://github.com/halgari/microactors/blob/master/src/microactors/core.clj
)
4) Dataflow using agents (or fork/join perhaps)
3) CPS (as mentioned)
Perhaps a bit more explanation of what you're trying to
Hi,
Am Donnerstag, 27. September 2012 12:16:41 UTC+2 schrieb arekanderu:
I am new to clojure and I have two questions about do and the way it should
> be used.
>
> *Question 1: Which of the following two functions is more idiomatic and
> why? Both functions produce the same result.*
>
>
> (def
On 26/09/2012 20:04, Jim - FooBar(); wrote:
On 26/09/12 17:10, Ian wrote:
If you want to start with a functional language, then I would start
with Erlang or Haskell, rather than Closure.
Closure is a great language, but it runs on the Java VM, and you are
expected to know and understand Java
For the life of me I can figure out the key binding for the Cmd key. Can
someone help?
On Monday, July 9, 2012 6:27:26 PM UTC-7, Chris Granger wrote:
>
> Hey folks,
>
> In case you missed it via other channels, the Light Table Playground
> can now hook into your own projects!
>
> http://www.ch
1. Yes , there is no language that is harder to learn than any other.
Clojure happens to be especially newbie friendly.
2. Start with getting yourself familiar with the clojure development
environment. These days the best options are Emacs+Nrepl or Eclipse
+CounterClockwise. When it is up download
Hello all,
I am new to clojure and I have two questions about do and the way it should
be used.
*Question 1: Which of the following two functions is more idiomatic and
why? Both functions produce the same result.*
(defn my-fn [java-object]
(. java-object firstFunc)
(. java-object secondFu
Thanks!
Looks like subvec is the best one for the kind of task (i.e. when
preserving element order matters) - if the sequences are finite, non-lazy
collections - e.g. lists or vectors.
среда, 26 сентября 2012 г., 15:16:49 UTC+4 пользователь Niels van Klaveren
написал:
>
> There's several differ
Solved. Thanks ^o^
--
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,
I agree greg r's approach, tooling is very important when starting,
racket comes ready to roll.
On 27/09/12 06:59, greg r wrote:
I would go with the book "Simply Scheme, Introducing Computer Science"
by Harvey and Wright.
Install the Racket system on your computer, and have at it.
http://ra
Op woensdag 26 september 2012 22:21:26 UTC+2 schreef David Nolen het
volgende:
>
> On Wed, Sep 26, 2012 at 8:20 AM, Reinout Stevens
>
> > wrote:
>
>> Hi,
>>
>>
>> I'm the author of a DSL that allows reasoning over paths throughout
>> graphs using core.logic ( https://github.com/ReinoutStevens
Depending of the code they have to write, you can walk their code at
compile time and transform it to
monadic normal form or CPS style, which would allow to do what you want.
I would tend to think that with a lot of threads you will win with
closures and not native threads.
And would only a few th
Thanks for the support and especially the examples. I will be back when I
bump into the next level of complexity ;-)
On Monday, 24 September 2012 12:04:42 UTC+2, Mond Ray wrote:
>
> I am playing around with maps and using wish lists as a learning tool. I
> have a list of items in wish lists lik
27 matches
Mail list logo