klipse

flyboarder 2017-08-12T18:52:53.657920Z

@viebel I’d like to use klipse to implement an in app DSL, suggestions?

Yehonathan Sharvit 2017-08-12T19:47:08.942446Z

What do you want to achieve exactly @flyboarder?

flyboarder 2017-08-12T19:50:17.959239Z

@viebel ideally i’d like to use klipse + sandbox -> then upload file

flyboarder 2017-08-12T19:51:12.964015Z

I figured I would check for the files when the app loads the main page and then load them

Yehonathan Sharvit 2017-08-12T19:57:13.994877Z

@flyboarder what do u mean by sandbox and what files do u have in mind?

flyboarder 2017-08-12T19:59:28.006406Z

clojurescript files, I’d like to limit execution to a small collection of namespaces (custom DSL) and upload the resulting code to a filestore to be loaded by my application at runtime, i thought I could use klipse as a starting point

flyboarder 2017-08-12T20:01:00.015195Z

I would probably store and load the files over websocket

Yehonathan Sharvit 2017-08-12T20:03:48.029665Z

The best for you would be to take a look at https://github.com/viebel/klipse/blob/master/src/klipse/lang/clojure.cljs#L178-L181

Yehonathan Sharvit 2017-08-12T20:03:53.030033Z

@flyboarder

flyboarder 2017-08-12T20:06:42.043949Z

ah ok so klipse is just returning things as strings

Yehonathan Sharvit 2017-08-12T20:07:32.048087Z

it converts the clojure object into string

flyboarder 2017-08-12T20:08:24.052297Z

is it using a browser repl in the background at all?

flyboarder 2017-08-12T20:08:50.054454Z

or just the object conversion you linked?

Yehonathan Sharvit 2017-08-12T20:09:00.055397Z

no. it only uses cljs.js/eval-str

flyboarder 2017-08-12T20:09:20.057232Z

i see ok, that clears things up!

Yehonathan Sharvit 2017-08-12T20:09:39.058787Z

you could use cljs.js/eval-str by yourself also

Yehonathan Sharvit 2017-08-12T20:10:01.060714Z

until you need to add namespaces

Yehonathan Sharvit 2017-08-12T20:10:11.061621Z

then you have to add a bit of code

Yehonathan Sharvit 2017-08-12T20:10:23.062740Z

you could see how Klipse does it

flyboarder 2017-08-12T20:11:07.066371Z

ill poke around the klipse code some more , thanks!

Yehonathan Sharvit 2017-08-12T20:11:17.067223Z

no problem

Yehonathan Sharvit 2017-08-12T20:11:29.068164Z

let me know if you need further guidance

flyboarder 2017-08-12T20:11:43.069292Z

cheers! :thumbsup: