Fork me on GitHub
#clojurescript
<
2016-02-15
>
zentrope04:02:38

If I send a string with #my.lib.Record{:id “1”} and cljs.reader/read-string it, how do I refer to my.lib.Record such that I don’t get a “could not find tag parser” error?

zentrope04:02:41

EDN doesn’t support records!

zentrope04:02:08

How do you register a tag handler? Where is this magic document I seem to need to read? ;)

zentrope04:02:27

Hm. register-tag-parser!.

zentrope04:02:36

That’s actually pretty amazing.

deas07:02:51

This fails for me when match is a regexp because "source" is from the prototype. Any ideas whats going wrong?

clumsyjedi07:02:48

@deas might be related to this

clumsyjedi07:02:24

I got some good advice here to upgrade my cljs installation based on the above issue and it solved it

deas07:02:29

@clumsyjedi: Thanks, seems like its CLJS-1072 striking on modern browsers.

serce08:02:12

Does anyone remember how namespace dependency graph visualization tool is called?

serce08:02:31

Just found it, asterion

mikera09:02:05

Hi all, we're very close to having core.matrix working in ClojureScript. Was wondering if anyone with a data science interest and ClojureScript expertise would be willing to give it a try?

octahedrion10:02:47

@mikera: hi, there's a project at work that may well need this...it's something I'm already using core.matrix for but it might need to work in the browser also

mikera10:02:58

Cool - any testing / feedback you can give would be great! I'm not much of a ClojureScript expert myself, so any testing in the field would be much appreciated simple_smile

anmonteiro13:02:02

it is normal that CLJS code in .cljc files takes longer to compile?

anmonteiro13:02:17

especially on reload with figwheel?

Yehonathan Sharvit16:02:03

I’m happy to introduce klipse a cljs complier and evaluator. http://app.gadjett.com/cljs_compiler/index-dev.html It’s a kind of repl that allows you: 1. to eval pieces of code 2. inspect the javascript generated by clojurescript

Yehonathan Sharvit16:02:10

feedbacks are welcome

bronsa16:02:58

@viebel: looks nice, but what's the point of having both results of cljs and js evaluation? they'll be the same

bronsa16:02:56

also it's not clear how to start evaluating (I assumed C-RET but that was just a guess, I had no idea from the site)

Yehonathan Sharvit17:02:14

thanks @bronsa for the ctrl-enter

Yehonathan Sharvit17:02:39

cljs and js are not the same. Try (map inc ‘(1 2 3))

bronsa17:02:02

not really, looks good simple_smile

Yehonathan Sharvit17:02:33

please share it with your friends simple_smile

jaredly19:02:00

is there a way to dynamically create tests without macros? e.g. I have a vector of test data, and I want to deftest for each so that they can fail independently. I looked into deftests source and it requires an interned var, which I can’t generate without macros afaik. Is there a better way to address this case?

meow19:02:53

@jaredly: There is a #C08LK2DH7 channel

jaredly19:02:44

😄 always a signal/noise/readership tradeoff. I’ll try there too

richiardiandrea20:02:59

@jaredly: in my boot patch I was just initializing the counters, then executing is statements (which update them) and then collecting results...I know not nice but it can be done without macros

jaredly20:02:34

hmmmm interesting

richiardiandrea20:02:51

you need to create a ref

richiardiandrea20:02:04

there is a lot of boot stuff I know

richiardiandrea20:02:46

"test" tasks can include anything, are, is, whateva

richiardiandrea20:02:07

in there I am running tests in parallel too 😄

johanatan23:02:03

Is it possible to define a var with a computed name;?

johanatan23:02:07

Bummer. Looks like intern isn't supported in ClojureScript. Is there any other way to achieve this?