[ClojureScript] Overview of templates, ways of getting started?

2016-03-21 Thread mars0i
Clojure: I learn to use Leiningen or boot (in my case only Leiningen), and then I learn Clojure. Did that. Love it. Wrote moderately significant application. Very comfortable with Clojure. Clojurescript: Leiningen or boot, but either way it's more complicated. OK. Want to get started.

[ClojureScript] Re: Overview of templates, ways of getting started?

2016-03-24 Thread mars0i
option does > and why it is there. You will get very fast with this once you have done it a > couple of times. > > > Just my 2 cents, > Thomas > > On Tuesday, March 22, 2016 at 4:58:47 AM UTC+1, mars0i wrote: > > Clojure: I learn to use Leiningen or boot (in my ca

[ClojureScript] Re: ANN: ClojureScript 1.9.89 - cljs.spec & :preloads

2016-07-20 Thread mars0i
This version isn't supposed to have implemented spec/double-in yet, right? I get "Use of undeclared Var cljs.spec/double-in". Sorry to ask--I don't know my way around JIRA well, and searching for "double-in" brings up a lot of irrelevant tickets. Thanks much. -- Note that posts from new

[ClojureScript] Enhance spec/double-in for open/half-open intervals?

2016-07-20 Thread mars0i
clojure.spec/double-in defines a spec that tests whether a double is greater than or equal to a minimum value and less than or equal to a maximum value. This is useful for many purposes, but sometimes you need to test whether a double is greater than a minimum or less than a maximum. There

Re: [ClojureScript] Re: svg element disappears when figwheel icon disappears

2016-07-04 Thread mars0i
On Monday, July 4, 2016 at 3:54:27 PM UTC-5, Linus Ericsson wrote: > Are you aware of that reagent make react have the DOM under quite tight > control by default? > > Have you made wrapped your graph along the lines of >

[ClojureScript] Re: svg element disappears when figwheel icon disappears

2016-07-04 Thread mars0i
This behavior seems to have to do with Reagent; it goes away when I get rid of Reagent and use an HTML file instead. -- 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] Re: ANN: Klipse for Kids

2016-08-02 Thread Mars0i
This looks very, very nice. The instant feedback is especially helpful. (You are probably already working on is capturing errors to make them less daunting.) Klipse reminded me of Carin Meier's beautiful and poignant Hello World for the Next Generation.

[ClojureScript] svg element disappears when figwheel icon disappears

2016-07-03 Thread mars0i
Though I have quite a bit of experience with Clojure, but I'm *very* new to Clojurescript and to all of the tools mentioned below except (sort of) d3.js. I have a little experimental app using reagent with figwheel. I'm using NVD3, a d3.js chart library, to create an SVG chart. I finally got

[ClojureScript] Re: Clojurescript Tutorials

2016-07-03 Thread mars0i
I'm just starting out with Clojurescript (though I know Clojure pretty well), so my comments might be misguided. However, to me it seems like it would be difficult to get very far with Clojurescript without knowing a little bit about Javascript. I have had to use what I know about Javascript

[ClojureScript] Re: where is the format function

2016-09-12 Thread mars0i
There's also cljs.pprint/cl-format, which is portable between Clojurescript and Clojure (there as clojure.pprint/cl-format). -- 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

[ClojureScript] No :exclude option for :require in Clojurescript?

2016-09-25 Thread mars0i
This compiles in Clojure 1.9.0-alpha12 but not in Clojurescript 1.9.229: (ns free.matrix-arithmetic (:require [clojure.core.matrix :as mx :exclude [e*]])) The error in Clojurescript is: clojure.lang.ExceptionInfo: Only :as, :refer and :rename options supported in :require / :require-macros;

Re: [ClojureScript] Why isn't giving end-users a repl dangerous?

