This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-01-13
Channels
- # admin-announcements (6)
- # beginners (51)
- # boot (164)
- # braid-chat (49)
- # cider (10)
- # clara (17)
- # cljs-dev (13)
- # cljsjs (51)
- # cljsrn (10)
- # clojars (42)
- # clojure (195)
- # clojure-bangladesh (102)
- # clojure-berlin (8)
- # clojure-canada (1)
- # clojure-chicago (19)
- # clojure-colombia (4)
- # clojure-denmark (6)
- # clojure-russia (15)
- # clojure-ukraine (7)
- # clojurescript (257)
- # code-reviews (10)
- # community-development (292)
- # core-async (13)
- # datomic (26)
- # dirac (4)
- # dunaj (5)
- # dysphemism (5)
- # events (21)
- # funcool (15)
- # hoplon (115)
- # instaparse (31)
- # ldnclj (15)
- # mori-fork (43)
- # mount (5)
- # off-topic (18)
- # om (195)
- # onyx (13)
- # proton (9)
- # re-frame (11)
- # reagent (44)
- # slack-help (14)
- # slackpocalypse (1)
- # spacemacs (10)
- # yada (23)
@actsasgeek: you need to use the library in your program
ah, like a regular :require in the (page) at the top?
@actsasgeek: right - when i did the dashboard, cljsjs wasn't a think and i added the bootstrap css manually
ok and if you do need to add stuff manually, say a 3rd party JS library, I’m a bit confused as to what is required and what worked and what has changed.
if I have a file foo.js
, how do I use it with Hoplon?
I’ve seen things about adding foo.inc.js
to src/<whatever>/foo.inc.js
but then also assets/js/foo.js
or not also? I guess the question is…how would you add JustGage today?
right
yeah back when i wrote that article, we had a system for automatically including JS - super easy
today i would add (script ...)
tags to the hoplon markup and not do advanced compile
ah, okay. Interesting.
micha has had some ideas about how we can be as easy as old hoplon while still leveraging cljsjs
the main outstanding problem is the treatment of css which accompanies many libs like bootstrap
I haven’t been doing much on the front end in a while (always fun to get back in the game) what is cljsjs?
micha has proposed making cljs wrappers for css files, so that they can be included the way js/cljs files are
it's an initiative to package many js libs for cljs consumption based on some conventions, https://github.com/cljsjs/packages
wouldn't the granularity be dead namespace though? like the css load would be a top level expression, so the only way it wouldn't happen is if that entire ns is elided
or maybe would it never be elided? since it' sa top level form for side effects
I keep getting compiler errors in notify when I restart the castra-notify-chat server and still have a client running. Here's the compiler error: Caused by: clojure.lang.Compiler$CompilerException: java.lang.RuntimeException: Unable to resolve symbol: priority-map-keyfn in this context, compiling:(notify/notification_api.clj:15:26) at clojure.lang.Compiler.analyze (Compiler.java:6543) clojure.lang.Compiler.analyze (Compiler.java:6485) @micha?
rebuilding notify to fix this is very wrong, especially as I am not modifying notify. 😞
I thought perhaps the problem was a defonce on the atom holding the prioity-map, so I had removed that.
anyway, I do not expect any answers. I'll keep at this. maybe I will observe something else.
And it feels very much like somehow I am modifying notify. Though I am pretty sure I am not. But I'll take further precautions. 😞
@micha this is wierdness. Every time I run boot dev it downloads the wrong version of priority-map.
@laforge49: so, you're working on a chat app?
priority-map 0.0.2 is the oldest version and that is what keeps getting downloaded.
Earlier I had forgotten to add priority-map to build.boot and it was pulling down this old version. but now I am specifying it.
[?] org.clojure/clojure ? 1.7.0 org.clojure/clojure org.clojure/clojurescript ? 1.5.1 compojure ring hoplon/castra ? 1.4.0 org.clojure/data.priority-map ? 1.3.0 hoplon/hoplon ring/ring-defaults
[?] org.clojure/data.priority-map ? 0.0.7 org.clojure/data.priority-map ? 0.0.2 hoplon/hoplon
javelin depends on it
@alandipert: how have you been, my friend?
@laforge49: does it have a compelling underlying concept
I'm just exercising the notify project which is intended to overcome a weakness of castra
@alandipert Any reason for not updating javelin?
just haven't tested with it
it's in there to support the experimental clojure version of javelin, which i never use
I am close to a release. I can upgrade javelin on my own system as a snapshot for now. Then we can figure if it would be OK to push it as a snapshot when I do my release.
@micha Hmm. If I refer only to profile-map-keyfn in 0.0.7, which does not exist in 0.0.2, do you think that would work? Testing now.
OK @alandipert it looks like I am fine to release without changing javelin. Changing my require seems to do the trick: (ns notify.notification-api (:require [castra.core :refer [defrpc session]] [clojure.data.priority-map :refer [priority-map-keyfn]]) (:import [java.util UUID Comparator]))
@laforge49: great! yeah. it might be a good idea to graduate javelin-clj to be a separate library
hey yall, has anyone tried parallel builds with boot-cljs? I have this in my build.boot:
(cljs :compiler-options {:output-to "main.js"
:parallel-build true}
:source-map true)
not sure if I did that wrong but there doesn’t seem to be any speedup
i haven’t looked into it too deeply - I’m just wondering if anyone’s experienced something similar
oh god I didn’t update the org.clojure/clojurescript version
that did it
yeah, about twice as fast 😄