Re: clojurescript browser repl possible regression

2012-12-04 Thread Brent Millare
Strange, so 'rm .repl /out/ -r' is important but only so I see the goog.async.Deferred error consistently now. Starting from scratch: git clone git://github.com/clojure/clojurescript.git cd clojurescript ./script/bootstrap cp ~/.m2/repository/org/clojure/google-closure-library-third-party/0.0-2

A Working nrepl-ritz Setup?

2012-12-04 Thread Timothy Washington
Hey all, I like the promise of nrepl-ritz. But I can't get a working setup. 1) I start from an empty "*~/.emacs.d/*" 2) I then populate init.el from the example in ritz/nrepl 3) I open a lein project and run `*M-x nrepl-ritz-jack-in*` **) The

ANN: Clojure/West 2013 registration, CFP, sponsorships, training

2012-12-04 Thread Alex Miller
Clojure/West returns in 2013 to one of my favorite cities: Portland, Oregon. It will take place March 18-20th. Based on feedback from last year, we are reducing the number of tracks and spreading over 3 days with a mixture of single- and double-track. Our venue will be

Re: ANN: clj-schema, Schemas For Clojure Maps

2012-12-04 Thread Alex Baranosky
Added a step-wise 'Getting Started' tutorial. Plan to add more in-depth documentation soon: https://github.com/runa-dev/clj-schema/wiki/Getting-Started On Tue, Nov 27, 2012 at 7:18 PM, Alex Baranosky < alexander.barano...@gmail.com> wrote: > Hi Stathis, > > Thanks for your interestin clj-schema.

Re: in keyword withing where claus java-jdbc

