This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-11-24
Channels
- # admin-announcements (25)
- # beginners (132)
- # boot (89)
- # cider (26)
- # clara (12)
- # cljs-dev (10)
- # cljsrn (11)
- # clojure (151)
- # clojure-germany (8)
- # clojure-russia (1)
- # clojurescript (137)
- # cursive (33)
- # datavis (28)
- # datomic (3)
- # devcards (8)
- # hoplon (5)
- # immutant (11)
- # jobs (4)
- # ldnclj (58)
- # lein-figwheel (7)
- # off-topic (95)
- # om (114)
- # onyx (91)
- # parinfer (38)
- # portland-or (1)
- # re-frame (26)
- # reagent (1)
jaredly - that page gives three options. I've used lein - in which case [quil "2.2.6"] can be put as a dependency.
right. the clojurescript quickstart https://github.com/clojure/clojurescript/wiki/Quick-Start#dependencies talks about getting jars directly though 😕 and it's not clear how to do it
If you used lein they would end up in a .m2 directory in your userspace. But that's a rather indirect method of gettings jars from Clojars I guess.
@jaredly: https://clojars.org/repo/ has directory browsing enabled. so you can navigate pretty easily to find the jar at https://clojars.org/repo/quil/quil/2.2.6/quil-2.2.6.jar
But then it has it's own dependencies, and probably those dependencies have dependencies as well
So if you require a non-trivial library it's probably easier to move over to a build tool like boot (or lein)
Something like reagent is probably still in the trivial category - it only requires React, but looking at the clojars page for quil, I don't think you would want to take care of it's dependencies by hand.
Looking at our compilation logs, cljs.pprint.cljs is taking quite a long time to compile. What’s involved in making the compiler create and use an analysis cache for this file?
@danielcompton: I just tried (require 'cljs.pprint)
at the REPL. It is nearly instantaneous for me. And a cljs/pprint.cache.edn
file is created in my out
dir. Maybe you have the :cache-analysis false
compiler option set?
nope we don’t have :cache-analysis false set
A cache file exists for pprint.cljs
This line Compiling out/cljs/pprint.cljs
suggests no analysis cache is used
whereas I see other lines like
Reading analysis cache for jar:file:/Users/Daniel/.m2/repository/com/andrewmcveigh/cljs-time/0.3.14/cljs-time-0.3.14.jar!/cljs_time/extend.cljs
has anyone had success getting typed clojure going w/ cljs? I'm just getting weird errors Assert failed: Cannot find namespace: clojure.core.typed.check-ns-cljs
This was a gnarly bug to track down http://dev.clojure.org/jira/browse/CLJS-1491
So I'm playing with self-hosted CLJS a la http://yogthos.net/posts/2015-11-12-ClojureScript-Eval.html
(defn eval-str [s]
(eval (empty-state)
s;(read-string s)
{:eval js-eval
:source-map true
:context :expr}
(fn [result] result)))
I'm assuming I could potentially define them within the result fn
, but maybe there's a better way? Perhaps replacing the (empty-state)
with something?
@dnolen: btw I notice that with advanced compilation the code stops working, is there an extra step for that?
making bootstrapped work with advanced is impossible without bootstrapping Google Closure into ClojureScript
@yogthos: if I understand correctly you’d need to port Google Closure Compiler to Javascript. I doubt someone will take on that work unless Google somehow decides they need it.
@yogthos: ha, not interested in it myself. But if somebody else ports a 6 year old Java codebase to ClojureScript in their copious amounts of free time, I won’t complain 😄
Js is already an implementation detail that you generally don’t have to worry about, and even with a common bytecode you’d still have to do interop
@dnolen: https://github.com/clojure/clojurescript/blob/master/src/main/cljs/cljs/js.cljs#L530
would it not be possible to define a namespace in opts
that would be used as the execution context in @yogthos’s example?
any word yet on a Reagent compatible with the new React-dom stuff (keep getting deprecation warnings 😉 )
@joelkuiper: RC should be showing up soon https://github.com/reagent-project/reagent/issues/184
nice, thanks!
@yogthos: yeah I remain unconvinced that WebAssembly will ever buy us anything of value
Any VM supporting WebAssembly specification would have to expose multithreading from what I understand.
@jaen and anything post MVP … 4-5 years before they actually bring any reality to the hand waving
@gabe: yes it seems you are assuming things about Clojure(Script) eval that just aren’t the case
once you realize the only real business value for WebAssembly is portable C++ then your idealism for things that benefit alternative languages drops pretty fast
if the boundary between C++ / JS / DOM isn’t correctly designed then these will just be walled execution environments talking over some inexpressive interface
Am I being obtuse, missing something or is the google closure api documentation really bad when it comes to dates/times?
@dnolen: one last question on this topic. Can you point me to a use of eval
passed an opts
map that contains :ns
?
I have just open-sourced a sample extension using chromex library (with some docs in the readme): https://github.com/binaryage/chromex-sample suggestions on idiomatic clojurescript API design/usage would be appreciated, thanks
@dnolen: we are getting closer to a consistent good set of recommendations for new developers. Thinking about having the figwheel-template
generate scripts soon and sending folks down that route from the get go. Thoughts??
@bhauman: no thoughts from me on that, I’m a horrible person to ask about templates since I don’t use them
@dnolen: I hear ya, just wondering if there is a consistent get started story broiling in the back of your mind after the quick start. There is no rush on this. Just letting you know I've been thinking about it a bunch and if you have thoughts percolating don't hesitate to drop me a note.
I’m not interested in seeing stuff like Figwheel + Ring or anything remotely like that
k. I’m seeing something weird. my production build, which worked fine in 1.7.48 doesn’t work yet in 1.7.170
deterministic build order + Google Closure Compiler dep bump broke our :modules support (since fixed)
it’s possible something about these 2 changes are related to your problem but you will need to have a theory about the issue you are seeing
I am wanting to use clojurescript to pull records from dynamodb .. i found hildebrand library ... is it good to use inside of clojurescript?
@clojuregeek: it seems designed for ClojureScript, haven’t tried it myself though
the author has been doing some fun stuff with CLJS + AWS Lambda - https://nervous.io/clojure/clojurescript/aws/lambda/node/lein/2015/07/05/lambda/
yeah, i saw that I have to build a dashboard that will list records in different dydb databases
it looks like the query functions loads into a channel.. but when i include core async into project.clj and in the cljs file ... I have a message ANALYSIS ERROR: No such namespace: clojure.core.async
, in figwheel log.
@clojuregeek: sounds like you may be trying to load clojure.core.async
instead of cljs.core.async
ok yeah I am trying to use the clojure one not cljs, let me see if i can figure it out.. thanks!
@clojuregeek: There might be something useful from this Conj talk https://www.youtube.com/watch?v=w14NJkV5yAg Here's the repo https://github.com/aerostat/serverless
thanks.. i was there... dont remember dynadb ... but i'll watch again ..
Pretty sure dynamo db was their back end, and they're definitely using it in some fashion in https://github.com/aerostat/serverless/blob/master/sso/src/sso/core.cljs
yah i guess they did mention dyndb for storing the logins.
Cool that you're actually using dynamo db from cljs, though.
if i can get it working