This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-03-15
Channels
- # arachne (6)
- # aws-lambda (3)
- # beginners (14)
- # boot (56)
- # cider (8)
- # cljs-dev (5)
- # cljsrn (11)
- # clojure (240)
- # clojure-dusseldorf (3)
- # clojure-greece (165)
- # clojure-italy (5)
- # clojure-romania (1)
- # clojure-russia (24)
- # clojure-uk (30)
- # clojure-ukraine (3)
- # clojurescript (29)
- # core-async (6)
- # css (1)
- # cursive (25)
- # datascript (6)
- # datomic (61)
- # dirac (1)
- # events (3)
- # hoplon (1)
- # instaparse (3)
- # jobs (4)
- # juxt (28)
- # lein-figwheel (7)
- # leiningen (19)
- # luminus (1)
- # lumo (2)
- # nyc (1)
- # off-topic (19)
- # om (25)
- # onyx (4)
- # parinfer (2)
- # pedestal (23)
- # perun (20)
- # re-frame (44)
- # reagent (20)
- # remote-jobs (3)
- # ring (3)
- # ring-swagger (5)
- # rum (12)
- # slack-help (3)
- # spacemacs (25)
- # specter (62)
- # sql (16)
- # unrepl (313)
- # yada (4)
What is the state of the art of cljs evaluating cljs ? The particular use case as I'm hacking on a mini-emacs except it's HTML/DOM/CLJS instead of GTK/Elisp based. I'm a big fan of Emacs' C-h f, C-h v, C-x X-e. Thus I'm curious: what is evaluating cljs in cljs like ?
@qqq There is a namespace cljs.js
in ClojureScript that you can use to evaluate ClojureScript forms.
@qqq shameless plug, replumb is a wrapper over cljs.js
that provides common functionalities for repls
are there any online cljs compilers that support clojars? i'm interested in giving an interactive demo to a group requiring reagent and a cljs library that i wrote.
Not sure if this, http://thegeez.net/2017/02/03/crepl_collaborative_editor.html fits your purpose? It does support gists.
aye, that gets me one step closer but it looks like reagent is baked in. i'd also like to require https://clojars.org/intermine/imcljs
I notice that there's https://mvnrepository.com/artifact/org.clojure/clojurescript/1.9.495, but there's no changelog for it in https://github.com/clojure/clojurescript/blob/master/changes.md. What gives?
I believe it exists as java interop in Clojure. (but yes that function is missing with that symbol)
user=> (def random-uuid java.util.UUID/randomUUID)
CompilerException java.lang.RuntimeException: Unable to find static field: randomUUID in class java.util.UUID, compiling:(NO_SOURCE_PATH:16:1)
user=> (def random-uuid #(java.util.UUID/randomUUID))
#'user/random-uuid
I did not understand this behaviorjava.util.UUID/randomUUID
is looking for a public static UUID randomUUID;
field on the UUID class.
(java.util.UUID/randomUUID)
is looking for a public static UUID randomUUID()
method on the UUID
class
Assigning java static methods, passing them as values like you would pass clojure functions, is impossible.
this should be a good enough clone, you can obtain a string
hello. How to make the css-transition-group work? I’m trying this:
[css-transition-group {:transition-name "example"}
(if @(<re-frame.core/subscribe [:key-in-db "whatever"])
^{:key "whatever"} [:p "text"])]
It complains: TypeError: Cannot read property 'findDOMNode' of null
error occurs here:
transition: function (animationType, finishCallback, userSpecifiedDelay) {
var node = ReactAddonsDOMDependencies.getReactDOM().findDOMNode(this);
...
are there cljs functions for "here is a string; read the first cljs-string out of it" "read the first cljs-symbol out of it" "read the first cljs-number out of it"
Hello hopefully a quick one… what’re people using to test CLJS? Rhino, Node, Phantom? Mix? Particularly interested in testing re-frame looked at this not a lot of reference to what works and doesn't: https://github.com/Day8/re-frame/wiki/Testing
@nfisher lein-doo
is probably the best option for testing at the moment because you can mix and match: https://github.com/bensu/doo
@richiardiandrea cool thanks! 🙂