The J interpreter doesn't do anything fancy. Output is formatted and given to the session manager, then the interpreter waits for the next input line. Output buffering and other high-falutin' stuff are done by the session manager.
The interpreter does call the fflush() routine on file writes as part of the operation (1!:n) I am amused by the comment "Roger is in there doing something". It brings to mind the von Kempelen chess automaton. ----- Original Message ----- From: Henry Rich <[EMAIL PROTECTED]> Date: Sunday, April 27, 2008 12:55 Subject: [Jprogramming] Does J flush files before returning to immediate mode? To: 'Programming forum' <[email protected]> > I'm curious about a behavior I have seen. > > I have a program that creates a few hundred files using 1!:2, > and types > a message as it creates each one. Files are about 4MB each. > > It zips through them, and the messages fly by. But then, > after all the > messages have been typed, there is a delay of maybe 10 seconds before > J will accept another command. The program is finished, > but Roger is > in there doing something. > > Any idea what? ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
