[ClojureScript] Console.log as a property

2015-03-20 Thread Charles-P. Clermont
Hi, I'm not sure if this is a bug or a hole in my knowledge. Can someone explain why I can do ``` ((.-cos js/Math) 0) ;; => 1 ``` But not ``` ((.-log js/console) "hi") ;; => Illegal Invocation ``` The goal being to declare ``` (def log (.-log js/console)) (def cos (.-cos js/Math)) ;; etc

[ClojureScript] Re: Om or quiescent ?

2014-12-11 Thread p
In my case Om wins over Quiescent more often (because of its short name - just kidding ;) until Datascript enters the game. Anyway, it's still all about the problem. -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message becau

[ClojureScript] [ANN] Fence v0.2.0 - effortless way to avoid manual extern files

2014-12-11 Thread p
This version comes with a `+++` macro that will transform all children interop forms to "extern-less" equivalent. https://github.com/myguidingstar/fence Hopefully it will save people even more extra keystrokes than previous version ;) -- Note that posts from new members are moderated - please

[ClojureScript] Re: javascript to clojurescript transpiler

2014-11-26 Thread p
Hi Tom, Two years ago I contributed to ChlorineJS, a naive Clojure -> JS tool. The project has a library to convert JS -> ChlorineJS, too. https://github.com/chlorinejs/chlorinate Its command-line interface for the library: https://github.com/chlorinejs/chloride However, imo you can only benefit f

[ClojureScript] How to determine ClojureScript compatibility with Clojure?

2014-05-01 Thread T P
I'm new to ClojureScript/Clojure and was wondering how you find out what parts of Clojure are implemented? For example, when I start up a Clojure REPL by doing "lein repl", and then do: (all-ns) I get a long list of namespaces. However, when I start up a ClojureScript REPL via "lein t

[ClojureScript] Re: ANN: om-sync

2014-02-23 Thread vladislav p
Wanted to offer a point of view on " 3. Keeping the views up-to-date. " I do not have any empirical results to suggest it a viable alternative, but still.. I think the problem is so difficult due to the cardinality of the set of possible relations/dependencies that the views can represent. So

Re: [ClojureScript] Re: [Q] several questions on Om/Clojurescript

2014-02-22 Thread vladislav p
I got the 'advanced' mode working for a simple hello world Your question prompted me to go back and update to the latest versions of everything so you can see it at https://github.com/vladp/cljs_om_dojo/ I suspect in advanced mode the including of reactjs needed to be different. But not 100% sure

Re: [ClojureScript] Re: Om/React, Core.Async and some random musings

2014-01-20 Thread vladislav p
@David P, Would you be able to share your code samples on githubs or ghist I am slowly venturingin in to this stack and would appreciate to see D&D and other examples showing idiomatic use with Om. thank you in advance On Monday, January 13, 2014 6:23:44 PM UTC-5, David Pidcock w

Re: [ClojureScript] Re: [Q] several questions on Om/Clojurescript

2014-01-09 Thread vladislav p
Hello I updated the sample to just demonstrate the issue of using :advanced compilation mode if you run lein cljsbuild once dev-dbg2-advanced and then render index2.html you will see errors: Uncaught TypeError: Cannot read property 'input' of undefined dom.cljs:36 Uncaught Error: goog.require

[ClojureScript] Re: cljsbuild foreign-libs

2014-01-08 Thread vladislav p
Sorry if this reply is for an old topic but in the last month David Nolan put together a rather unique library that integrates Reacts with Clojurescript in a very 'idiomatic' way leveraging mutation free pattern for state management https://github.com/swannodette/om I was actually searching aro

Re: [ClojureScript] Re: [Q] several questions on Om/Clojurescript

2014-01-08 Thread vladislav p
, David Nolen wrote: > It appears that you're missing some dependencies required for Dojo to > function. Dojo uses a function "define" which is not included in any of the > Dojo libraries you've included. > > > > David > > > > On Wed, Jan 8,

[ClojureScript] Re: [Q] several questions on Om/Clojurescript

2014-01-07 Thread vladislav p
Hello David, thank you Here is the project to test on https://github.com/vladp/cljs_om_dojo -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsub

[ClojureScript] [Q] several questions on Om/Clojurescript

2014-01-06 Thread vladislav p
Hello, investigating the use of clojurescript, om for state management, ReactJS for simple parts of my apps, but also need to use foreigh libraries such as dgrid (one of the dojo's excellent Grids). I have setup Om/Clojurescript and can run a simple app (that I copied from one of the David No