This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-12-04
Channels
- # adventofcode (100)
- # announcements (7)
- # architecture (1)
- # aws (14)
- # beginners (209)
- # calva (30)
- # cider (5)
- # cljdoc (2)
- # cljs-dev (37)
- # cljsrn (2)
- # clojure (133)
- # clojure-dev (20)
- # clojure-finland (1)
- # clojure-italy (10)
- # clojure-nl (19)
- # clojure-spec (56)
- # clojure-uk (49)
- # clojurescript (57)
- # clojurex (8)
- # core-async (2)
- # core-logic (1)
- # cursive (38)
- # data-science (19)
- # datomic (28)
- # devcards (3)
- # duct (8)
- # emacs (28)
- # figwheel (1)
- # figwheel-main (31)
- # fulcro (2)
- # jobs (1)
- # kaocha (1)
- # klipse (2)
- # mount (6)
- # nrepl (43)
- # off-topic (20)
- # pathom (3)
- # pedestal (1)
- # re-frame (15)
- # ring-swagger (1)
- # shadow-cljs (47)
- # spacemacs (19)
- # sql (20)
- # tools-deps (58)
- # unrepl (13)
- # vim (5)
i'm checking a patch for data.avl. I have no spidermonkey or v8 installed but is it possible to run the unit tests in node?
@nbtheduke last weekend 😛 so in roughly one year. But there's plenty of other Clojure conferences (ClojureD in Germany, Dutch Clojure days here in Amsterdam, etc. )
Haha aw bummer! I’ll have to watch for that next year then. Looks like it was North Carolina? I could do that trip, damn. Thanks for the heads up.
how should I get my cljs dev running on port 8090 with a repl?
clj --main cljs.main -w src -p 8080 -s localhost:8090 --compile my-app.core -r
?maybe someone has a minimal tools.deps cljs.main project laying around I can look at?
I want essentially the same as the quickstart, but my own index.html and a different port
clj --main cljs.main -w src -p 8090 --compile my-app.core -r
serves the right index.html page on localhost:8090, but I see a call in the console to localhost:9000/repl
since port has to be written out to generated source, maybe there is a caching issue here
yes, I tried it (but with port 8090). what works is: I see a page loading my index.html. the only thing not working is the repl
well, I cleared the out dir and specified it with -d
. In out/clojure/browser/repl.js I see:
/** @define {number} */
goog.define("clojure.browser.repl.PORT",(9000));
$ find .
.
./index.html
./deps.edn
./src
./src/app
./src/app/web.cljs
$ rm -rf out && clj --main cljs.main -d out -p 8090 -c app.web -r
$ cat src/app/web.cljs
(ns app.web)
(println "Hello world...")
$ cat deps.edn
{:deps {org.clojure/clojurescript {:mvn/version "1.10.439"}}}
just to sanity check, what should the script tag look like if use -d out
, /out/main.js
or /main.js
?
I have set it to <script src="/out/main.js" type="text/javascript"></script>
. When I compile without -r
and visit the index.html page via $ python -m SimpleHTTPServer 8090
it works, I see Hello world
in the console
Has anyone tried to integrate a reactjs datagrid with ClojureScript data structures?
Hi all. When setting :optimizations
to :advanced
, it seems that dependency JS files do not get optimized using Closure compiler, they just get copied instead. Is it possible to enable all Closure compiler advanced optimizations for dependencies too?
@igrishaev If you use :npm-deps
, then those go through GCC
@mfikes Got it. Do you know what the reason behind this distinction in this regard is?
It is likely that :npm-deps
goes through GCC because GCC is inherently used to process NPM deps
@mfikes thanks a lot for the quick responses. I appreciate it.
@ichernetsky :foreign-libs
is an old feature intended to allow people to use libraries which just aren't going to make it through advanced compilation (already minified, not going to work, etc.)