Author: Russell Reagan
Date: 09:32:58 05/01/04
Go up one level in this thread
On May 01, 2004 at 11:42:54, William Bryant wrote: >I could use some basic suggestions or recommendations or resources for two basic >programming concepts. > >1. I want one program (the interface) to open another program (the engine). > the engine would use stdin, stdout for communication with the calling program. > >2. Once the engine is open, and pondering, how do I _efficiently_ monitor stdin >during pondering to > know when to stop searching? > >I will be runnin in Mac OSX (built on BSD core) using C not Java. > >Thank you in advance. > >William There is probably some Mac OSX specific API that will allow you to do this, but I would choose one of the free (and much more portable) cross-platform GUI development toolkits. One is at http://www.wxwidgets.org. The class wxProcess will allow you to open a process and get its handles to stdin, stdout, and stderr. Also, from my experience, C# would be a good choice for something like this. Actually, any of the .NET languages which have access to the FCL (Framework Class Library) will do. You could use C# or managed C++. The FCL has a class that will let you open a process and write to it and read from it. It is the System.Diagnostics.Process class. I'm not sure how well the .NET projects like Mono and DotGNU support MacOSX, so you might have to look into that. Both of those choices (wxWidgets and the .NET FCL) will provide you a lot of easy to use classes to do just about anything you want (interprocess text pipe communication, networking, GUI development, and so on).
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.