Request for comments on C-Structs to MC structs...

2002-11-04 Thread xbury . cs
Hi gals and guys,

If some of you are interested, i've mentioned earlier in the meta-time-space
continuum that I was porting C++ programs to Metacard.

In these programs I have extensive struct variables to port, and some
include arrays of structs inside of structs, etc... Big mess I got into!
Using properties doesn't help and creating the structs/pointer space inside
a string variable seems overkill...

Before I go bananas (or meta-tutti-fruity), I'd like to ask if anyone has
tried nesting arrays into arrays?

put abunchoflinesofdata into test[x] -- this works
put anotherbunch into test2[x] -- this also will work
put test[x] into test[y]
put test2[x] into test[y+1]

will this work and be reliable? Limits known?

TIA
Xavier


Visit us at http://www.clearstream.com
  
IMPORTANT MESSAGE

Internet communications are not secure and therefore Clearstream International does 
not accept legal responsibility for the contents of this message.

The information contained in this e-mail is confidential and may be legally 
privileged. It is intended solely for the addressee. If you are not the intended 
recipient, any disclosure, copying, distribution or any action taken or omitted to be 
taken in reliance on it, is prohibited and may be unlawful. Any views expressed in 
this e-mail are those of the individual sender, except where the sender specifically 
states them to be the views of Clearstream International or of any of its affiliates 
or subsidiaries.

END OF DISCLAIMER
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: Request for comments on C-Structs to MC structs...

2002-11-04 Thread Richard Gaskin
[EMAIL PROTECTED] wrote:

 Before I go bananas (or meta-tutti-fruity), I'd like to ask if anyone has
 tried nesting arrays into arrays?
 
 put abunchoflinesofdata into test[x] -- this works
 put anotherbunch into test2[x] -- this also will work
 put test[x] into test[y]
 put test2[x] into test[y+1]
 
 will this work and be reliable? Limits known?

Is abunchoflinesofdata an array itself?  I've never tried that.  If it's
just a chunk it should work.

Another option for storing hierarchically-structured data is to use MC
properties and propertysets in native objects:

http://lists.runrev.com/pipermail/use-revolution/2002-July/006141.html

Remember that you can store and retrieve arrays from objects by setting the
properties of the current propertyset of the object to an array:

  -- Create an array:
  put hello world into tMyArray[1]
  --
  -- Tell MC which propertyset to work with:
  set the propertyset of stack storage to ArrayData
  --
  -- Set all of the key-value pairs of the storage object to
  -- the key-value pairs of the array:
  set the properties of stack storage to tArrayData


-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Developer of WebMerge 2.0: Publish any database on any site
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
 Tel: 323-225-3717   AIM: FourthWorldInc

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



RE: Request for comments on C-Structs to MC structs...

2002-11-04 Thread xbury . cs
Richard,

Thanks but there is a speed issue here... Accessing data in properties of
objects
is/or must be just as slow as accessing a field... Which is why im not using
groups
of fields to re-create these structures...

It's the same reason im not using item x of line y of Zcontainer.
it's plain simpler and faster to use 2 items over thousands of lines than
100's of items across 2 lines...

Arrays seem to be the last solution before going back to C

What would be nice is to have multi-dimensional arrays like in C, basic
X[a][b][c]...[z]

or 

assigning properties to containers 
put x into the color of myobject[x]

Scott? Feasible? 

Meanwhile, my solution is the following:
X[a][b][c]...[z] = x[a(i^3)+b(i^2)+c(i^1)+d(i^0)]...[z] where {a,b..,z} is a
polynomial serie sigma((x(sub base i)) ^ (i-1))
and where i is the max(number of elements in any dimension)
the only danger is passing the limit of array elements too easily...
(2^54)-1...

  repeat with l = 1 to NUM_layers
repeat with i = 1 to Net_Layer[l]
  repeat with j = 0 to net_layer_units[l-1]
