Re: Regarding Starting Clojure

2012-10-02 Thread nchurch
I put together the Getting Started confluence page. I'm sure it could still be improved, but adding further to it won't really fix the problems you've noticed, and that many other people have noted. It's still on a secondary site, and Confluence doesn't really give you a lot of design

Re: Regarding Starting Clojure

2012-10-02 Thread nchurch
To cite some concrete examples: Datomic 0 hits on Clojure.org Clojurescript 1 hit On Oct 1, 11:09 pm, nchurch nchubr...@gmail.com wrote: I put together the Getting Started confluence page.  I'm sure it could still be improved, but adding further to it won't really fix the problems you've

Re: Regarding Starting Clojure

2012-10-02 Thread nchurch
I should clarify that the issue with Clojure.org isn't really \design, per seit's the choice of what to present on what level. Scala gives you pointers for what you need to know, right away at the top: About Scala, Documentation, Code Examples, Software, Scala Developers. Whereas Clojure has

Re: Clojure web framework

2012-10-02 Thread Yakovlev Roman
Ok that's good idea really. As i can see you just use ring compojure korma for mysql and postgresql for pg database. As for me i use for my first project this config (defproject testpro 0.1.0-SNAPSHOT :plugins [[lein-catnip 0.4.1]] :description FIXME: write description :url

{:new ClojureScript One TodoMVC }

2012-10-02 Thread Pierre-Henry Perret
The best way to learn is to practice ! So I have choosed to make the *TodoMVC* template (see [0]) application with *ClojureScript One* and *Enfocus*. ( see [1] for running app ) What I could say now, is that CjOne is a little hard to embrace, but when it's done , this is a real pleasure to

Re: Regarding Starting Clojure

2012-10-02 Thread Yakovlev Roman
You can make your site with many examples and good documentation and maybe it will be at first place at google if it will have great value. A lot of people here will agree with that. Site could be better place to get started ! but old site still there. As far as i know there is a company

Re: error when using pomegranate to load datomic and cemerick.piggieback

