[Jprogramming] stdin/stdout

bill lam bbill.lam at gmail.com
Fri Mar 30 15:20:37 HKT 2007


Was the chess engine actually designed to communicate with other programs with 
stdin/stdout?  As Joey pointed out, stdin/stdout usually buffered so that it may 
not be suitable for interactive communication.  I guess you have to find out the 
exact communication protocol first.

JC Coez wrote:
> I would like to use a chess engine , such as Arion 
> http://transversale.fr/Arion/Arion.htm . I am writing a GUI to play 
> chess with J (using grid) and would like to add as an extra, such an 
> engine. This program is a windows application using stdin and stdout to 
> read chess moves and write possible solutions. I tried other similar 
> engines without success. I think I miss something in the use of 
> pipes...or is it impossible to do it ?
> 
> ----- Original Message ----- From: "Björn Helgason" <gosinn at gmail.com>
> To: "Programming forum" <programming at jsoftware.com>
> Sent: Thursday, March 29, 2007 4:10 PM
> Subject: Re: [Jprogramming] stdin/stdout
> 
> 
>> Give us an example of what it is you are doing and/or trying to do
>>
>> 2007/3/29, JC Coez <jc.coez at wanadoo.fr>:
>>>
>>> Thanks Björn,
>>> I did try the shell, fork and spawn, but it does not work in my case.  I
>>> tried to use the verbs createPipe and CreateProcess but without success.
>>> Instead J is not responding...The createProcess is fine but when I 
>>> want to
>>> Read or Write thru a Pipe, I have to close the process manually.
>>> Any other track ?
>>> Thanks for help
>>> JC Coez
>>>
>>> >
>>> > ----- Original Message -----
>>> > From: "Björn Helgason" <gosinn at gmail.com>
>>> > To: "Programming forum" <programming at jsoftware.com>
>>> > Sent: Wednesday, March 21, 2007 11:37 AM
>>> > Subject: Re: [Jprogramming] stdin/stdout
>>> >
>>> >
>>> >> Try out
>>> >>
>>> >> require'task'
>>> >>
>>> >> shell
>>> >> fork
>>> >> spawn
>>> >>
>>> >> 2007/3/21, JC Coez <jc.coez at wanadoo.fr>:
>>> >
>>> >
>>> >
>>>
>>>
>>> ----------------------------------------------------------------------
>>> For information about J forums see http://www.jsoftware.com/forums.htm
>>>
>>
>>
>>
>> -- 
>> Björn Helgason, Verkfræðingur
>> Fugl&Fiskur ehf, Þerneyjarsund 23, Box 127
>> 801 Grímsnes ,t-póst: gosinn at gmail.com
>> Skype: gosiminn, gsm: +3546985532
>> Landslags og skrúðgarðagerð, gröfuþjónusta
>> http://groups.google.com/group/J-Programming
>>
>>
>> Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans
>>
>> góður kennari getur stigið á tær án þess að glansinn fari af skónum
>>          /|_      .-----------------------------------.
>>         ,'  .\  /  | Með léttri lund verður        |
>>     ,--'    _,'   | Dagurinn í dag                     |
>>    /       /       | Enn betri en gærdagurinn  |
>>   (   -.  |        `-----------------------------------'
>>   |     ) |        (\_ _/)
>>  (`-.  '--.)       (='.'=)
>>   `. )----'        (")_(")
>>
> 
> 
> -------------------------------------------------------------------------------- 
> 
> 
> 
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>> --------------------------------------------------------------------------------------- 
>>
>> Orange vous informe que cet  e-mail a ete controle par l'anti-virus mail.
>> Aucun virus connu a ce jour par nos services n'a ete detecte.
>>
>>
> 
> 
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> 


-- 
regards,
bill


More information about the Programming mailing list