Re: Parse SQL with Clojure?

2012-05-10 Thread Zmitro Lapcjonak
On Friday, May 4, 2012 4:56:03 AM UTC+3, dirtyvagabond wrote: Anyone know of a Clojure library to parse SQL statements? If not, would it be sane to build one using parsec? if there is no Clojure lib, you always may use Java lib. i relatively successfully tried :

Re: Clojurescript One getting started problem

2012-05-10 Thread David Powell
What browser are you using? I don't think browser-repl works in IE at the moment. -- 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 moderated -

Re: Clojurescript One getting started problem

2012-05-10 Thread David Nolen
Hmm wasn't aware of that if true. Should definitely open up a ticket for that. On Thursday, May 10, 2012, David Powell wrote: What browser are you using? I don't think browser-repl works in IE at the moment. -- Dave -- You received this message because you are subscribed to the Google

Re: Reducers

2012-05-10 Thread nicolas.o...@gmail.com
I can describe the background to understand my last email. From the programming point of view, I have been told since yesterday that what I explained has already been explained better in Stream Fusion From Lists to Streams to Nothing at All from Coutts Leschinskiy and Stewart:

Some reflections about programming after Clojure exposure (yay - it rhymes!)

2012-05-10 Thread James
Hello group,- I've been getting into the Clojure / Lisp territory slowly for the past few months. When learning a new language, I get the most out of first comprehending the general design principles and philosophy, and then working down to concrete code. What's funny is that appreciating

Re: Some reflections about programming after Clojure exposure (yay - it rhymes!)

2012-05-10 Thread Herwig Hochleitner
Good article, thanks for sharing! An interesting angle to ponder is how Lisp and the Human Mind share linked lists as a basic data structure. Remember how you had memorized the ABC? FP taught me how you can also build other data structures out of linked lists, skip lists anyone? Now take a look

ClojureScript release 0.0-1211

2012-05-10 Thread Stuart Sierra
http://search.maven.org/#artifactdetails%7Corg.clojure%7Cclojurescript%7C0.0-1211%7Cjar Change list: http://build.clojure.org/job/clojurescript-release/11/ -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: Clojurescript One getting started problem

2012-05-10 Thread David Nolen
Good to hear. On Thursday, May 10, 2012, David Powell wrote: On Thu, May 10, 2012 at 11:44 AM, David Nolen dnolen.li...@gmail.comjavascript:_e({}, 'cvml', 'dnolen.li...@gmail.com'); wrote: Hmm wasn't aware of that if true. Should definitely open up a ticket for that. Hmm the latest

Getting started

2012-05-10 Thread Zeno
Hi, I have downloaded and unzipped Clojure 1.4.0 but when trying java -cp clojure-1.4.0.jar clojure.main as stated on the getting started page I get the following. D:\Profiles\rcarthur\My Documents\Clojure1_4\clojure-1.4.0java -cp clojure-1.4.0.jar clojure.main Exception in thread main

[ANN] clojure-script for NodeJS

2012-05-10 Thread Michael Bradley, Jr.
I'm looking for folks to help me kick the tires and push this project forward: https://github.com/michaelsbradleyjr/node-clojurescript http://search.npmjs.org/#/clojure-script -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group,

Re: Reducers

2012-05-10 Thread Nico Balestra
I'm with you Christian, maybe a code example would be very helpful. Thank you guys, Nico 2012/5/10 Christian Romney xmlb...@gmail.com I would be indebted to you if you could point me in the direction of the reading material necessary to follow this discussion. I'm afraid I'm currently out of

Clojure.java.jdbc alias

2012-05-10 Thread WoodHacker
I'm working with leiningen for the first time and trying to use clojure.java.jdbc. All the docs I see use 'sql' before the jdbc commands. How do I set up the sql symbol. Nothing I've tried seems to work. Bill -- You received this message because you are subscribed to the Google Groups Clojure

Re: [ANN] clojure-script for NodeJS

2012-05-10 Thread David Nolen
Looks neat. Any reason to call the module clojure-script instead of just clojurescript? David On Thu, May 10, 2012 at 2:38 AM, Michael Bradley, Jr. michaelsbradle...@gmail.com wrote: I'm looking for folks to help me kick the tires and push this project forward:

Re: [ANN] clojure-script for NodeJS

2012-05-10 Thread David Nolen
Just gave it a shot, works! Would be nice if it gave some feedback that it was compiling / recompiling. David On Thu, May 10, 2012 at 2:38 AM, Michael Bradley, Jr. michaelsbradle...@gmail.com wrote: I'm looking for folks to help me kick the tires and push this project forward:

