unrepl

discussing specification of an edn-based repl and its implementations.
cgrand 2017-10-18T12:58:57.000150Z

Ok I’ve got an interesting comment from someone trying unravel: long strings are not shortened

cgrand 2017-10-18T13:00:37.000475Z

I believe it’s a valid point and I’m certainly going to add #unrepl/string [prefix #unrepl/... {:get (business as usual)}] to the format. Anyone has a counterpoint?

👍 1
pesterhazy 2017-10-18T13:04:13.000193Z

I think that's an excelent idea

dominicm 2017-10-18T13:04:50.000116Z

Can't see anything immediately wrong

cgrand 2017-10-18T13:17:52.000104Z

what should be a reasonable length before elision? 80?

dominicm 2017-10-18T13:19:04.000665Z

I'm going to jump in and suggest we're very precise about this also: do we work on glyphs, byte lengths, etc.?

pesterhazy 2017-10-18T13:20:07.000228Z

80 sounds about right to me

cgrand 2017-10-18T13:20:08.000565Z

why? why do we need to be precise? precision -> coupling -> brittleness

pesterhazy 2017-10-18T13:20:31.000293Z

I'm guessing we can make it configurable at some point (though not necessarily initially)

dominicm 2017-10-18T13:20:46.000034Z

@cgrand because there's been a number of bugs in things I've used around cutting off a character half-way through and then not renconvening that.

dominicm 2017-10-18T13:21:15.000175Z

fun fact, the auto-complete I wrote for nrepl was originally broken because the bencode library I used was doing # of bytes rather than number of characters.

cgrand 2017-10-18T13:21:26.000651Z

@pesterhazy it would be controlled by a dynvar like depth & breadth elisions

pesterhazy 2017-10-18T13:21:52.000010Z

.substring should do the right thing though, @dominicm?

cgrand 2017-10-18T13:21:56.000519Z

@dominicm would “I hereby promise to not cut a surrogate pair” be enough?

cgrand 2017-10-18T13:22:15.000305Z

@pesterhazy substring don’t care about surrogates

dominicm 2017-10-18T13:23:22.000330Z

@cgrand Probably. I think it's good to be ahead of this kind of thing is all, because string cutting seems fraught with peril historically.

👍 1
dominicm 2017-10-18T13:25:12.000297Z

yeah, I think "not cutting surrogate pairs" covers the cases I can think of.

cgrand 2017-10-18T13:42:38.000384Z

Thanks @dominicm you made a very valid point! I kept saying people how I’ve been lucky to early attract a core of people interested in unrepl, challenging, questioning, criticizing the protocol.

cgrand 2017-10-18T13:43:06.000206Z

Any plan of coming to Berlin on Nov. 8th?

dominicm 2017-10-18T14:03:46.000095Z

Hmm, that's fairly close, and my girlfriend does want to see Berlin :thinking_face:

dominicm 2017-10-18T14:04:21.000415Z

ah, but it'll be term time. So I doubt I could bring her. So I guess not. Unfortunate.