El jueves, 14 de junio de 2012 02:28:23 UTC+2, thenwithexpandedwingshesteershisflight escribió: > > > 1. I suppose you can't call any Java library from ClojureScript if you >> want it to compile to JS. Can you call any Clojure library and have it >> translated? >> > > If you want to use existing Java libraries then run those on the server. > Clojure code will run either on the client or the server if it is not > dependent on any server or client specific code (i.e. pure Clojure) > > >> 2. If I'd create a DSL with Clojure, could it be deployed to JS through >> ClojureScript also? >> > > see above - if it is pure Clojure, yes, and lein-cljsbuild will manage > such shared code for you > > >> 3. One of my main concerns is that what drives me to start developing >> client web apps is all the innovation and ideas that are being developed in >> the JS ecosystem. As far as I've read ClojureScript can interact with JS >> libraries, but seeing that the C2 library prefered to implement from >> scratch with ClojureScript instead of wrapping D3, makes me wonder how easy >> or convenient this is. I'd like to use things like Knockout but more >> generally any good JS library that can come out (and also WebGL, the future >> WebCL, etc)... >> > > using existing javascript is easy from Clojurescript if it is written in a > functional way. The reason why C2 was written in Clojurescript is probably > because it's just so much more fun and faster to code in Clojure. There > will certainly be Clojurescript libs for the GL/CL etc. > > > >> >> From what I've investigated, I'd love to learn Clojure, I do know it >> would help me have a better mental approach to the problems, but heavy >> client web apps being my main short term focus I wonder if it's going to be >> more hassle than opting for a more "direct" way using CoffeeScript with the >> rest of JS ecosystem. >> >> > Just read the examples for Aleph and write a small app to test the waters > - you'll love it > >
Thanks a lot for your answer. I think I really have no other option than spending some time learning at least basic clojure and trying it out to see how it feels. -- 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 with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en