klipse

practicalli-john 2016-11-10T14:24:51.000592Z

@viebel how would I get (doc map) to work in klipse? I have tried (clojure.repl/doc map) and (cljs.repl/doc map) but I get "Type Error - undefined" error messages.

Yehonathan Sharvit 2016-11-10T14:44:52.000594Z

doc is not yet supported in klipse

Yehonathan Sharvit 2016-11-10T14:46:49.000595Z

but you can workaround it with (:doc (meta #‘map)) See an example here: http://app.klipse.tech/?cljs_in=(%3Adoc%20(meta%20%23%27map))%0A&eval_only=1

Yehonathan Sharvit 2016-11-10T14:50:05.000596Z

@jr0cket ⬆️

practicalli-john 2016-11-10T14:54:28.000597Z

Thanks. Hmm, that not something I would like to put in front of Clojure beginners though. For ClojureBridge content I'll just add a link the online docs at http://clojuredoc.org for specific functions, rather than in klipse for now. Its probably better they get used to looking at http://clojuredocs.org website as it has other examples too...

Yehonathan Sharvit 2016-11-10T14:54:55.000598Z

yep!

2016-11-10T18:17:01.000603Z

here

Yehonathan Sharvit 2016-11-10T18:17:15.000604Z

Your work looks wonderful!

2016-11-10T18:17:34.000605Z

thanks!

Yehonathan Sharvit 2016-11-10T18:18:09.000606Z

I gave it a try and basically, one can do a funny thing - run cljs_live inside klipse

Yehonathan Sharvit 2016-11-10T18:18:20.000608Z

(sorry for the long url)

2016-11-10T18:21:14.000609Z

hah, neat. so the external-libs option takes any src directory

Yehonathan Sharvit 2016-11-10T18:21:27.000610Z

yeap! not compiled

2016-11-10T18:21:59.000611Z

is there a way to automagically dig into clojars directories?

Yehonathan Sharvit 2016-11-10T18:22:14.000612Z

that would be great

Yehonathan Sharvit 2016-11-10T18:22:18.000613Z

but not for the moment

Yehonathan Sharvit 2016-11-10T18:22:28.000614Z

usually, I take code from github

Yehonathan Sharvit 2016-11-10T18:22:46.000615Z

The problem is that with the deps of the libs

Yehonathan Sharvit 2016-11-10T18:23:01.000616Z

For the moment, you have to add them manually into the external-libs parameter

Yehonathan Sharvit 2016-11-10T18:23:19.000617Z

Theoretically, I could read the project.clj and resolve deps

Yehonathan Sharvit 2016-11-10T18:23:52.000618Z

but I would need the repo of each dep - and it is not part of the project.clj

Yehonathan Sharvit 2016-11-10T18:24:23.000620Z

but maybe one could check in clojars what is the repo of the dep and solve all the deps

Yehonathan Sharvit 2016-11-10T18:24:26.000621Z

makes sense?

Yehonathan Sharvit 2016-11-10T18:27:25.000622Z

@mhuebert ⬆️

2016-11-10T18:30:54.000624Z

Sorry, my internet cut out

2016-11-10T18:32:43.000625Z

Hmm. It would be nice if there was just a mirror of the files in the jar, then versioning would be aligned

Yehonathan Sharvit 2016-11-10T18:33:23.000626Z

We just need the git commit of release tag!

2016-11-10T18:34:01.000627Z

I have to run to dinner now but let's chat more later

Yehonathan Sharvit 2016-11-10T18:34:29.000628Z

sure

Yehonathan Sharvit 2016-11-10T18:34:45.000629Z

I think you opened a lot of interesting doors with cljs-live

2016-11-10T18:35:16.000630Z

a mirror is also useful because there’s so much work that can be cached. like compilation. it’s really slow making the browser compile everything from source

2016-11-10T18:35:24.000631Z

of course it depends on use-case how important that is.

Yehonathan Sharvit 2016-11-10T18:35:40.000632Z

what do u mean by a mirror?

2016-11-10T18:37:29.000633Z

at first I just meant another server that would host a cljs-subset of Clojars, where the jars are expanded (since a jar is just a bunch of files compressed together), to use like you are using git.

2016-11-10T18:38:09.000634Z

but then in addition to just mirroring jarfiles as raw source directories, there is lots to do to make it convenient for grabbing clojurescript-compiler-friendly bundles of dependencies.

2016-11-10T18:38:55.000635Z

in one swift move you could pass the client everything they need to compile whatever namespace they requested. then, like in cljs-live.compiler, this stuff is put into a client-side cache so the load-fn doesn’t have to make any more http requests.

2016-11-10T18:39:43.000637Z

ok im signing out, speak later!