Re: [ClojureScript] Question about transit-cljs and keywordizing json

2015-03-20 Thread David Nolen
transit is not really intended for the consumption of plain JSON. There's not a good way to this right now. David On Fri, Mar 20, 2015 at 3:22 PM, Shaun Mahood wrote: > I'm pretty new to clojurescript and am having some issues implementing > transit-cljs to read in a JSON api call. > > What I'm

Re: [ClojureScript] multi-line REPL for node

2015-03-20 Thread Oliver George
That's great news Colin. Cursive CLJS support seems a little rough around the edges but I'm still loving it. Was hoping to hear that it was on your radar for improvement. On Sat, Mar 21, 2015 at 9:57 AM, Colin Fleming wrote: > Hi Georgi, > > Yes, this is currently more painful than it should

Re: [ClojureScript] multi-line REPL for node

2015-03-20 Thread Colin Fleming
Hi Georgi, Yes, this is currently more painful than it should be in Cursive. I'm actually working on REPL support right now, so hopefully there'll be proper CLJS REPL support using all the new CLJS goodness in Cursive soon (as in, in a week or two). Cheers, Colin On 21 March 2015 at 05:59, Georg

[ClojureScript] Question about transit-cljs and keywordizing json

2015-03-20 Thread Shaun Mahood
I'm pretty new to clojurescript and am having some issues implementing transit-cljs to read in a JSON api call. What I'm looking for is the equivalent of (js->clj parsed-json-data :keywordize-keys true) I've got the transit reader working, using (let [r t/reader :json)] (t/read r json-data)) A

Re: [ClojureScript] Console.log as a property

2015-03-20 Thread Luke Morton
You need to console.log.call(console, "hi") in JS so presume you need to do the equivalent in ClojureScript. On 20 Mar 2015 18:28, "David Nolen" wrote: > You can't do this in many cases with JavaScript either, try it. > > David > > On Fri, Mar 20, 2015 at 2:12 PM, Charles-P. Clermont < > charles.

Re: [ClojureScript] Console.log as a property

2015-03-20 Thread David Nolen
You can't do this in many cases with JavaScript either, try it. David On Fri, Mar 20, 2015 at 2:12 PM, Charles-P. Clermont < charles.pclerm...@gmail.com> wrote: > 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) ;;

[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] multi-line REPL for node

2015-03-20 Thread Georgi Danov
I have been unsuccesfull to get a working node repl inside intellij+cursive. Can anybody give advice or point me to set-up that ideally has multiline mode + experience close to cursive's? I love the repl for clojure and not having this for cljs is making me do as much as possible in clojure, whi

[ClojureScript] atom packages, clojurescript, google closure and dependency management issue

2015-03-20 Thread Kirill Salykin
Hi All, I'm writing some atom (the editor) package with ClojureScript. And i faced dependency load issue. When compiled ClojureScript produces file like this (main.js): goog.addDependency("base.js", ['goog'], []); goog.addDependency("../cljs/core.js", ['cljs.core'], ...) goog.addDependency("../

[ClojureScript] Using ClojureScript to write atom (the editor) package. Dependencies management issue.

2015-03-20 Thread Kirill Salykin
I'm writing some atom (the editor) package with ClojureScript. And i faced dependency load issue. When compiled ClojureScript produces file like this (main.js): goog.addDependency("base.js", ['goog'], []); goog.addDependency("../cljs/core.js", ['cljs.core'], ...) goog.addDependency("../clojure/b

Re: [ClojureScript] Mac OS X Classpath issue in Getting Started?

2015-03-20 Thread Erki Esken
On Thursday, March 19, 2015 at 1:28:18 PM UTC+2, David Nolen wrote: > Yes it look like in both cases you all have written: > (require 'cljs.closure') > which doesn't mean what you think in Clojure, but may seem familiar if you're > used to JavaScript. The right thing is: > (require 'cljs.closure)

[ClojureScript] Re: Browserless ClojureScript

2015-03-20 Thread Chris Reilly
On Sunday, December 21, 2014 at 11:22:17 AM UTC-8, Mike Haney wrote: > Good stuff. > > Has anyone tried using Clojurescript with AWS Lambda? I haven't but it seems like a perfect fit. I will report back and please lmk what your experience has been. -- Note that posts from new members are moder

[ClojureScript] Re: Om: lost focus in radio buttons when changing values

2015-03-20 Thread Steve Ashton
I ran into a similar error with losing focus. In my case it was because I was generating a different react-id in an on-blur method. I ran your code, and didn't see the id change. But (the reason I bring this up), I do see the same behavior in the Chrome DOM explorer with your code as I did with