This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-11-09
Channels
- # alda (9)
- # announcements (1)
- # beginners (6)
- # boot (140)
- # cbus (2)
- # cider (27)
- # cljs-dev (19)
- # cljsrn (17)
- # clojure (104)
- # clojure-art (1)
- # clojure-brasil (5)
- # clojure-colombia (2)
- # clojure-russia (146)
- # clojure-sg (3)
- # clojurescript (64)
- # clojurex (1)
- # cursive (17)
- # data-science (22)
- # datomic (41)
- # editors-rus (5)
- # events (1)
- # hoplon (61)
- # ldnclj (35)
- # lein-figwheel (1)
- # off-topic (1)
- # om (119)
- # onyx (214)
- # re-frame (3)
- # reagent (13)
- # robots (5)
- # slack-help (1)
- # yada (17)
@drewverlee: elm tries to be very frp, putting events and things in streams
cljs is basically compiling clojure to javascript, which means immutability + lisp syntax
@tmtwd and @robert, thanks!
@tmtwd and @roberto for @drewverlee asking about elm - what about Zelkova? https://github.com/jamesmacaulay/zelkova
oh dear, my figwheel setup just broke down all of a sudden. in chrome’s network tab I get 404’s from jsloader:197
when it tries to load the updated files. I have no idea what’s going on
@dottedmag I suspect something was introduced that keeps more of cljs.core
alive but any real program should probably still be the same size
optimizing for "hello world" isn't really a goal worth pursuing since you are basically always going to use what cljs.core
offers (eg. the persistent collections)
@thheller: True, I am really wondering whether there is some issue with retaining code which should be purged, which could manifest itself in larger programs too.
so it is probably just a map or something like that used in cljs.core
which keeps that code alive which was removed before
@dottedmag: if it affected larger projects we usually hear about it immediately
@dottedmag: DCE issue should be fixed now, far as I could tell it would have mostly affected forward declares
Hi guys. This would seem stupid but I'm trying to run my clojurescript web app as a stanalone without figwheel and I don't know how to do that. Is there some good article how to start an app with ring (but I dont have handler, I use index.html as a start point)? When I start with figwheel I just type "lein figwheel" and the app is started on 3449 port. Thanks.
@bojanx100: Look up cljsbuild
@bojanx100: So you actually want to deploy your app and not run it in some sort of "dev" mode?
If that is the case then you may want to package and deploy it as a jar file, maybe this will help you http://darrennewton.com/2015/03/08/sour-mash-getting-your-clojure-into-a-jar/
Yea, I would like to get to the point where I say "lein ring uberwar" but I can't do that until I configure the rest
I don't think that you need a war file, a jar file with embedded http server like jetty or http-kit or alike will do it.
Does anyone have any experience using stuartsierra/component
in ClojureScript? Particularly when the result of a component starting up would be asynchronous?
For example:
(defrecord MyAsyncComponent [config value]
component/Lifecycle
(start [this]
(get-async-value config #(assoc this :value %))
this)
(stop [this]
(stop-async-value (:value this) #(assoc this :value nil))
this))
Would this be valid component? Do I have anyway of validating that it started?@peterschwarz: Components are immutable values, so your #(assoc this :value %)
will have no effect.
Hmm, maybe I’m misunderstanding the documentation then
start
and stop
must return the updated version of the component record.
assoc
also returns a new value.
That makes sense. Also, you are possibly answering my question as well - not exactly possible to startup an async component.
Unless I’m still missing something
If the "start" process requires asynchrony, you would need to create a mutable container — like an atom
— inside your component and modify it in the callback function.
Of course <smacks forehead>. Thanks @stuartsierra!
You're welcome!
anyone know if it's possible to use core.async as a cljs export into vanilla JS land for those unfortunate to have a twisted JS architecture to fit in? Or alternatively if there's a core-async JS port similar to the transducers-js port?
if you write a regular cljs function that wraps some core.async channel stuff, would that be the right angle for integrating two code bases, where you want some JS thing to call a function that effectively put something onto a channel?
@kevink: Yes, you just have to point to your css-dir using the :css-dirs
key in your figwheel options, and then make sure garden is running and it should all work.
@shaun-mahood: ah, thanks. it took me a while to figure out that i had :css-dirs under the cljsbuild figwheel config instead of at the root of project.clj.
Is there a function to get a list of components that will re-render with a given query? i.e. which components will re-render based on :a-query in: (om/transact! '[(foo {} [:a-query])]
Hi everyone! I wanted to show off a clojure/script data viz library I've been working on lately. It's an early release, so feedback is appreciated. https://github.com/dvdt/gyptis
Lots of contributions to CLJSJS are currently queued up and I feel like I’m increasingly becoming the bottleneck. While there are some other awesome people like @crisptrutski and @juhoteperi often helping with merging PRs it’s probably a good idea to try increase the number of people keeping an eye on PRs and issues. I wrote up a couple of things how you can help here (https://github.com/cljsjs/packages/blob/master/CONTRIBUTING.md) and just created #C0E66E1H7 to answer questions around becoming a maintainer. Please join in there if you’re interested in helping this community effort