Code center > Bugs and fixes
Peter, will Hybrid IM work with your IM?
Botsareus:
I have created a 'hybrid IM' option.
It uses both your 'PeterIM' and my 'LocalIM' together. I also instructed 'LocalIM' to let the user choose the 'Local' transfer rate.
All 'LocalIM' does is move files using the file move code from .NET as I explained before.
However, the last time I ran 'PeterIM', it seemed like it was looking for files that where already moved. Is this a big issue?
edit: Numsgil can correct me on this, but, I am pretty sure .NET does not move files that are currently open.
Peter:
Sorry, I'm just slow on the uptake. What's the goal of the hybrid IM?
And what is it exactly doing?
How did it seem to be looking for files that were already moved?
It does put all files in a list and then processes it. If you mess with the files in between it'll whine.
In C# the way it runs would be translated to calling EnumerateFiles and then a File.open for each file.
Botsareus:
--- Quote ---If you mess with the files in between it'll whine.
--- End quote ---
Yes, this is the behavior I observed.
The goal of hybrid IM is to move robots from the "out" folder to the "in" folder at certain intervals and to use PeterIM at all other times.
Primary usage I envision is on internet enabled terminals running of one file system.
Peter:
--- Quote from: Botsareus on March 14, 2014, 07:51:46 PM ---The goal of hybrid IM is to move robots from the "out" folder to the "in" folder at certain intervals and to use PeterIM at all other times.
--- End quote ---
To teleport the bots back into the sim it came from? If so, why?
Botsareus:
Oh, not at all.
It is designed to work when you have more then one instance of Darwinbots running on a single computer or on terminals connected by the same file system.
Due to how the IM code works, each instance evenly distributes all robots across all simulations from the "in folder.'
Navigation
[0] Message Index
[#] Next page
Go to full version