svernacul has quit [Remote host closed the connection]
flip214 has joined #slime
<flip214>
Hi. I'm adding JSON encoding to swank. The remaining issue is that a simple command to switch encoding over doesn't work, as the multithreaded swank
<flip214>
has no synchronization between running an EMACS-REX form and reading the next.
<flip214>
So READ-MESSAGE would have to auto-detect the encoding (based on #\( vs. #\{).
<flip214>
I could also offer slots in *EMACS-CONNECTION*, but as this should be read in DECODE-MESSAGE passing a simple value to READ-MESSAGE is too soon;
<flip214>
the loop will already have started READ-MESSAGE before the command to switch was processed.
<flip214>
So the slot would need to contain something mutable (eg. a list)
<flip214>
whose identity can be kept (by appending a new en- and decoder)
<flip214>
Or JSON decoding with auto-detection could be hardcoded in with some stub function that returns an error, and needs to be redefined to switch over; that wouldn't work per-connection, though.