2012-12-04 Thread Sean Corfield
... in ? is not supported in c.j.jdbc On Tue, Dec 4, 2012 at 6:16 AM, Amir Wasim wrote: > I am trying to use the following > > (defn commit-acknowledged > [acks] > (sql/with-connection (db-connection) > (sql/transaction > (sql/update-values "MSGIDS" ["msg_id in ?" acks] {"status"

Re: CLJS: Q about the js-code downloaded by the browser REPL connection...

2012-12-04 Thread Frank Siebenlist
Thanks for the explanation, Herwig. I've tried to read up on (nested) browsing contexts stuff. The best I found so far is "http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#nested-browsing-context"; … which is still pretty dense - if anyone has a pointer to a more practica

Re: An improvement to PersistentVector

2012-12-04 Thread Stephen Compall
On Dec 4, 2012 7:24 PM, "Paulo Sérgio Almeida" wrote: > I have been looking into the PersistentVector implementation, and I came up with a simple improvement relevant for small vectors, of between 33 and 64 elements. For these sizes I found an "assoc" loop to be between 29% and 39% faster and a "g

An improvement to PersistentVector

2012-12-04 Thread Paulo Sérgio Almeida
Hi all, I have been looking into the PersistentVector implementation, and I came up with a simple improvement relevant for small vectors, of between 33 and 64 elements. For these sizes I found an "assoc" loop to be between 29% and 39% faster and a "get" loop between 4% and 8% faster. The memory

Re: CLJS: Q about the js-code downloaded by the browser REPL connection...

2012-12-04 Thread Herwig Hochleitner
The page in the iframe contains the REPL implementation for the browser. It's compiled and optimized with its dependencies. Therefore the client runs in its own window object, isolated from problems including global identifiers, modified prototypes, differing library versions and compilation modes.

Re: ClojureScript & Three.js

2012-12-04 Thread Graham MacDonald
Thanks! On Tuesday, 4 December 2012 11:45:20 UTC, Jonathan Fischer Friberg wrote: > > I usually never care about bringing external libs into the closure system. > Instead, I would do this: > > HTML: > > > Clojurescript: > (def THREE js/THREE) > > Of course, this places it outside closure, and won

Re: clojurescript browser repl possible regression

2012-12-04 Thread Herwig Hochleitner
I managed to get your example to work by copying the third-party jar into lib/ One thing I ran into: Do a `rm .repl/ out/ -r` between runs, especially when compiles have failed. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, se

Re: CCW and Eclipse Build Path configuration

2012-12-04 Thread Vladimir Tsichevski
Done On Tuesday, December 4, 2012 8:06:37 PM UTC+4, lpetit wrote: > > > So, would you please create an issue for it ? I would not like to lose > track of it. > > http://code.google.com/p/counterclockwise/issues/list > > Thanks, > > -- > Laurent > -- You received this message because you a

Re: [ANN] modern-cls tutorial 10 - part 2

2012-12-04 Thread Mimmo Cosenza
ops the link again… https://github.com/magomimmo/modern-cljs mimmo On Dec 4, 2012, at 5:50 PM, Mimmo Cosenza wrote: > Hi all, > I completed the second part of the tutorial dedicated to test/fix the patch > of the CLJS compiler. In the next tutorial I'll be back on CLJS. > > My best > > Mimm

[ANN] modern-cls tutorial 10 - part 2

2012-12-04 Thread Mimmo Cosenza
Hi all, I completed the second part of the tutorial dedicated to test/fix the patch of the CLJS compiler. In the next tutorial I'll be back on CLJS. My best Mimmo -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to

Any Clojurists at MongoSV today?

2012-12-04 Thread Russell Whitaker
http://www.10gen.com/events/mongosv Santa Clara, CA If you're in the house, and want to meet up and say hi, drop me a line. I'm here a bit early for this thing, and am still waking up. I'd be particularly interested to hear if any of you use (and like) Monger: http://clojuremongodb.info/ -- Rus

Re: clojurescript browser repl possible regression

2012-12-04 Thread Brent Millare
After adding third_party jar as a dependency to classpath (by copying google-closure-library-third-party-0.0-2029.jar to clojurescript/lib, as it should automatically be picked up by the ./script/repl script) I still get the "clojure is not defined error". The other error doesn't appear. I als

Re: CCW and Eclipse Build Path configuration

2012-12-04 Thread Laurent PETIT
Hello, 2012/12/4 Vladimir Tsichevski : > Hi Laurent, > > in Eclipse, you may configure which directories are used to look for source > files. By default Eclipse builders try to compile all suitable files in > these directories. So, as I understand, CCW does either. > > But you may also exclude som

Re: ANN: contrib-repl

2012-12-04 Thread Robert Levy
> > If a version of some dependency is already on the classpath (either has > been there from the start, or was previously added via pomegranate), > results are undefined if a different version of the same dependency is > later added via pomegranate. Sometimes you get lucky and nothing bad > happe

in keyword withing where claus java-jdbc

2012-12-04 Thread Amir Wasim
I am trying to use the following (defn commit-acknowledged [acks] (sql/with-connection (db-connection) (sql/transaction (sql/update-values "MSGIDS" ["msg_id in ?" acks] {"status" "H"}) ) ) ) here acks is type of clojure.lang.PersistentVector when i call this function i a

Re: CCW and Eclipse Build Path configuration

2012-12-04 Thread Vladimir Tsichevski
Hi Laurent, in Eclipse, you may configure which directories are used to look for source files. By default Eclipse builders try to compile all suitable files in these directories. So, as I understand, CCW does either. But you may also exclude some stuff found in there from the build process by

[ANN] Typed Clojure 0.1.4

2012-12-04 Thread Ambrose Bonnaire-Sergeant
https://github.com/frenchy64/typed-clojure Leiningen (Clojars): [typed "0.1.4"] Highlights: - Supports Clojure 1.4.0 or later - Better error messages, contains syntax + line + column number (if using a Clojure version with column numbers) See README for more detail. Thanks, Ambrose -- You re

Re: ANN: contrib-repl

2012-12-04 Thread Chas Emerick
On Dec 4, 2012, at 2:52 AM, Laurent PETIT wrote: > 2012/12/4 rob : >> That was my first thought, and considered also generating a project.clj, but >> after thinking about it I decided I didn't want to encourage this type of >> behavior beyond REPL experimentation, so I preferred to do it in a way

Re: clojurescript browser repl possible regression

2012-12-04 Thread Herwig Hochleitner
Am 04.12.2012 09:41 schrieb "David Nolen" : > > I believe this error is because you're not including the google closure third party jar as a dependency. Yes, this is http://dev.clojure.org/jira/browse/CLJS-418 -- You received this message because you are subscribed to the Google Groups "Clojure"

Re: confused about the scope of variables, or is it something else? ClojureScript

2012-12-04 Thread Balint Erdi
As Sean suggested you should use doseq instead of for and map to force side-effects: http://clojuredocs.org/clojure_core/clojure.core/doseq Since doseq uses the exact same syntax as for, you should just write doseq in its place. map should be converted to doseq syntax, too. Balint On Monday, D

Re: CCW and Eclipse Build Path configuration

2012-12-04 Thread Laurent PETIT
Hi Vladimir, 2012/12/4 Vladimir Tsichevski : > Hi, > > Is it possible to make CCW respect exclusions and inclusions in Eclipse > Build Path configuration? Not sure I understand what you mean (I can think of several things you may be asking). Could you please elaborate a little bit more on your u

Re: ClojureScript & Three.js

2012-12-04 Thread Jonathan Fischer Friberg
I usually never care about bringing external libs into the closure system. Instead, I would do this: HTML: Clojurescript: (def THREE js/THREE) Of course, this places it outside closure, and wont be compiled with the closure compiler. I don't think this matters much (in most cases anyway). Becau

ClojureScript & Three.js

2012-12-04 Thread Graham MacDonald
Hi I'm trying to create a cljs project which uses Three.js. I found a snippet of code here (though I have no idea if it works or not...) I understand I need to reference three.js as an extern or a foreign lib, but I've been unable to get it working successful

ANN: clj-bandit - multi-armed bandit optimisation algorithms

2012-12-04 Thread Paul Ingles
Hi, Whilst on the way to clojure-conj I'd started reading a new O'Reilly book on Bandit Optimization[1] and thought I'd give myself the exercise of porting the algorithms to Clojure. It was really good fun to play with a problem in pure Clojure- I went from using protocols and atoms to just us

Re: clojurescript browser repl possible regression

2012-12-04 Thread David Nolen
I believe this error is because you're not including the google closure third party jar as a dependency. David On Tue, Dec 4, 2012 at 2:07 AM, Brent Millare wrote: > https://github.com/downloads/bmillare/dj.web.browser/minimal.tar.gz > > @Mimmo, I don't use cljsbuild as thats mainly for automat

CCW and Eclipse Build Path configuration

2012-12-04 Thread Vladimir Tsichevski
Hi, Is it possible to make CCW respect exclusions and inclusions in Eclipse Build Path configuration? Regards, Vladimir -- 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 fr