2012-10-02 Thread Chas Emerick
(The leiningen-core dep caught my eye as being unnecessary here; all you need to use pomegranate is [com.cemerick/pomegranate 0.0.13]. Although, that doesn't change the outcome in this case.) You're quite right, loading datomic dynamically with piggieback already in place (either from the

Re: Transforming an ugly nested loop into clojure code

2012-10-02 Thread Stathis Sideris
I'm not sure how/if the following would fit your use case exactly, but you might want to explore the get-in function (and assoc-in, the clojure.walk namespace and the zippers functionality. They all make dealing with such deeply nested structures easier. Stathis On Monday, 1 October 2012

Re: Transforming an ugly nested loop into clojure code

2012-10-02 Thread arekanderu
Thank you for your input Stathis, I will have a look at them as well. On Sunday, September 30, 2012 10:59:05 PM UTC+3, arekanderu wrote: Hello, I am trying to port an ugly piece of code from Ruby to clojure. So far I have only ported it to clojure by keeping the same way it was written in

Re: Regarding Starting Clojure

2012-10-02 Thread nchurch
Clojuredocs is already out there and quite good (though not modified much as of late). However, it doesn't show up very high on Google (not even on the first page for Clojure). There's also Learn Clojure, which has a clean design but hasn't been updated in a while (and also doesn't seem to have

strange pattern to implement comp, juxt and partial

2012-10-02 Thread Balint Erdi
Hey, When browsing through clojure.core I noticed something peculiar in the implementation of comp, juxt and partial. All three share the same implementation pattern. They define separate methods for the arity of 0,1,2,3 and any. For example in juxt: (defn juxt (…) ([f g] (fn

Re: strange pattern to implement comp, juxt and partial

2012-10-02 Thread Herwig Hochleitner
That is because dispatch on argument count is fast, while apply is slow. Especially so since it might have to create an intermediate seq. It's a performance optimization. kind regards -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this

Re: strange pattern to implement comp, juxt and partial

2012-10-02 Thread Balint Erdi
Makes sense but why don't we have it in all possible places then? Thank you. On Tuesday, October 2, 2012 9:55:42 PM UTC+2, Herwig Hochleitner wrote: That is because dispatch on argument count is fast, while apply is slow. Especially so since it might have to create an intermediate seq. It's

Re: strange pattern to implement comp, juxt and partial

2012-10-02 Thread Tamreen Khan
My guess is that it's useful in the core functions which are more heavily used. Otherwise you're getting into premature optimization if you use it in any of your own functions without profiling it first. On Tue, Oct 2, 2012 at 4:18 PM, Balint Erdi balint.e...@gmail.com wrote: Makes sense but why

performance in versions = 1.4.0

2012-10-02 Thread Karsten Schmidt
Today, I decided to finally switch one of my projects from Clojure 1.3.0 to 1.4.0 (and test driving the 1.5.0 snapshot) but quickly found some discouraging effects in terms of performance. The project involves a lot of geometry and I'm using vanilla vectors for all vector math. So far I've *not*

A Clojurescript Domina question.

2012-10-02 Thread mmwaikar
Hi, I am trying to do something with Clojurescript using Domina etc. Here is my project.clj - (defproject maze 0.1.0-SNAPSHOT :description FIXME: write description :url http://example.com/FIXME; :license {:name Eclipse Public License :url

[ANN] Friend 0.1.2 released (web authentication/authorization library)

2012-10-02 Thread Chas Emerick
I released [com.cemerick/friend 0.1.2] to Clojars this afternoon. Friend is an extensible authentication and authorization library for Clojure Ring web applications and services: https://github.com/cemerick/friend This release fixes a couple of serious bugs with Friend's handling of Ring

Re: performance in versions = 1.4.0

2012-10-02 Thread Andy Fingerhut
I'm not aware of what changes made in 1.4 could cause this performance degradation. Out of curiosity, are you willing to share your code for performance profiling of future Clojure versions? i.e. is it open source already and so that wouldn't be a problem, or is it closed source? Have you

Re: Which power function is right for Clojure?

2012-10-02 Thread Grant Rettke
On Mon, Oct 1, 2012 at 7:13 PM, Andy Fingerhut andy.finger...@gmail.com wrote: It depends. Are you trying to optimize for speed? Teaching a particular style of programming? Code size? Range of input values handled correctly? Time to write it? Something else? The most Clojury way of

Re: Which power function is right for Clojure?

2012-10-02 Thread Grant Rettke
On Mon, Oct 1, 2012 at 8:29 PM, Mark Engelberg mark.engelb...@gmail.com wrote: On Mon, Oct 1, 2012 at 4:45 PM, Grant Rettke gret...@acm.org wrote: This naming of a helper function to loop is non-idiomatic, because there is a built-in construct loop, which works somewhat like named let in

Re: performance in versions = 1.4.0

2012-10-02 Thread Karsten Schmidt
Hi Andy, the timings were collected with two litte macros I've written and which are available here: http://hg.postspectacular.com/macrochrono/src/tip/src/macrochrono.clj The actual project in question will be released in the next few months, once things are more stable. I haven't run a profiler

Re: performance in versions = 1.4.0

2012-10-02 Thread Ben Wolfson
time-action seems to assume that the elements of a vector literal are evaluated sequentially in order of index---is that guaranteed? On Tue, Oct 2, 2012 at 6:35 PM, Karsten Schmidt toxmeis...@gmail.com wrote: Hi Andy, the timings were collected with two litte macros I've written and which are

Re: performance in versions = 1.4.0

2012-10-02 Thread Karsten Schmidt
I'd have thought that vectors are eval'd sequentially, are they not? FWIW I get the same kind of slowdown measurement between versions when just employing the built-in time macro... will report back after the profiling session, but it all seems v. odd! On 3 October 2012 02:36, Ben Wolfson

Re: Clojure web framework

2012-10-02 Thread Jim Crossley
Hi Simone, Simone Mosciatti mweb@gmail.com writes: Immutant ( http://immutant.org/ ) IMO is moving in a great direction, if I have understand is wrapping several libraries in just one enviroment... Since you brought it up, I'd like to clarify terminology a bit in case anyone thinks

Meaning of =

2012-10-02 Thread Larry Travis
What is the rationale for this? user (= [1 2 3 4] '(1 2 3 4)) true I was quite surprised when this turned out to be the cause of a bug in a function I am constructing. Vectors and lists differ so substantially in their implementation and in their behavior that a vector and a list should

Re: error when using pomegranate to load datomic and cemerick.piggieback

2012-10-02 Thread Brent Millare
(My library dj relies on other stuff in leiningen-core dependency but you're right, for this example, I was lazy and didn't simplify the breaking case) Hmm well my library dj kinda relies on the whole dynamic features of pomegranate. Any pointers to literature on those alternative routes?

Re: strange pattern to implement comp, juxt and partial

2012-10-02 Thread Balint Erdi
Sorry, I was not precise enough. I meant why is this pattern not used in all of *clojure.core*. Every function that takes a variable number of arguments could use it but I only saw it in the mentioned cases. On Tuesday, October 2, 2012 10:29:15 PM UTC+2, Tamreen Khan (Scriptor) wrote: My