This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-02-09
Channels
- # announcements (4)
- # beginners (71)
- # boot (258)
- # braid-chat (7)
- # business (3)
- # cider (5)
- # cljs-dev (5)
- # cljsrn (64)
- # clojure (154)
- # clojure-canada (1)
- # clojure-poland (112)
- # clojure-russia (290)
- # clojurebridge (1)
- # clojurescript (60)
- # community-development (1)
- # core-async (25)
- # cursive (9)
- # data-science (1)
- # datomic (40)
- # editors (14)
- # events (2)
- # hoplon (2)
- # jobs (3)
- # ldnclj (51)
- # lein-figwheel (2)
- # luminus (1)
- # off-topic (5)
- # om (57)
- # onyx (29)
- # overtone (1)
- # parinfer (52)
- # portland-or (1)
- # proton (17)
- # quil (2)
- # re-frame (77)
- # reagent (1)
- # ring-swagger (20)
- # spacemacs (1)
- # test-check (4)
- # testing (13)
- # yada (1)
also sente can run on immutant and clojure-nginx as well, doesn't require http-kit anymore
i see, so sente is more like a http://socket.io all-in-one solution, and chord is websocket specific
Yeah, though it seems to have less problems than http://socket.io used to have
It's so frustrating when clojurescript libraries are documented in the fashion "it's just like in clojure, with the following differences". Similar with clojure, when they expect Java knowledge.
But yeah, it can be vexing - for example having to read transit-cljs, transit-cljs and transit-java to be sure you understand what it's doing completely.
I try to add tests to some cljs code. adzerk-oss/boot-cljs-example has a test task, but it doesn't actually run the test that is in the source code. The example in crisptrutski/boot-cljs-test apparently uses a different test runner called doo
. Can I use the cljs.test
test runner?
I've only tried this and it worked well - https://github.com/boot-cljs-test/testem-runner - don't know about other plugins; there's probably higher chance someone in #C053K90BR will know.
Why isn’t there a resolve or ns-resolve in ClojureScript?
You can't do it at runtime, because a) the compiler is not available, b) that wouldn't work with advanced optimisation - either code will break, or you will have to stop using that optimisation level
Here's resolve - https://github.com/clojure/clojurescript/blob/master/src/main/clojure/cljs/analyzer/api.clj#L141-L150
And here's ns-resolve - https://github.com/clojure/clojurescript/blob/master/src/main/clojure/cljs/analyzer/api.clj#L193-L200
Argh 😞
I have a circular dependency that I’m not sure how to resolve.
I’m confused: No such namespace: cljs.analyzer.api. Why is it not finding it?
Ah… nevermind. I haven’t implemented any macros, I was just accessing the file from clojurescript.
Hello, aot question here. I need to aot compile src/main/clojure/migae/servlets.clj to build/exploded-app/WEB-INF/classes. I've studied to docs on filesets and experimented but I'm stumped. I can't even get this to work: (core/deftask compile-clj "compile clj" [] (bi/aot :all))
@mobileink: is that a boot thing?
Not sure what you mean. I'm writing a boot module for google app engine development; does that answer your question?
@mobileink: maybe better asked in #C053K90BR
no worries
does anyone here have experience with using cljs on Meteor? there are some examples and blog posts from years ago, but i wonder whether it has become easier
i found a lein plugin that helps with cache busting by substituting hashes for your compiled js into html files, but now i can’t find it again 🙁
Has anyone tried leafletJS in ClojureScript before? I would appreciate some help..thanks
@progzilla: I have, though it’s been a while.
oh awesome...ok. Am actually still growing in clojure. Did you encounter any major challenge...just asking before I go deep into using it
If you specify code splitting in the project.clj
is there a reason if no files appear (only main.js which contains everything)?
E.g.
:compiler {:main portfolio.core
:asset-path "js/compiled/out"
;; :output-to "resources/public/js/compiled/portfolio.js"
:output-dir "resources/public/js/compiled/out"
:modules {
:index {
:output-to "resources/public/js/compiled/index.js"
:entries #{portfolio.containers.index}
}
:about {
:output-to "resources/public/js/compiled/about.js"
:entries #{portfolio.containers.about}}
}
:source-map-timestamp true
:parallel-build true
:optimizations :advanced}}}}
the resources/public/js/compiled
contains main.js
, not index.js
or about.js
When I used Scala.js they were yet to have a React framework. I came to cljs from Scala.js. There seemed like a lot more ideas and maturity here. Lots more going on.
But Scala.js worked just fine. Do they even have a React framework now? I prefer ClojureScript the language as well as it trains you to be functional.
I was especially attracted to the ideas behind Om Next, as sort of a return to 4GL programming where the view the user interacts with comes directly from the database structure.
At the time I was involved there wasn't much of a community either. I'm sure that will have expanded by now.
Okay interesting. I’m relatively new to clojurescript so I was curious what scalajs had going for it that cljs didn’t
I always hear a lot about types, but I never have had a chance to realize their value because I mostly program in JS
But I had to do terrible things (like write my own parser) as the data (its type structure) I was loading from the server changed. Much easier not to have types for that part.
I'm the opposite. But using a framework will make up in some ways for the lack of types.
No problem. The comparison is kind of interesting I think. Will be interesting to see if Scala.js takes off. Seemed to be a fizzer wrt to people actually using it.