Fork me on GitHub
#unrepl
<
2017-11-17
>
cgrand08:11:45

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

dominicm08:11:10

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

cgrand08:11:39

in node you would need to hook into require

dominicm08:11:26

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)

cgrand08:11:26

right require and js/require

dominicm08:11:59

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

dominicm08:11:22

Or you could do what everyone else does, override require

cgrand12:11:02

@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

cgrand12:11:56

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

cgrand12:11:16

^R to force evaluation

cgrand13:11:16

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