This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # admin-announcements (1)
- # alda (1)
- # bangalore-clj (5)
- # beginners (17)
- # boot (392)
- # capetown (4)
- # cider (16)
- # cljs-dev (24)
- # cljsrn (33)
- # clojure (106)
- # clojure-berlin (1)
- # clojure-nl (1)
- # clojure-russia (168)
- # clojure-spec (85)
- # clojure-uk (137)
- # clojurescript (83)
- # clojutre (4)
- # component (10)
- # cursive (6)
- # datavis (9)
- # datomic (11)
- # defnpodcast (15)
- # dirac (4)
- # docker (1)
- # ethereum (1)
- # hoplon (27)
- # jobs (5)
- # jobs-rus (1)
- # lein-figwheel (2)
- # luminus (5)
- # off-topic (5)
- # om (13)
- # onyx (60)
- # parinfer (2)
- # planck (12)
- # proton (2)
- # re-frame (45)
- # rethinkdb (5)
- # ring-swagger (9)
- # spacemacs (9)
- # specter (49)
- # test-check (1)
- # untangled (104)
- # yada (10)
@shaunlebron they have a blending filter (two of them are multiply and one is overlay).
Since cljs modules only work with optimizations turned on, and figwheel only works with them turned off, how do I go about developing a cljs code base with two entry points (two mains, if you will) ?
make the app work ‘normally’ with figwheel, then switch to the optimizations build and do it the hard way
there is no "normally", since there are two very different paths using some common elements
I think if you depend on a module, you should require it in any namespace that uses it
@arohner thanks for the input, I'll give the two figwheel idea a shot in dev, and use modules in prod 🙂
thheller interesting. What I really need is a way to reload code from an
:optimizations :whitespace build
@arohner: two figwheel builds works nicely, even in the same repl with
(start-autobuild ...). I end up with 2x of the shared files as well, but that's fine for dev - and I'll just use modules in prod.
I feel like I might be doing something wrong at this point because I know other libs depend on
I’m thinking it’s because I’m trying it in the repl and not actually importing the lib into a namespace so it’s not sending it to the browser. Testing that now...
huh that’s interesting, I wouldn’t thought all of goog would be available globally and only pruned under optimization. Thanks!
you'd probably spend 10mins loading "all of goog", there is sooo much stuff in there 😛
I was asked about om/om.next. I use om professionally, and I think it's great for large, long-term applications. But there are quite a few, somewhat complex concepts. So I'm wondering if others have found something more in the sweet spot for people learning the lang.
I really loved Hoplon when I used it for a couple tiny school projects. Granted, I cam in with a bit of knowledge about Lisp and Hoplon's a little different to the other frameworks, but... I found it great for getting how good code-as-data is for the web. And who doesn't understand spreadsheets?
Nice. I'll tell him about Hoplon. That was my impression as well @dnolen. Hadn't looked at it in some time though. Means a bit more coming from you 🙂
I might not be the best person to ask, there’s a lot of cool things going on these days and it’s hard to keep up 🙂
@potetm: My intro to cljs was reagent with re-frame, it was a really easy way to start (this is about a year ago). Gives a bit of a framework for architecture around reagent that took away a lot of the initial questions I had.
@shaunlebron Have you used both rum and reagent? I've used neither, but my impression is that rum might be simpler, but overall has more concepts to learn.
just a toy project without perf considerations: https://github.com/shaunlebron/t3tr0s-slides
haha, yeah that was where I was like "this seems well thought out, but not as easy as: Here's your state, here's your views. GO"
but it seems like rum let’s you start simple, which was the big appeal to reagent I think
and it has a pretty good avenue to adding features with a nice mixin model, I wrote some mixins for a canvas component, was just like hooking lifecycle events in Om or plain React. didn’t lose any power there
CLJs go loops ‘yield’, right? I have a long intensive function, and other stuff (webRTC) appears to be breaking because I’m not giving control back. If I converted to a go loop, would that solve the problem?
that really depends, you still have to park a go-loop so it doesn’t block the JS event loop
as long as the go-loop periodically comes up for air by reading from a channel with
(<! …), yeah that’ll work
the dispatch mechanisms hooks into the browser event loop, we defer to