unrepl

discussing specification of an edn-based repl and its implementations.
plexus 2017-05-19T06:52:43.092507Z

$ lein unrepl-make-blob
'unrepl-make-blob' is not a task. See 'lein help'.

cgrand 2017-05-19T07:31:22.507411Z

@plexus this commit is for you, sorry

1
dominicm 2017-05-19T07:55:00.794121Z

@cgrand

❯ lein unrepl-make-blob
java.io.FileNotFoundException: resources/unrepl/blob.clj (No such file or directory)
Am I doing something wrong?

cgrand 2017-05-19T07:56:40.814876Z

sigh, mkdir -p resources/unrepl

dominicm 2017-05-19T07:57:41.827618Z

I always forget that empty directories don't get added to git

cgrand 2017-05-19T08:00:33.867060Z

@dominicm this one is for you

👍 2
cgrand 2017-05-19T08:40:03.418998Z

each time one sends the blob it creates new random namespaces

cgrand 2017-05-19T08:41:37.441534Z

do you think it would be valuable to give the possibility to make it deterministic at times?

dominicm 2017-05-19T08:43:57.475795Z

Only if there's no way to know where to start the unrepl from?

dominicm 2017-05-19T08:44:25.482726Z

Alternatively you could output the "start" command in a separate file & then it can be made part of the build process

cgrand 2017-05-19T08:44:49.488420Z

I don’t follow

dominicm 2017-05-19T08:48:24.541075Z

ah, I didn't realise the blob started the unrepl too. Then I can't think of a reason then.

pesterhazy 2017-05-19T09:44:47.373884Z

@cgrand, let me dig it up

pesterhazy 2017-05-19T09:47:55.417788Z

sorry for the not-too-clean diff

pesterhazy 2017-05-19T09:49:11.435860Z

if you add a similar feature, I can update unravel to use the updated code in the next days

cgrand 2017-05-19T15:36:59.453936Z

@pesterhazy I’m looking at your commands, should’t the :doc command returns something more structured (all metadata (or a subset)? something else?)

pesterhazy 2017-05-19T15:38:42.494225Z

It should

pesterhazy 2017-05-19T15:39:16.507590Z

I just implemented the minimum to get the feature I wanted, as a proof of concept

cgrand 2017-05-19T15:39:16.507612Z

keys: :canonical-name :forms :docstring :urls :type (:macro :special ...)

pesterhazy 2017-05-19T15:39:45.519049Z

Yeah I think there's a lot to learn from existing completion libs

pesterhazy 2017-05-19T15:40:06.527578Z

The keys you mention look sensible

cgrand 2017-05-19T15:51:32.792764Z

What libs should we look at for inspiration?

dominicm 2017-05-19T15:58:57.963625Z

cider.

dominicm 2017-05-19T15:59:14.970366Z

has a surprisingly well documented list of what it returns.

dominicm 2017-05-19T16:01:10.019680Z

might be worth perusing the clients like fireplace/cider.el to find out what keys from meta they actually care about

dominicm 2017-05-19T16:01:22.024266Z

:ns is something I notice missing.

richiardiandrea 2017-05-19T16:20:22.434507Z

for completion the cider one is https://github.com/alexander-yakushev/compliment

pesterhazy 2017-05-19T17:51:12.299920Z

yeah I was thinking of compliment

pesterhazy 2017-05-19T17:52:43.332294Z

on the related topic of "inlining" dependency, there's https://github.com/benedekfazekas/mranderson and https://github.com/jafingerhut/dolly

pesterhazy 2017-05-19T17:53:24.346302Z

might be useful if we want to include a library in a payload bundle

cgrand 2017-05-19T18:19:19.899306Z

I'll look into dolly. Mranderson is a nogo