Fork me on GitHub
#clojurescript
<
2017-06-11
>
qqq06:06:35

Anyone have recommendations for a js matrix library? I'm lookint at https://github.com/scijs/ndarray vs https://github.com/waylonflinn/weblas

luxbock14:06:43

@qqq I believe core.matrix works with CLJS as well

lxsameer16:06:22

hey folks. does any one knows how to embed figwheel and cljs repl in a pedestal application ?

lxsameer16:06:08

I can use :init and :destroy but i don't know if it's a good idea or not

dnolen16:06:49

and put clojure.core.server socket REPL in front of Figwheel

dnolen16:06:15

works great in my experience

dnolen16:06:36

mixing in nREPL is also easy with this setup

lxsameer16:06:44

thanks, I'll try that

lxsameer16:06:03

@dnolen do you have any project with that setup on github ?

dnolen16:06:18

I don’t, but I’ll probably write up a guide about it in the near future

dnolen16:06:03

doesn’t cover the Component part but you can probably sort that easily I think

lxsameer16:06:37

good, I'm trying to get away from components

lxsameer16:06:44

that's the best example

Roman Liutikov17:06:01

Could be done for any cljs wrapper. But doesn't look like there's a real need.

dvingo18:06:14

looks like there's some space for contributions, would be cool to have a drop in use of it any single atom cljs apps

dominicm18:06:17

Interesting, thanks!

Lambda/Sierra19:06:57

Keep getting an weird error with Rum (0.10.8) and Sablono (0.8.0):

Attempting to call unbound fn: #'sablono.util/camel-case

      (defc my-component
      ^--- Attempting to call unbound fn: #'sablono.util/camel-case

Lambda/Sierra19:06:27

Figwheel 0.5.9, ClojureScript 1.9.521

Lambda/Sierra19:06:11

ns declaration looks like

(ns com.example.my-app
  (:require
   [rum.core :as rum :refer [defc]]))

Lambda/Sierra19:06:41

Adding sablono.util to the :require clause has no effect.

Lambda/Sierra19:06:26

The error seems to occur on the first instance of defc containing an HTML tag with attributes.

rauh19:06:52

What if you require the CLJ namespace sablono.util?

rauh19:06:33

Ie. not from CLJS. But on the CLJ repl.

rauh19:06:08

The error seems to be CLJ, since CLJS would just emit a warning, "undeclared function".

rauh19:06:09

Bad news is: If you do a normal lein fighweel you don't really have CLJ repl available 😕 You'd need to run a normal CLJ repl (with the classpath/deps the same as your CLJS repl) and connect to that one from you editor

rauh19:06:23

then you can debug Macros, see why the function isn't there.

Lambda/Sierra19:06:58

@rauh That appears to be it. Thank you!

rauh19:06:30

Just curious: Why wasn't the function there?

Lambda/Sierra19:06:32

I have no idea.

Lambda/Sierra19:06:19

Possibly something to do with Figwheel reloading.

Lambda/Sierra19:06:28

Or my own CLJ REPL-based reloading.

rauh19:06:29

I see, that makes sense if you wipe CLJ namespaces. Normally that namespace should be automatically be required.

potetm20:06:51

I just happened to pop in here and see this convo. This is exactly the kind of situation tire-iron was supposed to improve. https://github.com/potetm/tire-iron

potetm20:06:22

/shamelessplug

urbank20:06:55

Has anyone tried the master branch of react (fiber) with clojurescript and one of the libraries?

lxsameer21:06:18

does any one knows about this problem on chrome:

because it violates the following Content Security Policy directive: "script-src 'unsafe-inline' 'unsafe-eval' 'strict-dynamic' https: http:". 'strict-dynamic' is present, so host-based whitelisting is disabled.

qqq21:06:48

I now have a piece of code where: compile with :pseudo-names true ==> works remove :psuedo-names true ==> runtime error

beta103622:06:48

what's the best way to put the data from a nodejs stream.Readable on a core.async channel respecting backpressure?