put l*100+i*10+j into va -- virtual array dimension
put RandomEqualREAL(-0.5, 0.5) into Net_Layer_Weight[va]
  end repeat
end repeat
  end repeat

any better ideas are welcome! Using nuclear fusion power to start a light
bulb!


 -Original Message-
 From: Richard Gaskin [mailto:ambassador;fourthworld.com]
 Sent: 04 November 2002 13:07
 To: [EMAIL PROTECTED]
 Subject: Re: Request for comments on C-Structs to MC structs...
 
 
 [EMAIL PROTECTED] wrote:
 
  Before I go bananas (or meta-tutti-fruity), I'd like to ask 
 if anyone has
  tried nesting arrays into arrays?
  
  put abunchoflinesofdata into test[x] -- this works
  put anotherbunch into test2[x] -- this also will work
  put test[x] into test[y]
  put test2[x] into test[y+1]
  
  will this work and be reliable? Limits known?
 
 Is abunchoflinesofdata an array itself?  I've never tried 
 that.  If it's
 just a chunk it should work.
 
 Another option for storing hierarchically-structured data is to use MC
 properties and propertysets in native objects:
 
 http://lists.runrev.com/pipermail/use-revolution/2002-July/00
6141.html

Remember that you can store and retrieve arrays from objects by setting the
properties of the current propertyset of the object to an array:

  -- Create an array:
  put hello world into tMyArray[1]
  --
  -- Tell MC which propertyset to work with:
  set the propertyset of stack storage to ArrayData
  --
  -- Set all of the key-value pairs of the storage object to
  -- the key-value pairs of the array:
  set the properties of stack storage to tArrayData


-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Developer of WebMerge 2.0: Publish any database on any site
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
 Tel: 323-225-3717   AIM: FourthWorldInc

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Visit us at http://www.clearstream.com
  
IMPORTANT MESSAGE

Internet communications are not secure and therefore Clearstream International does 
not accept legal responsibility for the contents of this message.

The information contained in this e-mail is confidential and may be legally 
privileged. It is intended solely for the addressee. If you are not the intended 
recipient, any disclosure, copying, distribution or any action taken or omitted to be 
taken in reliance on it, is prohibited and may be unlawful. Any views expressed in 
this e-mail are those of the individual sender, except where the sender specifically 
states them to be the views of Clearstream International or of any of its affiliates 
or subsidiaries.

END OF DISCLAIMER
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: Request for comments on C-Structs to MC structs...

2002-11-04 Thread Pierre Sahores
[EMAIL PROTECTED] a écrit :
 
 Hi gals and guys,
 
 If some of you are interested, i've mentioned earlier in the meta-time-space
 continuum that I was porting C++ programs to Metacard.
 
 In these programs I have extensive struct variables to port, and some
 include arrays of structs inside of structs, etc... Big mess I got into!
 Using properties doesn't help and creating the structs/pointer space inside
 a string variable seems overkill...
 
 Before I go bananas (or meta-tutti-fruity), I'd like to ask if anyone has
 tried nesting arrays into arrays?
 
 put abunchoflinesofdata into test[x] -- this works
 put anotherbunch into test2[x] -- this also will work
 put test[x] into test[y]
 put test2[x] into test[y+1]

For me, it works. And this too, without any speed hole because the
contents length of test[y] is in about some octets  :

put test[x] into item 1 of test[y] -- mc is automatically creating the
needed items range
put test2[x] into item 2 of test[y]

or even this :

put abunchoflinesofdata  ,  anotherbunch into test[x]
put test[x] into test[y]

and so on
 
 will this work and be reliable? Limits known?
 
 TIA
 Xavier
 
 Visit us at http://www.clearstream.com
 
 IMPORTANT MESSAGE
 
 Internet communications are not secure and therefore Clearstream International does 
not accept legal responsibility for the contents of this message.
 
 The information contained in this e-mail is confidential and may be legally 
