8 ms·
ClojureScript One
- rman666 15y agoFrom a design perspective, that is one sweet looking site! Who created it? With what?
- rman666 15y agoOkay, that was kind of a dumb question. I assume it's created using ClojureScript One. What I meant was how was the visual design created?
- raju 15y agoThis podcast from Relevance - http://thinkrelevance.com/blog/2012/01/12/podcast-episode-003.html http://thinkrelevance.com/blog/2012/01/12/podcast-episode-00... talks about the development of ClojureScript One, and names a few people responsible for the visual design. I believe Jen Myers (@antiheroine) is one of them.
- werg 15y agoIt would be supercool to see something like this using websockets.
- nickik 15y agoI have not jet seen a ClojureScript-to-Clojure websocket library thing. Would be cool to see.
- macmac 15y agoHere is a good example of ClojureScript <-> Clojure communication https://github.com/neotyk/ws-cljs https://github.com/neotyk/ws-cljs It uses the Aleph Clojure library on the server side.
- swannodette 15y agoClojureScript is the only compile to JS language that I'm aware that lets you fully leverage the power of modifying JavaScript prototypes w/o fear of gross incompatibilities: http://clojurescriptone.com/documentation.html#one.color http://clojurescriptone.com/documentation.html#one.color Note that they've extended (safely because of namespaces) browser natives including Element, Array, String, as well as the custom ClojureScript data types to respond to the color function.
- mark_l_watson 15y agoThanks for putting that together, especially the documentation! I think that I would save a lot of time, eventually, using a uniform Clojure development environment for server side and client side, but I am hesitant to spend the learning curve time right now. (Clojure, Noir, and Javascript are working out really well for me.) Your good job on documentation will get me to spend the learning curve time sooner than later. I also do work using GWT and SmartGWT and the uniform development environment (even if it is Java :-) really helps work flow.
- swannodette 15y agoDon't thank me, thank fogus & Clojure/core! :)
- mark_l_watson 15y agoThanks Michael and Clojure/core! fixed. (please keep the original thanks though, for your other Clojure projects)
- fogus 15y agoActually you should thank Brenton Ashworth, Craig Andera, Jen Myers, and Kevin Altman. It is and looks as beautiful as it does because of them.
- Dn_Ab 15y agoYou guys are doing excellent work. I also find what you are doing with predicate dispatch very interesting. I think that class of methods are/will be really powerful - especially for big complicated programs. Have you been able to get it to work efficiently for most cases in clojurescript and in general?
- jsavimbi 15y agoHow do I [intelligently] choose ClosureScript over say, Node.js?
- swannodette 15y agoYou don't have to choose one or the other. You can target Node.js with ClojureScript.
- rgbrgb 15y agoBut then you're missing one of the best features of developing with Node.js (one less context switch).
- fogus 15y agoWhich is a likewise reason for using Clojure in the client and server passing Clojure between the two.
- jsavimbi 15y agoWhat I meant to say is "based on ecosystem, performance, scalability and learning curve, is there a compelling argument that would convince me to change from my current language/framework/platform to this one?"
- lukev 15y agoFor the server side, Clojure, by most metrics, would beat node.js by virtue of running on the JVM and its stellar concurrency capabilities. This includes ecosystem, performance and scalability. Using ClojureScript in the browser gives you a language to use that's consistent with what you're using on the server, and easy interop (you can just send data back and forth directly, without having to do any extra serialization). It's also (in my opinion) a much better language than JavaScript. Learning curve is the one likely stickler - depends how inclined you are to learn a Lisp. Personally, I love it.
- rgbrgb 15y ago
- MatthewPhillips 15y agoLooks great. What I would love to see is a ClojureScript tutorial that doesn't assume you already know Clojure.
- edoloughlin 15y agoClojureScript is a subset of Clojure, so you do need to more or less know Clojure. The main benefit to ClojureScript is that you can use essentially the same language on the front- and back-ends.
- amouat 15y agoYes, but it doesn't really mention that in the documentation. It would be good to something along the lines of "You will need to know Clojure to use ClojureScript One, go here to learn it". This looks excellent though - I'll give it a go once I think of a toy project to try it with.
- pavpanchekha 15y agoI assume this is just-launched, but being able to do examples online would be amazing. I believe ClojureScript does not include (eval) so you'd have to route to the server and back; perhaps this is feasible?
- icefox 15y agoThere is a clojure jail so yah it is feasible.
- c_t_montgomery 15y agoView -> Source on this page. Just do it.
- paulkoer 15y agoYes, do it! The people downvoting you obviously didn't!
- johanmagnusson 15y agoOr they did it but only on the first page. What you should look at is the source for the documentation page (http://clojurescriptone.com/documentation.html http://clojurescriptone.com/documentation.html).
- aveeno 15y agoHow good is the interop with existing js libraries? Would i be able to use webgl or three.js?
- asmala 15y agoThe short answer is yes, ClojureScript has similar interop features for vanilla JS as Clojure for the JVM has for Java. However, given that ClojureScript uses the Google Closure compiler to optimize production code, there are a few gotchas to be aware of. This article does a great job at explaining the details: • http://lukevanderhart.com/2011/09/30/using-javascript-and-clojurescript.html http://lukevanderhart.com/2011/09/30/using-javascript-and-cl...
- jcdreads 15y agoThank you very, very much for this. Note: Installing failed for me until I replaced git:// with https:// https:// in two places in script/deps. Then it worked.