Re: [ClojureScript] Re: Use #js in macro

2014-02-23 Thread Kashyap CK
I am also trying to write a macro but am not able to figure out how to get the clojurescript symbols inside the clj file that I am writing the macros in. What do I need to :require in my clj file to access js-obj? Regards, Kashyap On Saturday, February 22, 2014 10:21:46 PM UTC+5:30, David Nolen

Re: [ClojureScript] Re: Use #js in macro

2014-02-23 Thread Kashyap CK
On Sunday, February 23, 2014 10:25:32 PM UTC+5:30, Brandon Bloom wrote: > > What do I need to :require in my clj file to access js-obj? > > Unfortunately, you need to use fully qualified symbols with syntax quote. The > reader resolves them in the Clojure environment, not the ClojureScript > env

[ClojureScript] Invoking js functions by dynamically generating its name.

2014-02-24 Thread Kashyap CK
Hi, Is there a way to invoke JS functions, the names of which are generated dynamically. For example - (def my-invoke [f & ps] (let [ fname (str "js/" f)] ((symbol fname) ps))) How can I make the above work? Regards, Kashyap -- Note that posts from new members are moderated - please

Re: [ClojureScript] Invoking js functions by dynamically generating its name.

2014-02-24 Thread Kashyap CK
are defined, > if you're trying to get them from a closure I don't have any immediate ideas, > but that would smell bad to me. You could put them in a single namespace > (some object), and then use 'aget' to retrieve them. > > > > > > On Mon, Feb 2

[ClojureScript] A question about javascript version

2014-03-01 Thread Kashyap CK
Hi, I got a little confused today when I checked out the version of javascript on my chrome browser and found 1.7. What is the correlation between this number and the ecmascript version number? If I understand right, destructuring/macros/namespaces are supposed to be in ES6 - does that mean that

[ClojureScript] Help in getting a sense of the internals of clojurescript

2014-03-09 Thread Kashyap CK
Hi, I'd like to understand how clojure works. I'd like to do that through clojurescript. What would be a good starting point to understand how clojurescript works? I presume cljs/cljs/reader.cljs would be a good start - is this the code that take "cljs" text and convert into clojure data structu

Re: [ClojureScript] Help in getting a sense of the internals of clojurescript

2014-03-09 Thread Kashyap CK
lyzer/compiler https://github.com/swannodette/hello-cljsc. > > > > David > > > > On Sun, Mar 9, 2014 at 10:23 AM, Kashyap CK wrote: > > Hi, > > I'd like to understand how clojure works. I'd like to do that through > clojurescript. &

[ClojureScript] Does mies get me the latest clojurescript

2015-01-25 Thread Kashyap CK
Hi, I find using mies conveniest. Does it bring be the latest and greatest Clojurescritpt though? Regards, Kashyap -- 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 "Cloju

[ClojureScript] chrome browser repl on Windows

2015-08-31 Thread Kashyap CK
Hi, I tried the following - 1. lein new mies test-project 2. cd test-project 3. edit scripts\repl.cljs as follows - (require '[cljs.repl :as repl] '[cljs.repl.browser :as browser] '[cljs.repl.node :as node]) ;(repl/repl (node/repl-env)) (cljs.repl/repl (browser/repl-env) :watch "src" :

[ClojureScript] Sending custom headers in xhr/send

2018-02-04 Thread Kashyap CK
Hi, I picked up the example shown here - http://dimagog.github.io/blog/clojure/clojurescript/2013/07/12/making-http-requests-from-clojurescript-with-core.async/ to send HTTP requests from cljs. However, I am unsure how to add custom headers to the request. (defn GET [url] (let [ch (chan 1)]

[ClojureScript] Re: Sending custom headers in xhr/send

2018-02-05 Thread Kashyap CK
Got the answer. It was the "cross site scripting" interference. Things worked as expected when I used electron. Regards, Kashyap On Sunday, February 4, 2018 at 4:04:20 PM UTC-8, Kashyap CK wrote: > > Hi, > I picked up the example shown here - > http://dimagog.

[ClojureScript] Seeking advice on making HTTP requests from CLJS

2018-10-26 Thread Kashyap CK
Hi, I am trying to build a javascript library to deal with the protocol details of a server. The goal is to create a library that does all the dirty work of handshake and reconnect logic and exposes a "stream" to the user of the library that can be read from and written to. In the past I have

Re: [ClojureScript] Seeking advice on making HTTP requests from CLJS

2018-10-26 Thread Kashyap CK
t. > >- Video: https://skillsmatter.com/skillscasts/8843-clojure-bytes#video >- Blog post: https://juxt.pro/blog/posts/advanced-martian.html >- Github: https://github.com/oliyh/martian > > > > > On Fri, Oct 26, 2018 at 8:13 AM Kashyap CK > wrote: > >

[ClojureScript] Request to review my CLJS using core.async

2018-11-13 Thread Kashyap CK
[Apologies for cross-posting - but I realize that Clojurescript group may be a better place for this query than the Clojure group :) ] Hi all, I am attempting to use core.async to poll a service - https://gist.github.com/ckkashyap/c8423dcfc3a3f28b67e18ae76cc13f53 Broadly, I need to hit the

Re: [ClojureScript] Request to review my CLJS using core.async

2018-11-13 Thread Kashyap CK
Thank you Moe ... just what I was looking for. On Tuesday, November 13, 2018 at 9:25:42 AM UTC-8, Moe Aboulkheir wrote: > > On Tue, Nov 13, 2018 at 5:23 PM Moe Aboulkheir > wrote: > >> >> - Contrast https://clojure.github.io/core.async/#clojure.core.async/put! >> w/ your use of (go (>! x)) >> >

[ClojureScript] Re: Differences in eval-str between ClojureScript 1.9.946 and 1.10.238 ?

2018-11-14 Thread Kashyap CK
I was trying to dabble with eval and found the same thing - is there a newer way to do eval in cljs? On Friday, March 30, 2018 at 10:30:54 PM UTC-7, Richard Davies wrote: > > Ok so I've deleted my project's out and .cpcache directories and my ~/.m2 > directory just in case there was something be