privileged. It is intended solely for the addressee. If you are not the intended 
recipient, any disclosure, copying, distribution or any action taken or omitted to be 
taken in reliance on it, is prohibited and may be unlawful. Any views expressed in 
this e-mail are those of the individual sender, except where the sender specifically 
states them to be the views of Clearstream International or of any of its affiliates 
or subsidiaries.
 
 END OF DISCLAIMER
 ___
 metacard mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/metacard

-- 
Cordialement, Pierre Sahores

Inspection académique de Seine-Saint-Denis.
Applications et bases de données WEB et VPN
Qualifier et produire l'avantage compétitif
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: Request for comments on C-Structs to MC structs...

2002-11-04 Thread Richard Gaskin
[EMAIL PROTECTED] wrote:

 Thanks but there is a speed issue here... Accessing data in properties of
 objects is/or must be just as slow as accessing a field... Which is why
 im not using groups of fields to re-create these structures...

What speeds are you getting in your tests.  Here, getting data from object
properties is _much_ faster than from fields.

But morever, you only need to do it once during initialization to read the
data from an object into an array, and again while saving to store the array
in the object.

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Developer of WebMerge 2.0: Publish any database on any site
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
 Tel: 323-225-3717   AIM: FourthWorldInc

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: New on this list but not a newbie

2002-11-04 Thread Richard Gaskin
Hey Alain - 

Good to see you here.

...
 I have been doing this web stuff for about 7 years
 now, and I've tried countless pure-Web solutions, and
 still none of the Web stuff compares to the
 interactivity and performance that can be achieved
 with *real* software. Particularly software like
 MetaCard which is as multi-platform as any existing
 web-browser; for playback (like the Web) as well as
 authoring (unlike the Web); client-side as well as
 server-side (just like Java but incomparably simpler).
 Web pages, even with JavaScript in them, are severely
 limited in terms of client-side interactivity. You
 cannot easily allow the users to move things around,
 do drag-and-drop stuff, and so on.
...
 The point of all of this is that I am trying to
 convince the lab I work for to opt for an xCard
 approach (breakthru) instead of the web-only approach
 (conformity  mediocrity) that so many are resorting
 to now. My presentations on this issue have had a
 definite impact on my colleagues, but they are still
 hesitating a bit because not-conforming to what
 everyone is doing is perceived as risky.

Everything worth doing has some element of risk, but any experienced
business person shoud appreciate the relationship between risk and reward.
With MetaCard you're almost cheating:  you can build things so quickly that
the cost-benefit analysis is nearly always favorable over alternatives, and
that's before you consider the usability benefits of doing anything but
browsing outside of the browser's limitations.

Here's some fuel for the fire -

  Beyond the Browser:
  Rediscovering the Role of the Desktop in a Net-centric World

  http://www.fourthworld.com/embassy/articles/netapps.html


-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Developer of WebMerge 2.0: Publish any database on any site
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
 Tel: 323-225-3717   AIM: FourthWorldInc

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: Cursor in popup stack

2002-11-04 Thread J. Landman Gay
On 11/4/02 11:56 AM, Bill Burman wrote:


I had this same persistent I-beam cursor problem if I was opening a
substack over a mainstack - above a card with an unlocked field. The only
thing I could come up with was temporarily locking the text of all fields
in the main stack before topleveling the substack. There must be a better
solution.


Ick. What a hack. But I tried it anyway and the cusor changes as 
specified when the stack pops up. But as soon as I move the mouse down 
the list of menu buttons, it *changes back* to the I-beam, even though 
the field underneath is locked.

I think this is a bug.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Re: New on this list but not a newbie

2002-11-04 Thread Alain Farmer
 There is no breakthru in using Metacard
 for your project just a more efficient
 spending of time and energy
 but I know what you mean.

It's not a breakthru for you or for me, given that
we have been using one or more xCards for years now.
It is a breakthru though, when compared to what
web-browsing internauts are commonly settling for.
It's a breakthru for the lab I work for,
furthermore, because they didn't even know that such a
thing exists.

Relativity man!  ;-)

Alain

__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard