unrepl

discussing specification of an edn-based repl and its implementations.
cgrand 2017-05-24T11:14:47.993350Z

so you just need a blob.py

richiardiandrea 2017-05-24T14:35:01.711258Z

True that, you need basically some code that your eval function can understand. Klipse does this already, the whole infrastructure is built in cljs but then everything that compiles to js can be evaluated in the browser.

richiardiandrea 2017-05-24T14:36:29.748518Z

The additional step to add to the upgrade is the transpiler, call a function to convert to js before eval and call a function for converting back the result I guess

cgrand 2017-05-24T15:32:43.221137Z

Are you talking about clj-cljs or js-cljs?

cgrand 2017-05-24T15:35:31.293358Z

I'm confused each time you mention a transpiler

richiardiandrea 2017-05-24T16:11:16.206201Z

Sorry this is cljs-in-cljs and a transpiler example would be the BuckleScript one converting from ocaml to js

richiardiandrea 2017-05-24T16:12:22.232095Z

So the idea is to have Lumo or a fork as universal repl for the whole js ecosystem

richiardiandrea 2017-05-24T16:12:59.246670Z

Just noticed Unrepl in this case stands for universal repl 😀

richiardiandrea 2017-05-24T16:14:03.271978Z

It is probably better for me at some point to create a poc or something, I hope to get a bit of time soon

richiardiandrea 2017-05-24T16:25:36.540181Z

so to expand: the repl receives a function, the repl transpiles to js, the repl evals the js. Of course there should be a mechanism to discover the function that does the transpilation to js...it would be awesome if we could send it as blob but it might a fully library

richiardiandrea 2017-05-24T16:26:01.550318Z

in case of Bucklescript, this whole thing: https://www.npmjs.com/package/bucklescript

richiardiandrea 2017-05-24T16:27:34.586520Z

I agree this might be a bit out of scope here

cgrand 2017-05-24T19:59:03.349953Z

How easy it is to hook up in nodejs module resolution?

richiardiandrea 2017-05-24T22:00:26.684861Z

(If I understand the question correctly) In lumo the module resolution is done automatically, node.js takes care of it so whatever is in .node_modules gets resolved on a require.