[ClojureScript] How to integrate clojurescript macros into the build

2015-01-03 Thread Ivan L
Clojurescript tooling can be hell. Consider looking at cljx since AFAIK that is the way forward for cljs macros. Shameless plug - cljx setup is also confusing so I wrote cljx-start lein template once I understood what the hell was happening. Not fun stuff. If anything will sink clojure/scrip

Re: [ClojureScript] The Essence of ClojureScript Redux

2015-01-03 Thread Angel Java Lopez
Nice! I'm working on Windows, how to write an issue for clojurescript project? after lein new mies mycljsprj cd mycljsprj Running lein trampoline run -m clojure.main scripts\repl.clj gives me: To quit, type: :cljs/quit ClojureScript Node.js REPL server listening on 58419 Error: ENOENT, no su

[ClojureScript] Re: How to integrate clojurescript macros into the build

2015-01-03 Thread Thomas Heller
Can you run this? lein repl (require 'pts.macros) If not you are probably missing a classpath entry since macros have to be on the classpath for Clojurescript (Clojure) to find them. Your project should have (defproject ... :source-paths ["src/clj"] :cljsbuild {:source-paths ["src/cljs"]})

[ClojureScript] Re: ANN: ClojureScript 0.0-2644, enhanced REPLs

2015-01-03 Thread Max Gonzih
Any idea why Nashorn is slower? Is it related to type checks? -- 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 unsubscribe from this group and stop

[ClojureScript] Re: ANN: ClojureScript 0.0-2644, enhanced REPLs

2015-01-03 Thread David Nolen
It just has known performance issues loading code - there's no interpreter & warmup time is really bad. On Saturday, January 3, 2015, Max Gonzih wrote: > Any idea why Nashorn is slower? Is it related to type checks? > > -- > Note that posts from new members are moderated - please be patient with

[ClojureScript] Re: The Essence of ClojureScript Redux

2015-01-03 Thread David Nolen
Open an issue in JIRA. Windows related issues will need help from Windows devs though. On Saturday, January 3, 2015, Angel Java Lopez wrote: > Nice! > > I'm working on Windows, how to write an issue for clojurescript project? > > after > > lein new mies mycljsprj > cd mycljsprj > > > Running > l

[ClojureScript] Re: ANN: ClojureScript 0.0-2644, enhanced REPLs

2015-01-03 Thread David Nolen
Just pushed out 0.0-2655, the main change is that REPLs now respect Clojure semantics wrt. to `require`. Loaded libs are not reloaded unless `:reload` or `:reload-all` is supplied to the `ns` or `require` form same as Clojure. David ### Changes * add defonced cljs.core/*loaded-libs* dynamic var *

[ClojureScript] Appending Text Nodes in Enfocus

2015-01-03 Thread Timothy Washington
Does anyone know howto append a text node in enfocus ? I'm having a surprisingly hard time. This is happening in the context of a *deftemplate* . I want to insert a text node into one of

[ClojureScript] Re: ANN: ClojureScript 0.0-2644, enhanced REPLs

2015-01-03 Thread David Nolen
0.0-2257 released, only change is the addition of `require-macros` REPL special function for importing macros from libraries like core.async. On Fri, Jan 2, 2015 at 6:18 PM, David Nolen wrote: > ClojureScript, the Clojure compiler that emits JavaScript source code. > > README and source code: htt

[ClojureScript] Re: ANN: ClojureScript 0.0-2644, enhanced REPLs

2015-01-03 Thread David Nolen
Oops that should be 0.0-2657 of course. David On Sat, Jan 3, 2015 at 5:30 PM, David Nolen wrote: > 0.0-2257 released, only change is the addition of `require-macros` > REPL special function for importing macros from libraries like > core.async. > > On Fri, Jan 2, 2015 at 6:18 PM, David Nolen wr

Re: [ClojureScript] ANN: ClojureScript 0.0-2644, enhanced REPLs

2015-01-03 Thread gvim
Great effort, David. One little improvement - on my Mac OS X Yosemite machine the 'ClojureScript:cljs.user>' repl does not appear to support readline unlike the leiningen Clojure repl. gvim On 02/01/2015 23:18, David Nolen wrote: ClojureScript, the Clojure compiler that emits JavaScript sou

[ClojureScript] Re: ANN: ClojureScript 0.0-2644, enhanced REPLs

2015-01-03 Thread David Nolen
Works with rlwrap for me and others. Can you be more specific about what you have tried? On Saturday, January 3, 2015, gvim wrote: > Great effort, David. One little improvement - on my Mac OS X Yosemite > machine the 'ClojureScript:cljs.user>' repl does not appear to support > readline unlike th

Re: [ClojureScript] ANN: ClojureScript 0.0-2644, enhanced REPLs

2015-01-03 Thread gvim
Update: readline wasn't working when I downloaded from the git repository but it works when downloading via `lein new mies ` gvim On 02/01/2015 23:18, David Nolen wrote: ClojureScript, the Clojure compiler that emits JavaScript source code. README and source code: https://github.com/clojure/c

Re: [ClojureScript] Re: ANN: ClojureScript 0.0-2644, enhanced REPLs

2015-01-03 Thread gvim
I'm using MacPorts but rlwrap and node are on my PATH. I followed the README.md, ie. cd samples/repl ../../script/repl (require '[cljs.closure :as cljsc]) (def opts {:output-to "main.js" :output-dir "out"}) (cljsc/build "src" opts) (require '[cljs.repl :as repl]) (require '[cljs.repl.browser

Re: [ClojureScript] Re: ANN: ClojureScript 0.0-2644, enhanced REPLs

2015-01-03 Thread David Nolen
That's the just standard Browser REPL, trying to use rlwrap or readline w/ that approach probably isn't going to work. You'll want to look at how mies does it and copy the approach - http://swannodette.github.io/2015/01/02/the-essence-of-clojurescript-redux/. David On Sat, Jan 3, 2015 at 10:59 PM