World: r3wp
[View] discuss view related issues
older newer | first last |
james_nak 26-Jun-2006 [5214] | Hmmm. I thought they were basically the same. Good info. |
Cyphre 26-Jun-2006 [5215x2] | Yes, I think it is not worth to use make function! as the 'speedup' could be noticable only if you are creating many functions in a loop at runtime. The functions are usu created only during loading of your script so I don't see any optimization gain here. |
usu=usually | |
BrianH 26-Jun-2006 [5217x3] | I usually use func because it has the least overhead. |
REBOL 2: make function! [args /local locals] [code] REBOL 3: make function! [[args /local locals] [code]] | |
Not much of a change, really, but code using func will still work. | |
Ashley 26-Jun-2006 [5220] | I think it is not worth to use make function! ... For anything less than a large app/framework I tend to agree. However, in the later case the sum of many minor improvements can make a noticeable/measurable improvement; but it all depends on what we are optimizing for (code, load time, run time, memory, etc). |
DideC 27-Jun-2006 [5221] | Does anybody have the Cyphre's View console script somewhere on it's HD ? Can't find it in rebol.org |
Graham 27-Jun-2006 [5222x2] | go to cyphre's rebsite |
It's there. | |
DideC 27-Jun-2006 [5224] | Ah, thanks |
Cyphre 27-Jun-2006 [5225] | Ashley: yes, this can be noticable for really large frameworks...say with ten thousands functions and more. There you can gain few miliseconds with this optimization during the load time. |
Pekr 27-Jun-2006 [5226] | few milliseconds during the load time? Is it even noticable? :-) |
Cyphre 27-Jun-2006 [5227] | that was my point ;) Well if you create about 1milion functions then you can gain for about 50% of time on my CPU during code loading(4seconds instead of 8). But I haven't seen a Rebol project with so many functions.(but I'm not saying it cannot be developed ;)) |
Janeks 29-Jun-2006 [5228] | Q: Is it possible to create an app that at the same time reads two data/ports. F.ex. load an image from net and at the same time read data from GPS and display it on old image? |
Graham 29-Jun-2006 [5229] | use async for this |
Volker 29-Jun-2006 [5230] | a simple "aktiv: wait[port1 port2]" would be enough, with open/diirect or open/no-wait. or such. Never remember what these all do ;) |
Janeks 29-Jun-2006 [5231x2] | So am I right: I need to define before ports: gps-port: open .... url-port: open ... ??? ( read doesnot fit here?) user-port: ??? also is needed and then loop with wait [ gps-port url-port user-port ] [ do I need here to catch what port it is and do apropriate actions ] |
Gone to Async group! | |
Anton 29-Jun-2006 [5233] | That's right, READ and WRITE are like a wrappers for OPEN and CLOSE. eg. READ url is equivalent to: OPEN port .... copy data here .... CLOSE port |
Volker 29-Jun-2006 [5234x4] | some-port: open/no-wait/binary tcp://something forever[ active: wait REDUCE[ gps-port url-port user-port ] [ new-data: copy active ; new-data is some #{...} ] |
and decide what to do based on active, if same? avtive gps-port[..] | |
there are also some automatics which accosiate a function with a port, but i find this way easier to trace to get started. | |
and then here is async, which is a bit faster. Because /no-wait still does some waiting for error-checks. for async you need a library, by gabriele, romano or DocKimbel. Or deep knowledge. | |
[unknown: 10] 30-Jun-2006 [5238] | perhpas a silly question, but how do I determine the name of a function mi currently in ? As in, Im creating functions with a random-name and I would like to know in what function-name im currently in... Is this possible ??? Like a 'SELF or 'ME ? |
Volker 30-Jun-2006 [5239] | Not officially. IIRC there is some trick with triggering an error, somewhere on the ML. |
Anton 1-Jul-2006 [5240] | That's not easy to figure out. |
Janeks 18-Jul-2006 [5241] | Where to find some documentation about systray in Rebol? |
Graham 18-Jul-2006 [5242x2] | rebol.com |
http://www.rebol.org/cgi-bin/cgiwrap/rebol/search.r?find=systray&form=yes | |
Janeks 18-Jul-2006 [5244] | Thanks - already found! What I am missing is what else words I could use for tray controls and messages received? F.ex. Can I activate tray meny un left click? Is it possible to make submenus for systary icons? |
Graham 18-Jul-2006 [5245x2] | double click works for me |
Cyphre is working on systray enhancements .. stay tuned | |
Pekr 18-Jul-2006 [5247] | there is one bug found with systray :-( you get events only if console window is visible .... |
Cyphre 18-Jul-2006 [5248] | This bug is not related to systray directly (ie the current Systray support works fine) but it is related to system port. |
Janeks 18-Jul-2006 [5249x2] | Regarding bug: Script of Gabriele works fine for me even no console window is visible. Then the question is - does it (systray opeartions) affects other event waiting on ports (f.ex. interface events, loading file from internet) |
Is it possible to change tray icon? | |
Cyphre 18-Jul-2006 [5251] | no at the moment |
Sunanda 18-Jul-2006 [5252] | . (apologies for the dot, but the web shows this group has failed to sync on my machine) |
Josh 18-Jul-2006 [5253] | Iterated faces. A good reference to look at? The Wiki seems to be missing some helpful info |
Henrik 18-Jul-2006 [5254] | josh: http://www.rebol.com/docs/view-system.html#section-10 |
Anton 19-Jul-2006 [5255] | do http://home.wilddsl.net.au/anton/rebol/gui/iterated/iterated-face-drag.r do http://home.wilddsl.net.au/anton/rebol/gui/iterated/iterated-face-drag-drop.r |
Janeks 20-Jul-2006 [5256] | How to change part o f a color in gradient? F.ex. at 535x100 box teal 30x315 effect [ draw [ fill-pen linear 0x0 0 315 90 1 1 red yellow green box 0x0 30x315 ] ] Now I have each color equal, but how to make so that f.ex. green is ~50%, Yellow ~30% and red ~20% of box? |
Cyphre 20-Jul-2006 [5257] | This is not possible in the current version of DRAW. You have to 'compose' more boxes to create linear gradients with different ratio of color spread at the moment. |
Janeks 20-Jul-2006 [5258x2] | Is it possible to rotate feels, f.ex. progress bar so that it will be verical? |
Vertical | |
Graham 20-Jul-2006 [5260x2] | just change the size |
so, progress 5x30 instead of 30x5 | |
Janeks 21-Jul-2006 [5262x2] | I need that progress color will go up! |
Ah ok - I was just do not belive that unti testing mysefl! ;-) | |
older newer | first last |