Re: {ANN} Clojure-control 0.3.4 released

2012-05-10 Thread dennis zhuang
*A new release 0.3.5:* --Now you can run a task with user@host rather than a pre-defined cluster by: lein control run user@host task args *Upgrade:* lein plugin install control 0.3.5 2012/5/10 dennis zhuang killme2...@gmail.com Clojure-control: a clojure DSL for system admin and

Re: Clojure.java.jdbc alias

2012-05-10 Thread David Powell
If you are working from the repl, use: (require '[clojure.java.jdbc :as sql]) Or use a similar require declaration in your ns header. (ns example.whatever (:require [clojure.java.jdbc :as sql])) -- Dave -- You received this message because you are subscribed to the Google Groups

Re: [ANN] The Kiln, an Evaulation Strategy for Insanely Complex Functions

2012-05-10 Thread Marc Limotte
Hi Jeff, What do you think about a Map interface for this? I recently implemented something similar in a project of mine, which I called an 'evaluating-map'. It's not a Web project, but the pattern is a general one. In my case, a DSL for specifying a job to run. I want the DSL writer to have

Re: Getting started

2012-05-10 Thread Tom Maynard
On 05/10/2012 03:53 AM, Zeno wrote: trying java -cp clojure-1.4.0.jar clojure.main as stated You need to specify the full path to clojure.jar (probably ./clojure.jar, if you're in that directory). You could also put . in your classpath, but that's not recommended (can cause flakey

Re: Some reflections about programming after Clojure exposure (yay - it rhymes!)

2012-05-10 Thread James
Thanks for the feedback. An interesting angle to ponder is how Lisp and the Human Mind share linked lists as a basic data structure. Remember how you had memorized the ABC? That's true - even though my recollection of the alphabet is patchy, letters always occur in groupings. Specifically,

Re: [ANN] clojure-script for NodeJS

2012-05-10 Thread Michael Bradley, Jr.
Four reasons, all interrelated. Whether they're good reasons, I'm not 100% positive, but felt this was the way to go: *1.* The coffee-script package on npm is one of my favorites, and was the inspiration for my clojure-script package. Thus, I wanted the package names to resemble one another.

Re: [ANN] clojure-script for NodeJS

2012-05-10 Thread Michael Bradley, Jr.
Sure, maybe a spinner or something like that. However, many use cases would exclude displaying such an indicator, e.g. if you're sending the compiled text to stdout, running a .cljs script directly or some other script that uses Node's `require` to load a .cljs script, etc. That is, in those

Re: The Kiln, an Evaulation Strategy for Insanely Complex Functions

2012-05-10 Thread Paul deGrandis
Marc, Nicely done! I've done something similar before as well. This was basically my point earlier: Dispatch tables (and maps in general), unification, and closures seem to solve the same problem, are composable, don't introduce nouns/types/metaphors, are open for extension and closed for

Re: Reducers

2012-05-10 Thread Christian Romney
On Thursday, May 10, 2012 8:02:09 AM UTC-4, Nicolas Oury wrote: I can describe the background to understand my last email. Thank you very much for taking the time to post all of that–I've got some reading to do for sure. -- You received this message because you are subscribed to the

Re: Getting started

2012-05-10 Thread Chris McBride
Also you generally don't invoke the clojure jar directly. Instead have lein do that for you. http://www.unexpected-vortices.com/clojure/brief-beginners-guide/development-env.html#clojure-projects On Thursday, May 10, 2012 4:53:51 AM UTC-4, Zeno wrote: Hi, I have downloaded and unzipped

[ANN] Clojure/core Roadshow

2012-05-10 Thread Christopher Redinger
Clojure/core wants to take our training course on the road this summer! We are looking for the cities that are the most interested in learning more about Clojure so we can bring our training there. I've posted more details about the roadshow on our blog, at:

Re: {ANN} Clojure-control 0.3.4 released

2012-05-10 Thread Rostislav Svoboda
I took the steps from your README.md and it seems like something's missing :( see below Bost bost@bost-desktop:~/dev$ rm -rf mycontrol/ bost@bost-desktop:~/dev$ lein1 version Leiningen 1.7.1 on Java 1.7.0_04 Java HotSpot(TM) Client VM bost@bost-desktop:~/dev$ lein1 plugin install control 0.3.5

Partitioning a list when the result of a predicate becomes a certain value.

2012-05-10 Thread Ant
Hi all, I am battering my head against the following problem which I'm sure is straightforward if only I knew how. I want to partition the following list: '(aa123 x y z bb123 ccq23 3 yg) into the following: ((aa123 x y z) (bb123) (ccq23 3 yg)) The predicate is: #(re-matches #^(\w)\1.* %)

How do I modify the clojure.org website?

2012-05-10 Thread Brent Millare
I put an issue [clj-989] about an out of date link clojure. It doesn't seem like anyone payed any attention to it yet. Is there a way I can be more active in making these changes such as having permission to modify the website? -- You received this message because you are subscribed to the

Re: Partitioning a list when the result of a predicate becomes a certain value.

2012-05-10 Thread Ant
After posting, I had the idea of checking out the source for partition- by, and solved the problem: (defn partition-when Applies f to each value in coll, splitting it each time f returns the specified value. Returns a lazy seq of partitions. [f value coll] (lazy-seq (when-let [s

Re: Partitioning a list when the result of a predicate becomes a certain value.

2012-05-10 Thread Jack Moffitt
   (when-let [s (seq coll)]      (let [run (cons (first s) (take-while #(not= value (f %)) (next s)))]       (cons run (partition-when f value (seq (drop (count run) s      )    )  ) ) ... What test? (seq coll) is the test here. when-let (and if-let, etc) bind only when the right

Re: Partitioning a list when the result of a predicate becomes a certain value.

2012-05-10 Thread Softaddicts
(seq coll) is the test, if the collection is empty seq returns nil, hence nothing gets done in the (let ...) form. Luc After posting, I had the idea of checking out the source for partition- by, and solved the problem: (defn partition-when Applies f to each value in coll, splitting it

Re: Partitioning a list when the result of a predicate becomes a certain value.

2012-05-10 Thread Alan Malloy
https://github.com/flatland/useful/blob/develop/src/useful/seq.clj#L189 is a more general version of partition-by, which can easily handle your requirements. On May 10, 2:11 pm, Ant ant...@gmail.com wrote: Hi all, I am battering my head against the following problem which I'm sure is

Re: Partitioning a list when the result of a predicate becomes a certain value.

2012-05-10 Thread Alan Malloy
On May 10, 3:19 pm, Jack Moffitt j...@metajack.im wrote:    (when-let [s (seq coll)]      (let [run (cons (first s) (take-while #(not= value (f %)) (next s)))]       (cons run (partition-when f value (seq (drop (count run) s      )    )  ) ) ... What test? (seq coll) is

[ANN] clojure.java.jdbc 0.2.1 on Maven Central

2012-05-10 Thread Sean Corfield
A minor update that includes a performance tweak for large result sets (thank you Jürgen Hötzel) and a small API change - exposing do-prepared-return-keys - to make life easier for the Korma team. -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC.

Re: Reducers

2012-05-10 Thread Rich Hickey
IMO, Nicolas' material is a distraction in understanding reducers, except as historical background. The reducers library is a rejection/avoidance of the primacy of recursively/generatively defined data structures and the operations thereon. I recommend, rather than reading about stream fusion,

Re: Getting started

2012-05-10 Thread Rostislav Svoboda
On 10 May 2012 19:57, Chris McBride cmm7...@gmail.com wrote: Also you generally don't invoke the clojure jar directly. Instead have lein do that for you. http://www.unexpected-vortices.com/clojure/brief-beginners-guide/development-env.html#clojure-projects No, please stop. Zeno, you MUST get

Re: {ANN} Clojure-control 0.3.4 released

2012-05-10 Thread dennis zhuang
I am sorry, 0.3.5 will break the example with only :clients in cluster. I've push 0.3.6 to clojars, upgrade control by: lein plugin install control 0.3.6 Sorry for this issue,thanks. 2012/5/11 Rostislav Svoboda rostislav.svob...@gmail.com I took the steps from your README.md and it seems

Re: How do I modify the clojure.org website?

2012-05-10 Thread Alex Miller
I updated the link for you. On Thursday, May 10, 2012 5:03:26 PM UTC-5, Brent Millare wrote: I put an issue [clj-989] about an out of date link clojure. It doesn't seem like anyone payed any attention to it yet. Is there a way I can be more active in making these changes such as having

Re: Getting started

2012-05-10 Thread Sean Corfield
On Thu, May 10, 2012 at 4:56 PM, Rostislav Svoboda rostislav.svob...@gmail.com wrote: No, please stop. Zeno, you MUST get the java -cp clojure-1.4.0.jar clojure.main working! It is the very core the life and the universe. I'm sorry but that's a silly comment. Starting with Leiningen instead of