Fork me on GitHub
#unrepl
<
2017-04-30
>
mfikes15:04:02

@cgrand I think I have Unrepl properly working in Planck now with some rough experimental code: https://gist.github.com/mfikes/e44cf07e8217db2112facf90b550ab74

mfikes15:04:10

I haven't drilled down into the nesting and dynamic binding stuff to ensure it is all OK. But, the simple interactions appear to work. 🙂

cgrand15:04:11

binding: it works as long as eval is not really async

cgrand15:04:33

for async eval to work, some cooperation from clojurescript would be required

cgrand15:04:58

after talking with @bbloom I’m trying to put up a proposition for that

mfikes15:04:10

Cool. In the Planck case, it is sync, like this

(defn eval [form cb]
  (cb (planck.core/eval form)))

cgrand15:04:38

something unrelated: is there a way with JsCore to inspect a closure (to look at the closed over locals)?

mfikes15:04:22

I've never seen any introspective API functions like that. (The public API to JavaScriptCore is fairly conservative and small.)

cgrand20:04:28

@mfikes introspective JS VM would enable a cljs version of Portkey (https://github.com/cgrand/portkey).