Re: I tripped out

2013-05-07 Thread Gunnar Völkel
You might be interested in https://github.com/guv/clojure.options/ -- -- 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 wit

Re: Parallel code execution in ClojureScript?

2013-05-07 Thread David Nolen
It can probably be done with HTML 5 Workers in browsers that support it, On Tuesday, May 7, 2013, Ghassan Ayesh wrote: > Hi: > > In Javascript language, and while the language is inherently functional, > Javascript's *implementation* until now, does not support parallel code > execution against a

Re: Import java classes in clojure

2013-05-07 Thread John D. Hume
Did you try the downloads link here? http://openrules.com/jsr331/ On May 6, 2013 12:10 AM, "Caocoa" wrote: > Well, so I just tried the following commands: > >> user=> (ns mx.clojure.contemporary.pitch-centricity-and-symmetry >> #_=> (:import [jm.music.data >> #_=> Score >> #_=

Re: Accessing JSON Array data in Clojure

2013-05-07 Thread greg r
You might want to check out "Clojure Data Analysis Handbook" by Eric Rochester. There is an example using org.clojure/data.json and Incanter to read JSON format into an Incanter dataset. You might find other recipes in the book useful as well: http://www.packtpub.com/clojure-data-analysis-coo

Re: Separating Out .cljs Content

2013-05-07 Thread Timothy Washington
That fixed one of the dependency problems. But now there are a bunch of other dependency errors. AndI'm not sure if I have to independently include all the library generated .js files. It looks like you have no choice but to glom your .js code into main.js. Hmmm. 1. Uncaught ReferenceError: go

Parallel code execution in ClojureScript?

2013-05-07 Thread Ghassan Ayesh
Hi: In Javascript language, and while the language is inherently functional, Javascript's *implementation* until now, does not support parallel code execution against available CPU cores, unlike Erlang for example or Clojure on JVM, so I am thinking that the actor pattern in Clojure when target

Re: Separating Out .cljs Content

2013-05-07 Thread Jonathan Fischer Friberg
You have to import the google closure library when compiling without optimisation. Given your build, probably something like this: Just make sure the base.js file is actually there. Jonathan On Tue, May 7, 2013 at 10:54 PM, Timothy Washington wrote: > That's an interesting tweak. Indeed, I

Re: Accessing JSON Array data in Clojure

2013-05-07 Thread Hawkeye02
Michael, Thank you for the response and references. I will try your suggestions and get back to you. My terminology isn't the best, thanks for deciphering. On Tuesday, May 7, 2013 11:27:01 AM UTC-5, Michael Klishin wrote: > > > 2013/5/7 Hawkeye02 > > >> I can't get the data from inside the

Re: Separating Out .cljs Content

2013-05-07 Thread Timothy Washington
That's an interesting tweak. Indeed, I no longer have any of my contents in main.js. But I also get a JS error in my browser. goog.provide('edgar'); Uncaught ReferenceError: goog is not defined goog.require('cljs.core'); goog.require('shoreleave.remotes.http_rpc'); goog.require('clojure.browser.

Re: Separating Out .cljs Content

2013-05-07 Thread Jonathan Fischer Friberg
*DON'T DO IT* I just realised, if the :optimizations missing triggers this behaviour, it should be possible to set it to nil, and it was! So try ':optimizations nil' in your build. Jonathan On Tue, May 7, 2013 at 10:20 PM, Jonathan Fischer Friberg < odysso...@gmail.com> wrote: > I tried it, a

Re: Separating Out .cljs Content

2013-05-07 Thread Jonathan Fischer Friberg
I tried it, and I think removing the :optimizations flag will do what you want. The problem is that cljsbuild sets it to :whitespace by default, so even if you remove it from your build it's still there. To circumvent this, I opened lein-cljsbuild-0.3.0.jar in ~/.m2/repository/lein-cljsbuild/lein-

Re: I tripped out

