Fork me on GitHub
#clojurescript
<
2017-05-13
>
qqq06:05:09

is there a systematic way to debug: "my code works in optimizations none" BUT NOT in "optimizesona advanced" or does it just require guessing which function it's dying on ?

qqq06:05:36

@anmonteiro : thanks // turned out bug was: both -none and -advanced were broken but somehow -none was on old version of code that worked thus it incorrectly appeared that -advanced broke the build

qqq06:05:52

1. I'm aware of aget. 2. There is no acall. 3. Using aget, how do I rewrite (.callFoo obj 2 3) ?

qqq06:05:05

is it just ((aget obj "callFoo") 2 3) ?

gazaxian07:05:20

Does anyone know of a performant cljs / clj 3d vector maths lib? Rolling my own but it’ll be dog slow 🙂

qqq07:05:54

I have heard very good thing about https://github.com/thi-ng/geom

gazaxian07:05:30

cheers man, will check out

gazaxian07:05:13

yeah that’s load better than mine 😄

gazaxian07:05:48

oh awes, it has a load of webgl buffer stuff

qqq07:05:14

I still don't have a project that uses http://thi.ng, but every time I search for some library related to 3d graphics in clojure, some subpart of http://thi.ng always pops up.

dominicm08:05:28

@qqq as an aside, aget only works with arrays. If it works with objects that's purely a coincidence.

dominicm08:05:47

goog.object/get is what you want.

qqq08:05:43

@dominicm : ah, thanks! the 'a' in 'aget/aset' stands for array ?

Pablo Fernandez09:05:11

How can I access the lein project version in a ClojureScript app?

thheller09:05:03

@pupeno why would you need to? but short answer is you can't.

Pablo Fernandez09:05:19

@thheller to include it in error reports to Sentry.

thheller09:05:52

you can probably get something semi useful using :closure-defines and some env trickery

darwin11:05:13

(.call (aget obj "callFoo") obj 2 3) to be 100% correct, because callFoo might want to work with this

theasp14:05:13

Is there something explaining the rationale for the renaming of cljs.spec to cljs.spec.alpha?

borkdude14:05:10

Is this a sane way to read stdin in Node? I’m not yet that familiar with that platform:

theasp14:05:27

Perfect, thanks!

theasp14:05:47

There is an example there for reading from STDIN

thheller14:05:25

@borkdude ^- asked that 😉