2016-09-25 Thread mars0i
ious actions that > run on the browser of all your visitors > > On Sunday, 25 September 2016 19:47:03 UTC+3, mars0i wrote: > > On Sunday, September 25, 2016 at 12:32:36 AM UTC-5, Brandon Adams wrote: > > > The users already have a javascript repl with the same abilities and > &g

Re: [ClojureScript] Re: No :exclude option for :require in Clojurescript?

2016-09-26 Thread mars0i
On Monday, September 26, 2016 at 10:13:58 AM UTC-5, Alex Miller wrote: > I think this would do what you want: > > (ns free.matrix-arithmetic >   (:require [clojure.core.matrix :as mx]) >   (:refer clojure.core.matrix :exclude [e*])) Thanks very much. I didn't understand that the :refer

[ClojureScript] Re: No :exclude option for :require in Clojurescript?

2016-09-26 Thread mars0i
> :exclude is not a valid option here (it's not having any effect). (doc > require) mentions only :as and :refer as valid options in the libspec. > :exclude is an option for :refer and :refer-clojure, not for :require. > > It's maybe interesting that the spec for ns does not report this problem

[ClojureScript] Re: cljs or js, I'm in a trouble

2016-09-18 Thread mars0i
On Sunday, September 18, 2016 at 6:14:02 PM UTC-5, Alan Moore wrote: > Another red pill rescue... ;-) > > I know how you feel... My day job is all in C++ and JS so it is nice to go > home and work in a sane language. > > I sometimes apply the general principles I've learned to the day job and I

[ClojureScript] Re: [ANN] clojurescript.org

2016-08-17 Thread mars0i
No one's commented on this, but I keep wanting to comment. I know that it's the same content as the old site, and the same format as clojure.org, but I still think it's great. (Sorry!) What Clojurescript warrants. -- Note that posts from new members are moderated - please be patient with

[ClojureScript] Why isn't giving end-users a repl dangerous?

2016-09-24 Thread mars0i
A good rule of thumb: One should worry that giving end-users access to a full-fledged eval function can be dangerous, because users can then do anything that the language can do, and cause damage to their own system or to others'. There are numerous Clojurescript repls embedded in public web

Re: [ClojureScript] Why isn't giving end-users a repl dangerous?

2016-09-25 Thread mars0i
On Sunday, September 25, 2016 at 12:32:36 AM UTC-5, Brandon Adams wrote: > The users already have a javascript repl with the same abilities and > permissions as the cljs repl you give them. Oh! Good point. Got it. Thanks. -- Note that posts from new members are moderated - please be patient

[ClojureScript] Re: Variant macros with reader conditionals?

2016-11-25 Thread mars0i
On Friday, November 25, 2016 at 10:27:19 AM UTC-6, Tommi Reiman wrote: > Hi, > > Bumped into the same while writing spec-tools macros for both clj & cljs. You > can ask from which code it's emitting. There is a good example in > Datascript. > >

[ClojureScript] Variant macros with reader conditionals?

2016-11-24 Thread mars0i
I'm trying to define two versions of a macro, one for Clojure and one for Clojurescript, using reader conditionals. I end up seeing the Clojure version in Clojurescript. I assume this happens because the macro definition is processed by Clojure, before Clojurescript runs, so it's the #?(:clj

Re: [ClojureScript] Re: Variant macros with reader conditionals?

2016-12-06 Thread mars0i
On Monday, December 5, 2016 at 12:20:39 AM UTC-6, Yehonathan Sharvit wrote: > Also keep in mind that with self host clojurescript reader conditionals > always branch to :cljs even for macros Ah, I was wondering about that. More complexity. Or maybe less, if one could move to an

Re: [ClojureScript] Google Closure Compiler in JavaScript Released

2016-12-06 Thread mars0i
On Tuesday, December 6, 2016 at 11:31:59 AM UTC-6, David Nolen wrote: > Yes we are aware of this and we do not intend to pursue since it offers > nothing in the way of real benefits. > > > It does seem potentially useful to third party efforts around bootstrapped > ClojureScript, but that's