Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[glayout]

 [1/5] from: atruter:labyrinth:au at: 7-Jul-2004 12:51


Hi Max,
> Anton, thanks for the encouragement.
The longer VID 1.3 takes the more interested in your efforts I become! ;) Drop a line when the new site goes live and I'll try and give it a spin (in addition to providing useful feedback).
> I was able to scroll a 2500 file long window without effort.
I'm currently using VID to scroll a 1,000,000 row query result table ... it takes about 90 seconds to format and display the data [in a text-list] .... I'm curious to see how glayout performs. ;)
> I'm alone doing all the docs, and it generally takes about 3 times > longer to make meaningful docs than actually code a tool, so its not a > trivial job.
Yep, and then there's testing ... One useful technique I find with documentation is a "Quick Start" guide of some sort which gives the fewest possible steps to get "something" working. It's often enough to convince me [at least] to invest the time and effort into wading through 100's of pages of documentation *if* I can see the value demonstrated in a paragrapgh or two. Just an idea. ;) Regards, Ashley

 [2/5] from: greggirwin:mindspring at: 6-Jul-2004 23:12


Hi Ashley, AT> I'm currently using VID to scroll a 1,000,000 row query result table ... AT> it takes about 90 seconds to format and display the data [in a text-list] AT> ... I'm curious to see how glayout performs. ;) How much memory does it use (morbid curiosity :)? I did a proof-of-concept thing a while back that used dynamically generated draw commands to display virtual grid/tree data. The grid version is below; watch for wrap. -- Gregg REBOL [ Title: "Draw Data Grid" File: %draw-data-grid.r Author: "Gregg Irwin" Purpose: {Shows how you can dynamically create DRAW commands in response to slider events to display data in a virtual grid.} ] cell-size: 120x21 map-slider-to-value: func [ "Converts a slider value between 0 and 1 to a value within a range." value [number!] "A value between 0 and 1." min-val [number!] "The minimum range value (if value = 0)." max-val [number!] "The maximum range value (if value = 1)." ][ max-val - min-val * value + min-val ] display-data: does [ v-base-val: map-slider-to-value v-sld/data 1 10000 h-base-val: map-slider-to-value h-sld/data 1 3000 clear head draw-cmds append draw-cmds [pen black] repeat row to-integer divide grd/size/y cell-size/y [ ;append draw-cmds compose [pen (random 255.255.255)] ; random row coloring ;append draw-cmds compose [pen (pick [64.64.64 64.128.32] odd? row)] repeat col to-integer divide grd/size/x cell-size/x [ append draw-cmds compose [ pen (random 200.200.200) ; random data coloring text (to-pair reduce [ col - 1 * cell-size/x + 2 row - 1 * cell-size/y + 2 ]) (rejoin [ "R" to-integer (row - 1 + v-base-val) ":C" to-integer (col - 1 + h-base-val) ]) ] ] ] show grd ] lay: layout [ across space 1x1 grd: box 361x358 effect compose [grid (cell-size) 0x0 1x1 draw []] ;grd: box 722x716 effect compose [grid (cell-size) 0x0 1x1 draw []] v-sld: slider 15x358 [display-data] return h-sld: slider 361x15 [display-data] ] draw-cmds: grd/effect/draw display-data view lay

 [3/5] from: moliad:aei:ca at: 7-Jul-2004 1:23


----- Original Message ----- From: "Ashley Trüter" <[atruter--labyrinth--net--au]> To: <[rebolist--rebol--com]> Sent: Tuesday, July 06, 2004 10:51 PM Subject: [REBOL] Re: [glayout]
> Hi Max, > > > Anton, thanks for the encouragement. > > The longer VID 1.3 takes the more interested in your efforts I become! ;)
even if vid 1.3 comes out tomorrow, glayout is still a differrent beast
> Drop a line when the new site goes live and I'll try and give it a spin > (in addition to providing useful feedback).
I'm hard at work trying to polish the several pages I have right now. Although the initial site will be pretty bare-bones, once its live, I can more easily tweak things here and there and review a page or two every day and keep the reference manuals up to date as I add and fix stuff. Now I have so much backlog to take care of that Its going to take a few weeks to get everything covered...!
> > I was able to scroll a 2500 file long window without effort. > > I'm currently using VID to scroll a 1,000,000 row query result table ... > it takes about 90 seconds to format and display the data [in a text-list] > ... I'm curious to see how glayout performs. ;)
Well, the layout won't be what takes a long time... since I'm using vid, we'd just have to add the text-list style and see... glayout's widget list is still incomplete, but adding those which are missing is a piece of cake. Theoretically it will be the same time, except that everything is dynamic. the view refresh rate really is the bottle neck.
> > I'm alone doing all the docs, and it generally takes about 3 times > > longer to make meaningful docs than actually code a tool, so its not a > > trivial job. > > Yep, and then there's testing ...
that's already been done (codewise)...
> One useful technique I find with documentation is a "Quick Start" guide of > some sort which gives the fewest possible steps to get "something" > working.>
that is exacly what will be available for glayout for now, until I start a proper reference/guide/tutorial
> It's often enough to convince me [at least] to invest the time > and effort into wading through 100's of pages of documentation *if* I can > see the value demonstrated in a paragrapgh or two. Just an idea. ;)
I hope you get addicted... trying out 20 differnet layouts for a new app I am doing litteraly took me 30 minutes this evening. and this includes a window level scroll pane and sub screen scroll panes... glayout has a lot of potential... we just need to give it a little bit more time and tender loving care. Thanks for the interest! more news soon... -MAx

 [4/5] from: moliad::aei::ca at: 7-Jul-2004 1:48


nice! I am planning on adding something similar in glayout.. you just busted my bubble ;-) permission to look at and imitate when I'm ready to implement my idea? -MAx ----- Original Message ----- From: "Gregg Irwin" <[greggirwin--mindspring--com]> To: "Ashley Trüter" <[rebolist--rebol--com]> Sent: Wednesday, July 07, 2004 1:12 AM Subject: [REBOL] Re: [glayout]
> Hi Ashley, > > AT> I'm currently using VID to scroll a 1,000,000 row query result table ... > AT> it takes about 90 seconds to format and display the data [in a text-list] > AT> ... I'm curious to see how glayout performs. ;) > > How much memory does it use (morbid curiosity :)?
well I just tested copy ing 1 million words and 1 million short strings to a block and that took 90MB alone.

 [5/5] from: greggirwin:mindspring at: 7-Jul-2004 10:26


Hi Max, MOA> nice! MOA> I am planning on adding something similar in glayout.. you just busted my MOA> bubble ;-) MOA> permission to look at and imitate when I'm ready to implement my idea? Permission granted. :) -- Gregg