Fork me on GitHub
#clojurescript
<
2016-10-24
>
thachmai00:10:26

does anyone know how to test a new cljsjs package?

akiroz02:10:54

boot package install?

drazisil03:10:32

I know the page says I didn't find an error, but the first link of http://clojurescript.org/guides/quick-start#dependencies is http://clojurescript.org/guides/quick-start#dependencies, unless I'm misunderstanding the point of the link. šŸ™‚ Pretty sure it's meant to point to http://clojurescript.org/reference/dependencies ?

vigilancetech06:10:04

does anyone know where I can find boot-bucket?

jrheard06:10:15

i canā€™t find any reference to that in google

jrheard06:10:16

what is it?

dnolen07:10:25

@drazisil we can probably drop that warning now - that was just because it was a wiki before and it was hard to prevent people from editing it

dnolen07:10:36

well the warning part

sivakumargsk09:10:28

Please give a suggestion. I want to use firebase in my cljs-project. so should i use cljsjs-firebase or matchbox or anyother one ?

Pablo Fernandez10:10:57

I just released version 0.4.0 of my form building library: https://clojars.org/com.pupeno/free-form/versions/0.4.0

vigilancetech11:10:48

@jrheard I don't know, but I have a program that references "spew" out of it. I think it might have something to do with AWS

mrmcc311:10:18

@sivakumargsk Iā€™ve been using firebase + clojurescript for a while and personally I find working with firebase directly to be the best approach. Especially if youā€™d like to use any of the new stuff. Easiest way to do that is via cljsjs which will just work. cljsjs usually lags a few versions behind the official sdk though

agori13:10:32

I would like to rewrite part of our platform with Clojurescript (and Regent). My concerns are about how designers would react to hiccup syntax and generally how they feel working on cljs files. Anyone has experience to share?

dnolen14:10:07

@agori I think it just depends, Iā€™ve heard a few stories where designers didnā€™t really have a problem with it

sivakumargsk14:10:24

@mrmcc3 Thanks for the information

agori14:10:50

Our designer does not code, a part from html and css šŸ™‚. But...she is surely bright and has proven to be able to move comfortably in a js file and even Java Server Faces xhtml pages.

dnolen14:10:12

@agori itā€™s also possible to have an html / css only workflow - not sure how easy it is get that with reagent but surely someone must have tried it

dnolen14:10:38

@agori might want to ask in #reagent

agori15:10:29

@dnolen I'll have a look, thanks

whilo17:10:02

@darwin have you done some more exploration in dynamic binding? I have opted to use lexical binding for now in core.async supervision.

chbm17:10:23

donā€™t know reactJS, want to play with it a bit in a simple SPA, suggestions ? reagent ? om ? something else ?

jrheard17:10:37

i like reagent šŸ™‚

chbm18:10:35

doesnā€™t it assume you know already know react

chbm18:10:45

well i might as well learn react too šŸ™‚

val_waeselynck18:10:17

@chbm I'm picking up Rum currently, it's fairly accessible

val_waeselynck18:10:05

but these various React wrappers each have their own strengths, it depends on your problem set

jrheard18:10:50

i donā€™t think reagent assumes you already know react, i hadnā€™t used react before

val_waeselynck18:10:05

me neither, but at some point I had to dive in to React documentation (which is quite good)

chbm18:10:21

will look into rum too

shaun-mahood18:10:47

@chbm: https://lambdaisland.com/ has some good intro material if you decide to go the reagent route

chbm18:10:20

:thumbsup: tkx

sophiago19:10:14

has anyone had issues with linguist (github language detection) misclassifying cljs as clj? there's no reason i can see to explain it and i'm quite busy and tired today for a manual override

Alex Miller (Clojure team)19:10:12

I looked into this a while back and concluded that it was handling clj, cljs, cljc, cljx etc appropriately https://github.com/github/linguist/blob/d6e0f74c808b6b15d99f33dfcee52a2d19a445d3/lib/linguist/languages.yml#L671-L689

Alex Miller (Clojure team)19:10:55

but it calculates the repo tag based on the total number of lines in all files, so often youā€™ll see cljs projects get misreported as js or css etc. That might happen in batch in case youā€™re not seeing immediate updates, not sure.

grav19:10:46

Have anyone had luck playing with @sgrove ā€™s http://github.com/sgrove/gamma-playground ?

peeja20:10:30

