Re: [Hardhats-members] Re: Is $$GTF~%ZISH() binary friendly?

2005-08-24 Thread Gregory Woodhouse
Actually, no. Binary trees are something quite different (and generally more familiar). === Gregory Woodhouse [EMAIL PROTECTED] Nothing is as powerful than an idea whose time has come. -- Victor Hugo On Aug 23, 2005, at 6:05 PM, Nancy Anthracite wrote: B, I believe, is for Binary. On

Re: [Hardhats-members] Re: Is $$GTF~%ZISH() binary friendly?

2005-08-23 Thread K.S. Bhaskar
On Sun, 2005-08-21 at 14:19 -0500, Kevin Toppenberg wrote: [KSB] ...snip... I'll check with Bhaskar whether or not there is any risk in storing non-printable characters in a global. I did some testing and filled a global with $char(0) and it didn't seem to loose them, or cause the

RE: [Hardhats-members] Re: Is $$GTF~%ZISH() binary friendly?

2005-08-23 Thread K.S. Bhaskar
Subject: Re: [Hardhats-members] Re: Is $$GTF~%ZISH() binary friendly? On Sun, 2005-08-21 at 14:19 -0500, Kevin Toppenberg wrote: [KSB] ...snip... I'll check with Bhaskar whether or not there is any risk in storing non-printable characters in a global. I did some testing and filled

[Hardhats-members] Re: Is $$GTF~%ZISH() binary friendly?

2005-08-23 Thread Kevin Toppenberg
, 2005 2:39 PM To: hardhats-members@lists.sourceforge.net Subject: Re: [Hardhats-members] Re: Is $$GTF~%ZISH() binary friendly? On Sun, 2005-08-21 at 14:19 -0500, Kevin Toppenberg wrote: [KSB] ...snip... I'll check with Bhaskar whether or not there is any risk in storing

Re: [Hardhats-members] Re: Is $$GTF~%ZISH() binary friendly?

2005-08-23 Thread K.S. Bhaskar
Probably not of much value to ask unless you are a GT.M internals developer - details are in the source code. As a gross simplification (along the lines of saying that living things are made up of cells), GT.M stores the length and actual value of each string. But there are all sorts of

RE: [Hardhats-members] Re: Is $$GTF~%ZISH() binary friendly?

2005-08-23 Thread Jim Self
Sowinski, Richard J. wrote: What I see happen when you have control characters in Globals is that when you try to display the global, it reeks havoc with your screen. This is an issue with your display device and user interface (or lack of one) when working with roll-and-scroll on dumb

Re: [Hardhats-members] Re: Is $$GTF~%ZISH() binary friendly?

2005-08-23 Thread Gregory Woodhouse
I think Kevin was asking whether or not strings are null terminated. I know nothing about the GT.M source, but as a general sort answer: Databases don't typically store data in a packed format (like the run-time heap), but instead storage is allocated in fixed size chunks, which are then

[Hardhats-members] Re: Is $$GTF~%ZISH() binary friendly?

2005-08-23 Thread Kevin Toppenberg
OK. Thanks. I had always thought that B-Tree ment Binary tree. But quick search turned on wikipedia turned up this: http://en.wikipedia.org/wiki/B-tree The B-tree's creator, Rudolf Bayer, has not explained what the B stands for. The most common belief is that B stands for balanced, as all

Re: [Hardhats-members] Re: Is $$GTF~%ZISH() binary friendly?

2005-08-23 Thread Nancy Anthracite
Sorry for bad info. That is what I thought my husband told me it meant, but I just looked it up in his Algorithms book by Sedgewick, and it says something very similar to what the wikipedia had to say. On Tuesday 23 August 2005 06:25 pm, Kevin Toppenberg wrote: OK. Thanks. I had always

RE: [Hardhats-members] Re: Is $$GTF~%ZISH() binary friendly?

2005-08-23 Thread Thurman Pedigo
-members@lists.sourceforge.net Subject: [Hardhats-members] Re: Is $$GTF~%ZISH() binary friendly? OK. Thanks. I had always thought that B-Tree ment Binary tree. But quick search turned on wikipedia turned up this: http://en.wikipedia.org/wiki/B-tree The B-tree's creator, Rudolf Bayer

Re: [Hardhats-members] Re: Is $$GTF~%ZISH() binary friendly?

2005-08-23 Thread K.S. Bhaskar
On Sun, 2005-08-21 at 14:19 -0500, Kevin Toppenberg wrote: [KSB] ...snip... I'll check with Bhaskar whether or not there is any risk in storing non-printable characters in a global. I did some testing and filled a global with $char(0) and it didn't seem to loose them, or cause the

Re: [Hardhats-members] Re: Is $$GTF~%ZISH() binary friendly?

2005-08-23 Thread Nancy Anthracite
B, I believe, is for Binary. On Tuesday 23 August 2005 06:11 pm, Gregory Woodhouse wrote: I think Kevin was asking whether or not strings are null terminated. I know nothing about the GT.M source, but as a general sort answer: Databases don't typically store data in a packed format (like the

Re: [Hardhats-members] Re: Is $$GTF~%ZISH() binary friendly?

2005-08-23 Thread Chris Richardson
-tree is easier to walk sequentially than having to do a tree climb. Chris . - Original Message - From: Nancy Anthracite [EMAIL PROTECTED] To: hardhats-members@lists.sourceforge.net Sent: Tuesday, August 23, 2005 6:05 PM Subject: Re: [Hardhats-members] Re: Is $$GTF~%ZISH() binary friendly

[Hardhats-members] Re: Is $$GTF~%ZISH() binary friendly?

2005-08-21 Thread Kevin Toppenberg
Here is the code. I will also attach it incase wrapping ruins it here... ;TMG BIN --GBL FUNCTION ;Kevin Toppenberg MD ;GNU General Public License (GPL) applies ;8-20-2005 ;=== ; API -- Public Functions.

Re: [Hardhats-members] Re: Is $$GTF~%ZISH() binary friendly?

2005-08-21 Thread Chris Richardson
1-2 or 2-1 The star reads are eating your lunch. This will be much faster. - Original Message - From: Kevin Toppenberg [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, August 21, 2005 5:53 AM Subject: [Hardhats-members] Re: Is $$GTF~%ZISH() binary friendly? Here is the code. I

Re: [Hardhats-members] Re: Is $$GTF~%ZISH() binary friendly?

2005-08-21 Thread smcphelan
all the support contracts in place. - Original Message - From: Kevin Toppenberg [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, August 21, 2005 9:05 AM Subject: [Hardhats-members] Re: Is $$GTF~%ZISH() binary friendly? A more fundamental question is whether M globals are binary

[Hardhats-members] Re: Is $$GTF~%ZISH() binary friendly?

2005-08-21 Thread Kevin Toppenberg
Toppenberg [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, August 21, 2005 9:05 AM Subject: [Hardhats-members] Re: Is $$GTF~%ZISH() binary friendly? A more fundamental question is whether M globals are binary friendly? I know that the underlying data is stored as strings. So would

Re: [Hardhats-members] Re: Is $$GTF~%ZISH() binary friendly?

2005-08-21 Thread Chris Richardson
: Sunday, August 21, 2005 11:22 AM Subject: [Hardhats-members] Re: Is $$GTF~%ZISH() binary friendly? Chris, I am having trouble getting a buffered read to work. GTMset path=/tmp/ GTMset fname=killthis GTMdo OPEN^%ZISH(Handle,path,fname,R) GTMw POP 0 GTMF Q:($ZEOF) U IO:(NOTERMINATOR) R X#255:5