Re: Possible ClojureScript compiler issue...

2016-10-17 Thread Thomas Heller
Yeah the issue can be quite confusing since the error produced may complain about protocols you are not even calling anywhere. I've run into it several times when the code ended up checking protocols on js/window. Since that has all the munged global variables closure produces just about anythin

Re: Guidelines/Recommendations for namespaces and qualified keywords

2016-10-17 Thread Mauricio Aldazosa
On Mon, Oct 17, 2016 at 9:46 PM, James Gatannah wrote: > > > On Saturday, October 15, 2016 at 10:17:15 PM UTC-5, Josh Tilles wrote: >> >> I’ve got a couple questions for Alex Miller and/or the other Cognitect >> folks. >> > > That isn't me. I'm just chiming in from the peanut gallery. Must of my

Re: Guidelines/Recommendations for namespaces and qualified keywords

2016-10-17 Thread James Gatannah
On Saturday, October 15, 2016 at 10:17:15 PM UTC-5, Josh Tilles wrote: > > I’ve got a couple questions for Alex Miller and/or the other Cognitect > folks. > That isn't me. I'm just chiming in from the peanut gallery. Must of my "experience" so far stems from converting my toy projects from pri

Re: [ANN] clj-xchart – A charting/plotting library for Clojure

2016-10-17 Thread Mars0i
On Monday, October 17, 2016 at 3:37:51 PM UTC-5, Jean Niklas L'orange wrote: > > Hi Marshall, > > On 17 October 2016 at 07:54, Mars0i > > wrote: > >> Looks very nice! Thanks Jean Niklas. I've been using Incanter for >> charts, which has been fine so far for my needs, but clj-xchart looks like

Re: [ANN] boot-bundle, DRY for dependencies

2016-10-17 Thread James Gatannah
Sweet! And thanks! I've been trying to find the time to learn enough boot to write this for myself. On Saturday, October 15, 2016 at 8:28:58 AM UTC-5, Borkdude wrote: > > Only a few lines of code, but it does the job: > > https://github.com/borkdude/boot-bundle > > This library lets you define a

Re: Possible ClojureScript compiler issue...

2016-10-17 Thread Antonin Hildebrand
I think one reason why these issues are reported infrequently is because it is really hard to track them down. I can imagine people disable :advanced optimizations or restructure their code instead of hunting down the real cause. John went really far to isolate/demonstrate the issue. Thanks for

Re: Java interop: dealing with Java implementation instances vs interfaces

2016-10-17 Thread Aaron Cohen
My guess is that you're getting a message related to there being no overload of the Producer.send method that accepts a String. In your Java code, you're calling String.getBytes you need to do the same in you Clojure code. --Aaron On Sun, Oct 16, 2016 at 2:42 AM, hiskennyness wrote: > Not sure

code from spec with clojure.spec?

2016-10-17 Thread Joe Corneli
As a running example related to the ideas in http://clojure.org/guides/spec#_spec_ing_functions, please consider the following function: (defn mapper [x y] {:tacos (vec (range x)) :burritos (vec (range y))}) Example input and output: (mapper 2 4) ;=> {:tacos [0 1], :burritos [0 1 2 3]} O

Re: [ANN] clj-xchart – A charting/plotting library for Clojure

2016-10-17 Thread Jean Niklas L'orange
Hi Marshall, On 17 October 2016 at 07:54, Mars0i wrote: > Looks very nice! Thanks Jean Niklas. I've been using Incanter for charts, > which has been fine so far for my needs, but clj-xchart looks like it will > make it easier to make nicer charts, and it would avoid loading much of > Incanter w

Re: Help with using spec

2016-10-17 Thread Alex Miller
I would back way up to the beginning and reconsider your ::board spec. Generally for any data where the structures are homogenous, you're probably better off using one of the collection specs like coll-of (or map-of, every, every-kv) rather than a regex, which should primarily be used when you

Help with using spec

2016-10-17 Thread 'Jason Courcoux' via Clojure
Hi. I've been experimenting with clojure spec and a game of life problem, and have been trying to spec a rectangular board of unknown size made up of a collection of rows, each of which contain an equal number of cells. My initial attempt was:- (def cell? #{0 1}) (s/def ::row (s/coll-of cell? :m

Re: Is there an easy way for s/keys spec to work against both qualified/unqualiffied keys at the same time?

2016-10-17 Thread Mauricio Aldazosa
On Sun, Oct 16, 2016 at 11:40 PM, Ikuru Kanuma wrote: > Mauricio, thanks for the response! > I agree that that gets what I asked for done, but that solution is in > essence writing the same > qualified/unqualified version of the spec twice and sounded redundant, > which lead to my question. > I g

Re: Java like static typing for Clojure?

2016-10-17 Thread Colin Yates
Thanks Sean. On 17 October 2016 at 19:21, Sean Corfield wrote: > We have 1.9 Alpha 13 in production. > > We’ve had nearly all the 1.9 Alpha builds in production. After all, right now > 1.9 = 1.8 plus clojure.spec with some minor additions to clojure.core (new > predicates). > > Sean Corfield --

Re: Java like static typing for Clojure?

2016-10-17 Thread Sean Corfield
We have 1.9 Alpha 13 in production. We’ve had nearly all the 1.9 Alpha builds in production. After all, right now 1.9 = 1.8 plus clojure.spec with some minor additions to clojure.core (new predicates). Sean Corfield -- (970) FOR-SEAN -- (904) 302-SEAN An Architect's View -- http://corfield.org/

Re: Java like static typing for Clojure?

2016-10-17 Thread Colin Yates
I have finally found time to watch Stu's video. It was very useful introducing clojure.spec (even if I thought he over-egged the pudding somewhat ;-)). I know there is a back port, but are there any other strategies of using this on 1.9 and building against 1.8? I was thinking of building a tower

Re: Java like static typing for Clojure?

2016-10-17 Thread Stephen Lester
Hi there! There is an 'optional type system' for Clojure in 'core.typed': https://github.com/clojure/core.typed But it also seems like others who were using such a type system have stepped away from it: https://circleci.com/blog/why-were-no-longer-using-core-typed/ On 10/15/2016 03:14 PM, Did

Call for Contributions: BOB 2017 - Berlin, Feb 24, 2017 (Deadline Oct 30)

2016-10-17 Thread Michael Sperber
Clojure proposals are very welcome at BOB! BOB Conference 2017 "What happens when we use what's best for a change?" http://bobkonf.de/2017/en/cfp.html Berlin, February 24 Call for Contributions

Re: Java like static typing for Clojure?

2016-10-17 Thread Timothy Baldridge
I highly recommend this talk on Spec by Stu Halloway. Spec is a new feature coming in Clojure 1.9, and this talk goes into the pros/cons of static typing and tests and shows how there can be a better way. https://www.youtube.com/watch?v=VNTQ-M_uSo8 On Sun, Oct 16, 2016 at 5:58 PM, Alan Thompson