Re: [ClojureScript] Re: Improving ClojureScript eval on Light Table

2014-11-10 Thread Gabriel Horner
On Sun, Nov 9, 2014 at 4:22 PM, Rory Douglas wrote: > Not sure if I'm going something wrong, bit watches rarely work for me. As > for debugging, there are times when it's just easier to click through your > app to the point it breaks and see the function params than manually > replicate the app s

Re: [ClojureScript] Re: ANN: Om 0.8.0-alpha2

2014-11-10 Thread David Nolen
You'll have to work around this yourself for now. There are quite a few things slated for removal on the way to 1.0. I'd like to trim Om to the bare essentials. On Mon, Nov 10, 2014 at 2:33 PM, Todd Berman wrote: > So, one issue for me is I am using rendering? in order to work around some > issu

[ClojureScript] Re: ANN: Om 0.8.0-alpha2

2014-11-10 Thread Todd Berman
So, one issue for me is I am using rendering? in order to work around some issues where you can't change the cursor in will-mount and have the change cause a render to occur. I can easily always enqueue my changes in order to work around this, but curious if there is some other way to detect thi

[ClojureScript] ANN: Om 0.8.0-alpha2

2014-11-10 Thread David Nolen
This release fixes issues discovered in 0.8.0-alpha1 around reference cursors and no local state components. This release also does away with checks around cursor consistency - cursors may be handled the same way whether in render or async contexts. After exploring cursor consistency I came to the

[ClojureScript] Re: integrating DataScript and Om with derive?

2014-11-10 Thread stephanos
Thanks for your reply. But actually I was looking to integrate Om and DataScript *with the help of* derive. Because the problem in the gist is that each Om component now depends on the whole database. But I want to pass cursors to the components. And the cursors should be 'derived' from the da

[ClojureScript] Re: integrating DataScript and Om with derive?

2014-11-10 Thread Johann Bestowrous
Here's a gist from April https://gist.github.com/swannodette/11308901 On Sunday, November 9, 2014 9:27:11 AM UTC-8, stephanos wrote: > Hey there, > > ever since I have read Mike Haney's entry about his (Reagent based) > application's architecture [1] I'm intrigued by the idea of combining > Dat

[ClojureScript] Re: Enforce a source file to be compiled first

2014-11-10 Thread Thomas Heller
That SHOULD be handled via the dependency graph of your namespaces, that means if one namespace requires code from another to be loaded it should list it in its (:require ...) declaration. This way you ensure that it was loaded in the right order. init.cljs: (ns init) (enable-console-print!)

[ClojureScript] Enforce a source file to be compiled first

2014-11-10 Thread Yehonathan Sharvit
In my project I have a file: init.cljs with initialization code. For instance: (enable-console-print!) (extend-type js/RegExp ;; allow regexp to be called https://gist.github.com/alandipert/2346460 IFn (-invoke ([this s] (re-matches this s What is the best way to make sure i

Re: [ClojureScript] alts!! (and alt!!) still make sense in CLJS when a :default is specified

2014-11-10 Thread Herwig Hochleitner
Your argument makes sense, Javascript's limitation on blocking doesn't apply when wanting to read only available elements. I see little chance to have alt!! added to the cljs port, if it would need a mandatory :default arm there. Also, as Thomas noted, putting the recur into the :default would make

[ClojureScript] Re: Standard way to provide externs for library authors

2014-11-10 Thread Thomas Heller
Hey, the feature already exists like I mentioned on github. I'm just not sure about its state since it is "marked" experimental [1]. I'm not sure how it came into existence or what the backstory was but if I understand the code correctly you are supposed to include a deps.cljs in your .jar whic

[ClojureScript] Re: [ANN] clairvoyant 0.0-43-ga703f4e

2014-11-10 Thread Yehonathan Sharvit
Clairvoyant is really great Joel! I'd like to use the trace-forms inside my project. My thought is to have a macro named: dbgfn that will replace defn in the places where I need to investigate my function calls. Like this: (defmacro dbgfn[& args] `(trace-forms {:tracer clairvoyant.core/def

Re: [ClojureScript] Standard way to provide externs for library authors

2014-11-10 Thread Julien Eluard
I agree this would be a really great feature. There used to be a similar facility part of lein-cljsbuild allowing to package both the externs and eventual JS dependencies (see [1]) but it does not work anymore. Maybe something equivalent could be part of the clojurescript compiler? There already

[ClojureScript] Standard way to provide externs for library authors

2014-11-10 Thread Nikita Prokopov
Hi! Right now lein-cljsbuild allows for externs to be specified on user side. E.g. I’m building app with react-cljs, I add dependency, but there’s also a second step: I need to put :externs ["react/externs/react.js"] into _my_ project.clj. This is tedious and easy to forget, leading to a lot of

[ClojureScript] Re: alts!! (and alt!!) still make sense in CLJS when a :default is specified

2014-11-10 Thread Thomas Heller
That is a limitation of Javascript not core.async. Since you cannot block in Javascript (only one thread) you have to take the "callback"/async route for everything. Emulating blocking by running a loop is a bad idea since you cannot even pause/sleep and while that loop is running nothing else

Re: [ClojureScript] Cannot call method 'call' of undefined

2014-11-10 Thread Daniel Kersten
You could probably find or write a script or leiningen plugin to send errors to growl or other notification system. On Mon, 10 Nov 2014 00:20 Glen Mailer wrote: > Cheers for the advice everyone. > > For some reason I had assumed warnings would appear in the js console, but > of course warnings a