Fork me on GitHub
#planck
<
2020-04-15
>
Ahmed Hassan16:04:48

Why isn't goog.events included in Planck?

mfikes16:04:10

@ahmed1hsn It looks like it actually is.

mfikes16:04:22

$ 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 {},
...

💯 4
Ahmed Hassan16:04:18

@mfikes I was referring docs. Thanks 🙂

Ahmed Hassan16:04:15

Can we access and use browser APIs (e.g. File, Blob, Canvas etc) from Planck?

mfikes16:04:51

Planck only has JavaScript core and some additional things added to it.

👍 4
mfikes16:04:03

So, for example, there is file IO

👍 4
mfikes16:04:03

(But file IO is exposed via , mimicking )

👍 4
vigilancetech20:04:53

what version of cljs does planck use?

mfikes20:04:53

@vigilancetech You can always evaluate *clojurescript-version* in any ClojureScript environment to see

mfikes20:04:08

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.

vigilancetech20:04:33

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)?

vigilancetech20:04:56

e.g. is it locked in to certain versions like lumo?

mfikes20:04:51

@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.

mfikes20:04:28

Planck does indeed compile into it a locked version of ClojureScript.

vigilancetech23:04:55

any idea when it's going to get updated to the latest so I can play with prepl (maybe get spiral going with it)?

pyrmont23:04:37

Does self-hosted CLJS have pREPL?

pyrmont23:04:10

(At the time at least you had to add it separately because it's provided in CLJS via the Clojure JVM layer.)

mfikes23:04:15

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)

mfikes23:04:12

(I only mention this because Replete is self-hosted and Planck is derived ultimately from the same codebase.)

vigilancetech23:04:21

okay, thanks guys. I'll check it out!