You misunderstand how the 3!:4 family works. ic=: 3!:4 says: 3 ic y - J integers to sets of 8 characters (J64 only) _3 ic y - sets of 8 characters to J integers (J64 only)
3&ic can work only in J64 because only in J64 can you have 64-bit integers. The same problem in _3&ic . ----- Original Message ----- From: bill lam <[EMAIL PROTECTED]> Date: Wednesday, July 19, 2006 8:07 am Subject: Re: [Jbeta] 64 bit integer conversion > Eric Iverson wrote: > > The J64 system your J32 system is talking to could have > different byte > > order and the ic stuff is not very usefull. The ic family is > intended> for use withing a system. Communication between systems > should use 3!:1 > > and 3!:2. > > Well, you are correct. 3!:1/3!:2 is used for transferring data > between systems. > But tcp/ip is a byte stream protocol, it does not mark start or > stop of > transmission, thus if I want to send data to the other side, I > have to give > length of data block that will follow, length will always be > expressed in NBO > (big-endiam), eg. > (,~ (|[EMAIL PROTECTED])@3&[EMAIL PROTECTED]) 3!:1 data > > it may restriction to 32-bit length > (,~ (|[EMAIL PROTECTED])@2&[EMAIL PROTECTED]) 3!:1 data > > but it become not possible to send data block above 2GB eg an DVD ISO. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