2013-05-07 Thread AtKaaZ
yes, thank you, that is what I was referring to + the :or and :as like: (defn somefn [req1 req2 ;required params & { :keys [a b c d e] ;optional params :or {a 1 ;optional params with preset default values other than the nil default ; b takes nil if not specified on c

Re: Separating Out .cljs Content

2013-05-07 Thread Timothy Washington
Hey Jonathan, Saw that flag, and it's useful. But what I want to do is separate my main.js from all my other.js files. I've a more detailed description abouve. Maybe I just can't do this, but I thought I'd ask around. Tim On Tue, May 7, 2013 at 4:03 PM, Jonathan Fischer Friberg < odysso...@gma

Re: Separating Out .cljs Content

2013-05-07 Thread Timothy Washington
In my project.clj file (fig.1), cljsbuild config just points to the parent source-path. Now, I plan to have *file1.cljs* in a different directory than *file2.cljs*. But what I'm finding in this case, is that compiled *file1js*is getting it's calls glommed into *main.js*. So for example in fig.1 & 2

Re: Separating Out .cljs Content

2013-05-07 Thread Jonathan Fischer Friberg
>From the sample.project.clj: ; Determines whether the temporary JavaScript files will be left in place between ; automatic builds. Leaving them in place speeds up compilation because things can ; be built incrementally. This probably shouldn't be disabled except for troubleshooting. ; Defaults to

Re: [ANN] java.jdbc 0.3.0-alpha2

2013-05-07 Thread Sean Corfield
On Tue, May 7, 2013 at 8:08 AM, Thomas Heller wrote: > 1) Why the keyword args to most functions? Because they're optional for most people. > entities/identifiers in > particular. My SQL Tables have columns like "created_at", "created_by", > since SQL doesnt like "-" as separators, I still want

Re: Separating Out .cljs Content

2013-05-07 Thread David Nolen
This is why I suggested organizing the project around directories and specifying different groups of them with different lein-cljsbuild groups. On Tue, May 7, 2013 at 12:24 PM, Jonathan Fischer Friberg < odysso...@gmail.com> wrote: > I haven't used clojurescript in a while, but if I recall corre

Re: Accessing JSON Array data in Clojure

2013-05-07 Thread Michael Klishin
2013/5/7 Hawkeye02 > I can't get the data from inside the JSON arrays from Clojure. > Specifically, I looking to get the data from the "currently" array taken > from this Dark Sky data: Sorry but your JSON document example does not have arrays. Do you mean nested objects (maps)? Parsed JSON d

Re: Separating Out .cljs Content

2013-05-07 Thread Jonathan Fischer Friberg
I haven't used clojurescript in a while, but if I recall correctly, the only way to not compile everything into a single file is to leave out the :optimization flag completely. If this is the case this should probably be considered a bug. I might be wrong though. Jonathan On Tue, May 7, 2013 at

Accessing JSON Array data in Clojure

2013-05-07 Thread Hawkeye02
Hello everyone. Hopefully this is an easy question to answer. Our company is using a dashboard application that uses Clojure called Brainiac (https://github.com/cmonty/brainiac). It accesses weather data from Dark Sky. Dark Sky has upgraded their API and now the weather data is in arrays, wh

Re: Separating Out .cljs Content

2013-05-07 Thread David Nolen
I believe the ClojureScript compiler simply looks for all .cljs files on the specified compile path. I think maybe you could put your files in different directories so they don't all get concatenated together. You can one build specify one path, and another build specify both paths. Perhaps other

Separating Out .cljs Content

2013-05-07 Thread Timothy Washington
This is on a Clojurescript compilation note. I've noticed that if I have a * main.cljs* and *my-other.cljs*, parts of *my-other.cljs* will appear in * main.cljs*. Is there a way to avoid this? Using *lein-cljsbuild*, any of the :optimization flags, gives the same result (in terms of adding all to *

Re: Problems Bootstrapping With Shoreleave-Remote

2013-05-07 Thread Timothy Washington
Oh that's great Paul. Thanks for the insight. It's going to help when I get deeper into this project. Cheers Tim On Mon, May 6, 2013 at 7:44 PM, Paul deGrandis wrote: > Hi Tim, > > I'm just seeing this now. Someone reported a similar problem on the > Shoreleave mailing list not too long ago.

Re: [ANN] java.jdbc 0.3.0-alpha2

2013-05-07 Thread Thomas Heller
Hey Sean, maybe you could clarify some choices made in 0.3, I needed to rewrite some SQL bits of my app anyhow and thought it was a good time to ditch 0.2.3 as well. 1) Why the keyword args to most functions? entities/identifiers in particular. My SQL Tables have columns like "created_at", "cr

Re: Lisp 2013 summer programming contest

2013-05-07 Thread Plínio Balduino
Oh heck, residents of Brazil cannot participate. Legalese things ruin all the fun. Plínio On Tue, May 7, 2013 at 2:28 AM, Andy Fingerhut wrote: > I have not heard of this before. Wanted to pass on the word in case anyone > was interested in applying. $2000 grand prize, and a chance to speak a

Re: Clojure on top of ObjC?

2013-05-07 Thread PublicFarley
"...but once that's done we should have a real Clojure repl running on the iPhone." Wow. This is awesome news Nathan. -- -- 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

Re: Clojure developer wanted for 4-6 week project ASAP

2013-05-07 Thread James Adams
Hi Ulises, I'm looking for an all round good Clojure developer that's willing to get stuck in and help get it all finished. I'm using Datomic for the persistence, so it might be a good opportunity for somebody interested in gaining experience using it. Thanks Vlad for your interest but given the s