Re: [ClojureScript] Re: ANN: ClojureScript 0.0-3058, Enhanced REPLs, faster compile times

2015-03-12 Thread Max Gonzih
Thanks David, it solved my problem! -- 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 receiving emails from it,

[ClojureScript] read-string map with numeric key

2015-03-12 Thread Peter Marshall
Hi , Im not an experienced cljs dev so sorry if this is a daft question I have a map coming into my client via sente. The map begins like {:100 {:id "100" :point { I dont seem to be able to convert this into a valid cljs map, the reader complains about 0 not being a valid key. Howeve

Re: [ClojureScript] ANN: re-frame v0.2.0 - an FRP MVC pattern for writing SPAs in Reagent. (Woah, so many LTAs!!)

2015-03-12 Thread Marc Fawzi
Kyle, I've been watching and interacting with browser vendors as they try so hard to come to agreement on the spec, but none so far after 4 years. The Webkit team and IE team have not adopted it yet. and the discussion on reaching consensus for a minimum viable web component spec is still ongoi

[ClojureScript] Re: Clojure and Clojurescript REPL Workflow

2015-03-12 Thread kennyoliu
On Wednesday, March 11, 2015 at 12:14:46 PM UTC+7, kenn...@gmail.com wrote: > I'm sure this has been asked more than once but the answer seems like a > moving target. What are some good ways to work with both clojure and > clojurescript code at the same time? > > More specifically, how do you ha

[ClojureScript] Re: ANN: ClojureScript 0.0-3058, Enhanced REPLs, faster compile times

2015-03-12 Thread Peter West
On Wednesday, 11 March 2015 23:38:40 UTC+10, Peter West wrote: > On Tuesday, 10 March 2015 09:41:45 UTC+10, David Nolen wrote: > > ClojureScript, the Clojure compiler that emits JavaScript source code. > > > > New release version: 0.0-3058 > > > > The new Quick Start is essential reading even i

Re: [ClojureScript] Re: ANN: ClojureScript 0.0-3058, Enhanced REPLs, faster compile times

2015-03-12 Thread Mike Fikes
If you are on Linux or a Mac, do a `kill -3` on the Java process to cause it to produce thread dumps with stack traces. That way we can see where it is hung. - Mike > On Mar 11, 2015, at 9:38 AM, Peter West wrote: > >> On Tuesday, 10 March 2015 09:41:45 UTC+10, David Nolen wrote: >> Clojure

Re: [ClojureScript] Re: ANN: ClojureScript 0.0-3058, Enhanced REPLs, faster compile times

2015-03-12 Thread David Nolen
A couple of people mentioned this happened while trying out the Quick Start. If eval takes a long time it could be because you don't have the right browser tab focused. If the REPL is truly hung due to some kind of communication issue, try refreshing the browser. The bREPL uses an iframe which can

[ClojureScript] Re: Clojure and Clojurescript REPL Workflow

2015-03-12 Thread Ivan L
CCW has a built in repl you can start on a project that supports syntax highlighting, identation, auto-reload, auto-execute history etc... My current path is to start figwheel for client side clojurescript and use the built in repl for server side clojure. I use lein pdo and start jetty, cljx

[ClojureScript] Re: Question about Closure modules

2015-03-12 Thread Michiel Borkent
David Nolen helped me via IRC. Because React is a foreign library Google Closure doesn't know how to re-arrange this and it gets moved to the base module, unless you explicitly specify to which module it should belong. This solves the problem: :modules {:source-paths ["src-cljs" "src-cljs-prod"

[ClojureScript] Resources for Getting Started with Clojurescript

2015-03-12 Thread kennyoliu
I've got clojurescript set up and used it a bit but I can't say I grok it. I'm past the Quick Start phase and I'm left with "what now"? What are some resources where I can learn about cljs idioms and how to put everything together? I'm quite familiar with clojure but nil when it comes to the cl

[ClojureScript] Re: Resources for Getting Started with Clojurescript

2015-03-12 Thread Ivan L
A good place to start is checking out some state of the art front end framework/libs like om or reagent on mock data. Then work backwards to how to get the data maybe first as simple as google ajax or jayq, and then evolving towards something a little more modern like sente. personally I'm sti

[ClojureScript] Optimization settings frustration....

2015-03-12 Thread Jonathon McKitrick
I have identical cljs compiler settings for my local development (main) and for an uberjar deployed to Heroku. While the local version (lein run) works fine, the uberjar version (foreman start) which is deployed to Heroku gives this error: Reference Error: pts is not defined. `pts` is of cour

Re: [ClojureScript] Resources for Getting Started with Clojurescript

2015-03-12 Thread Jamie Orchard-Hays
What's your goal? What are you trying to build? Jamie On Mar 12, 2015, at 9:46 AM, kennyo...@gmail.com wrote: > I've got clojurescript set up and used it a bit but I can't say I grok it. > I'm past the Quick Start phase and I'm left with "what now"? > > What are some resources where I can lear

Re: [ClojureScript] Resources for Getting Started with Clojurescript

2015-03-12 Thread Marc Fawzi
I found clojurescript.net to be invaluable and non-intimidating way to try new stuff until I get it right :) Also, google stuff for Clojure rather than ClojureScript unless the issue is specific to the latter. There is a ton more content about Clojure on the web. On Thu, Mar 12, 2015 at 8:50 AM,

[ClojureScript] namespacing re-frame handlers

2015-03-12 Thread Jamie Orchard-Hays
As I'm starting to explore re-frame in a playground app, one of my first questions is "how does one namespace handlers in a medium to large app?" I'm thinking you'd just simple namespace the keyname: (register-handler :foo/update-name ) Is this your approach Mike, or do you handle it di

[ClojureScript] Re: Resources for Getting Started with Clojurescript

2015-03-12 Thread Elric Erkose
This can be helpful http://appletree.or.kr/quick_reference_cards/Others/ClojureScript%20Cheat%20Sheet.pdf -- 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"

[ClojureScript] Looking for some help with :foreign-libs

2015-03-12 Thread Elric Erkose
I'm trying to use a foreign library, and not having much luck. Given the foreign-lib below, how would I access base.mod.points.one using clojurescript semantics so that I can print it to the browser console? ```clojurescript (not really) (println "point one:" base.mod.points.one) ``` The foreig

[ClojureScript] GCL advanced compilation bug-- :foo-bar and :foo_bar both become :foo_bar

2015-03-12 Thread Karl Guertin
If you have two identically named keywords, one being dash separated and the other being underscore separated, both will come out as underscore separated after getting run through advanced mode compilation and only in advanced mode. The I'm posting this here because I'm unsure if it's a bug in Cloj

Re: [ClojureScript] [ANN] thi.ng collection update (CLJ/CLJS)

2015-03-12 Thread kovas boguta
Hi Karsten, Technical usage question. I want to associate a color to each face of a cuboid, tesselate the cuboid, and end up with an array of vertices and an array of matching colors. My problem is associating the colors of the cuboid faces to their tessellated versions. AFAICT tessellation simp

Re: [ClojureScript] [ANN] thi.ng collection update (CLJ/CLJS)

2015-03-12 Thread kovas boguta
On Thu, Mar 12, 2015 at 8:18 PM, kovas boguta wrote: > > I want to associate a color to each face of a cuboid, tesselate the > cuboid, and end up with an array of vertices and an array of matching > colors. > To clarify, I want to turn the cuboid into a mesh, and then do the tessellation of the

Re: [ClojureScript] GCL advanced compilation bug-- :foo-bar and :foo_bar both become :foo_bar

2015-03-12 Thread Mike Fikes
Perhaps the same: http://dev.clojure.org/jira/browse/CLJS-1105 Fixed with a recent commit: https://github.com/clojure/clojurescript/commit/4bcc95175e4282d43ed74bf0abd670550fc40140

[ClojureScript] Re: namespacing re-frame handlers

2015-03-12 Thread Mike Thompson
On Friday, March 13, 2015 at 6:04:21 AM UTC+11, Jamie Orchard-Hays wrote: > As I'm starting to explore re-frame in a playground app, one of my first > questions is "how does one namespace handlers in a medium to large app?" I'm > thinking you'd just simple namespace the keyname: > > (register-ha

[ClojureScript] dependency ordering without :modules?

2015-03-12 Thread Tyler Solomon
Some code in my application is dependent upon some runtime specified code. The problem is quite general, so please forgive my description by way of example. I'd like this root component to look up dependent components in map. (q/defcomponent Root "The root of the application" [state] (let

[ClojureScript] Re: namespacing re-frame handlers

2015-03-12 Thread Mike Thompson
On Friday, March 13, 2015 at 1:31:01 PM UTC+11, Mike Thompson wrote: > On Friday, March 13, 2015 at 6:04:21 AM UTC+11, Jamie Orchard-Hays wrote: > > As I'm starting to explore re-frame in a playground app, one of my first > > questions is "how does one namespace handlers in a medium to large app?"