I'm getting a StackOverflowError during compilation from a macro I'm working on. Is there a useful way to log during macro evaluation? I'd like to println to the console to understand what's going on, but I believe that just writes to the .js output (which I never see, because compilation fails).

peeja20:10:04

This seems to be working:

(binding [*out* (java.io.OutputStreamWriter. (java.lang.System/out))]
  (println "Some text"))

thheller20:10:53

@peeja there is cljs.util/debug-prn

peeja20:10:02

Ah, perfect, thanks!

sophiago20:10:09

@alexmiller sorry i had to step away and just saw your response (always sooo timely). this is the first cljs repo i've pushed there so i never thought about it before, but i suspect the issue is i only pushed a file and not an entire project. so from that perspective there's really no difference between clj and cljs other than the extension and i assume that explains it, right?

Alex Miller (Clojure team)20:10:23

github linguist classifies both clj and cljs files as ā€œClojureā€ (there is no ā€œClojureScriptā€ language type)

Alex Miller (Clojure team)20:10:54

this is actually good from the perspective of language rankings like the RedMonk quarterly language ranking as it combines both into a bigger footprint

sophiago20:10:08

hmm...that's true

sophiago20:10:55

but to be clear, you're saying my assumption was correct? that in my laziness in not wanting to clean up a project file not ready for deployment and just uploading the cljs file and some others that's what did it?

Alex Miller (Clojure team)20:10:39

I donā€™t really understand a) what you are seeing or b) why it is different than what you expect, so canā€™t answer

sophiago20:10:39

oh, actually i just looked up the last time i did a manual override and once you do it once it's super easy even in this exhausted state. to the extent it matters i suppose...

jrheard20:10:00

are you seeing it report Clojure, or Javascript, or some third thing?

sophiago20:10:07

i'm seeing it report clojure

sophiago20:10:11

rather than clojurescript

Alex Miller (Clojure team)20:10:28

there is no ClojureScript as far as github is concerned

sophiago20:10:29

you're saying there is no clojuresript?

jrheard20:10:31

(that surprised me too my first time [and still kinda surprises me, but seems expected])

sophiago20:10:46

idk why i never noticed that before

sophiago20:10:09

and you're right, that would really screw up redmonk

jrheard20:10:28

aha good point, didnā€™t see that line

Alex Miller (Clojure team)20:10:58

afaik redmonk does not use clojurescript questions on stackoverflow though so it might actually be underreporting that one

sophiago20:10:54

well...we do know all those ranking are...

sophiago21:10:38

i guess i haven't looked up what redmonk claims to represent. if it's some combination of momentum and industry usage than it is the most accurate

sophiago21:10:50

there's that search engine based one that's totally off imo

sophiago21:10:05

it has "lisp" listed above every dialect of lisp, for example

sophiago21:10:21

"potential future adoption trends"

sophiago21:10:41

had to plow through a lot of doublespeak to find that

sophiago21:10:30

but if that's their metric.... i have to point out that php is #3

Alex Miller (Clojure team)21:10:33

oh yeah, red monkā€™s are a correlation of github and stackoverflow and are a reasonable approximation of the open source world

Alex Miller (Clojure team)21:10:42

tiobe is the search one and is garbage afaict

sophiago21:10:16

yes, tiobe seems not even glanced at by humans before it's published

Alex Miller (Clojure team)21:10:33

gartner does one that combines public data and private data from surveys at big companies - I think that is maybe the best methodology in theory

Alex Miller (Clojure team)21:10:52

assuming sample size is large and varied enough

sophiago21:10:24

huh. i would guess that would push clojure much further down

Alex Miller (Clojure team)21:10:03

well I mean the best methodology to give you meaningful numbers (maybe not the best spin for Clojure, I donā€™t know)

Alex Miller (Clojure team)21:10:23

I know of a lot of private non-oss Clojure, but thereā€™s a lot of private other stuff too

sophiago21:10:32

"get a job" numbers

Alex Miller (Clojure team)21:10:46

I think itā€™s hard to correlate that with use

sophiago21:10:47

maybe that does influence future development in general tho

sophiago21:10:41

that does seem particularly meaningful for an open source language in the sense of someone other than you guys putting major resources into tooling and even compilers, forking the language itself, etc.

sophiago21:10:50

i think that's been a major step with other languages: some company decides to use it to the point they develop whole ecosystems around it and release them

sophiago21:10:25

ugh, time to salvage monday šŸ˜“