REPL I/O flushing in sly #433
Replies: 2 comments 1 reply
-
I think SLIME uses a so-called We could add it back but I would hope for some hook provided by the implementation directly. There is also Open to suggestions. FTR the SBCL REPL doesn't do what @mustiboost wants, but the Allegro REPL does. |
Beta Was this translation helpful? Give feedback.
-
Given the test code:
sly REPL waits for 10 seconds and then prints out
all at once, instead of one by one every second as slime, or slima (on atom), or even ielm/elisp (just mentioning elisp because i'm talking from a user perspective and it's a lisp that has common roots with CL).
On the sbcl repl you start in the command line it's different and all the numbers appear at once after 10 seconds. You can use
(finish-output)
in both sly and sblc command line repl to achieve the desired results, of course, but I think that should be unnecessary. Also most people do not use just sbcl or any other "inferior lisp" on the command line. I think even without a(finish-output)
call the numbers should show up 1 second apart on the same line. That makes the most sense. It does not seem like a big deal in this example, but who knows where else this "issue" may crop up, in contexts that are much more critical. I mean, think about it, every time (format t ...) is called something should show up on the screen and not just wait in the repl io buffer, unless we really want it to wait there, right?What do you guys think? Any major drawbacks to my suggestion?
Beta Was this translation helpful? Give feedback.
All reactions