unrepl

discussing specification of an edn-based repl and its implementations.
cgrand 2017-11-17T08:35:45.000147Z

It is jvm centric but not class centric. I think something equivalent could be possible for js too

dominicm 2017-11-17T08:38:10.000168Z

@cgrand self hosted js has a function which is called to resolve a namespace. I suspect you couldn't do the same for javascript objects though… or could you? Maybe on newer browsers you could with getter proxies…

cgrand 2017-11-17T08:39:39.000133Z

in node you would need to hook into require

dominicm 2017-11-17T08:40:26.000058Z

For some reason I'd been thinking about this in the context of someone running (foo.bar/baz) and not in terms of the actual contract which is (require)

cgrand 2017-11-17T08:45:26.000318Z

right require and js/require

dominicm 2017-11-17T08:46:59.000071Z

I think there are some internals to js/require that one can tweak, as they're accessible.

dominicm 2017-11-17T08:51:13.000046Z

https://github.com/eclipsesource/J2V8/issues/187 module._findPath or something.

dominicm 2017-11-17T08:51:22.000016Z

Or you could do what everyone else does, override require

😠 1
cgrand 2017-11-17T12:45:02.000215Z

@pesterhazy so basic multiline editing and history is working but autodoc is half broken (does not always show up in multiline) and “up”/“down” are still mapped to history management

cgrand 2017-11-17T12:45:56.000323Z

return is now inhibited when input is malformed or cursor not at the end

cgrand 2017-11-17T12:46:16.000376Z

^R to force evaluation

cgrand 2017-11-17T13:29:16.000021Z

hmm typing (without submitting) #=(java.lang.System/exit 0) in unravel terminates the server