Why isn't goog.events
included in Planck?
@ahmed1hsn It looks like it actually is.
$ plk
ClojureScript 1.10.597
cljs.user=> (require 'goog.events)
nil
cljs.user=> js/goog.events
#js {:EventId #object[Function],
:Listenable #object[Function],
:ListenableKey #object[Function],
:Event #object[Function],
:EventLike #js {},
...
@mfikes I was referring docs. Thanks 🙂
Thanks @ahmed1hsn; logged https://github.com/planck-repl/planck/issues/1029
Can we access and use browser APIs (e.g. File, Blob, Canvas etc) from Planck?
Planck only has JavaScript core and some additional things added to it.
So, for example, there is file IO
(But file IO is exposed via <http://planck.io|planck.io>
, mimicking <http://clojure.java.io|clojure.java.io>
)
what version of cljs does planck use?
@vigilancetech You can always evaluate *clojurescript-version*
in any ClojureScript environment to see
The version of Planck you have also most likely indicates the version of ClojureScript it is using in the one-liner it spits out when you start up a REPL with it.
okay, maybe the better question should be: how hard is it for me to build it with the version that I want (e.g. the latest)?
e.g. is it locked in to certain versions like lumo?
@vigilancetech It is pretty easy to re-build Planck. See https://github.com/planck-repl/planck#building The currently-released version of Plank matches the released version of ClojureScript.
Planck does indeed compile into it a locked version of ClojureScript.
any idea when it's going to get updated to the latest so I can play with prepl (maybe get spiral going with it)?
Does self-hosted CLJS have pREPL?
I was exploring adding it in this PR: https://github.com/planck-repl/planck/pull/912
(At the time at least you had to add it separately because it's provided in CLJS via the Clojure JVM layer.)
Planck is already running the latest ClojureScript (1.10.597). There is some work that Ray McDermott did in Replete in support of pREPL, but I don't know if it is limited to the Clojure side of things and the web implementation. (See https://github.com/replete-repl/replete-web)
For example, https://github.com/replete-repl/replete-web/tree/master/src/replete#prepl-results
(I only mention this because Replete is self-hosted and Planck is derived ultimately from the same codebase.)
okay, thanks guys. I'll check it out!