r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[View] discuss view related issues

[unknown: 10]
26-Nov-2006
[6213]
mmmm.... yes I thought by switching from VID to my own faces I could 
reduce memory, but thats not true I discovered. Im currently in the 
range of using 17 MB memory , thats very close to JAVA memory consumption... 
Why must a GUI must eat this amount of memory? .. As 'view communicates 
on top of the OS layer I would not expect it to eat this much.. The 
executable might be 850 K but executing explodes it... even 'altme 
eats "more" then Firefox ... Oke 'view is very flexible..very flexible 
compared to other GUI's..still with all the nested pointers etc must 
it eat this much?...mmmmm..... That brings be actualy to some other 
facts questions... What commands/functions must people NOT use when 
using faces? I mean regarding speed.. I discovered that 'draw functions 
slow down view and also a 'foreach loop stucks waking trough 80 faces... 
Would be nice if Carl could open-up a little bit more in 'tuning 
faces...;-)
Henrik
26-Nov-2006
[6214]
17 MB is very low for a rebol script, I think. :-) I've seen them 
eat up towards 1 GB of memory. View does eat a lot. Why I don't know, 
but it must have something to do with buffered uncompressed bitmaps.
Pekr
26-Nov-2006
[6215]
it is related mainly to non oop design. IIRc R3 will carry inheritance 
(classes). It may be related to each function in object to be simply 
once and once again with each new instance of face. According to 
Cyphre memory savings could be 1/3 to 2/3 of memory in some cases. 
But better ask him ...
Maxim
26-Nov-2006
[6216x3]
not sure about that Pekr.
classes wont solve the cached bitmap issues.  which is what really 
consumes memory IMHO.
newer engine will use only AGG which will compute more stuff on the 
fly... and thus would be more memory efficient... but at what cost 
in speed.  I hope that speed will not suffer, when compared to an 
app which does not use AGG.
[unknown: 10]
27-Nov-2006
[6219x3]
is this a bug? 
** Script Error: Invalid argument: random
** Where: to-image
** Near: to image! :value
>> q

*** glibc detected *** double free or corruption (out): 0x08540c30 
***

                                                                      Aborted
created when doing -> iface/effect: compose [ draw [pen black fill-pen 
random 100.100.100 box 10 10 8]] , I know it should be (random 100.100.100).. 
still a nice error NOT catched !
posted in rambo...
Cyphre
27-Nov-2006
[6222]
We are trying to lower memory footprint of view in R3 as much as 
possible. The new GOBs should be much smaller in size than current 
faces. Also the new compositing should eat less memory trying to 
avoid temporary buffers whenever possible. I believe R3/View will 
be much efficient in that way as everyone here wants Rebol running 
on his own Phone/PDA isn't it? ;)
Pekr
27-Nov-2006
[6223x3]
:-)
the nice thing, with phones and JAVA is, that "all" you need is to 
download .jar file ....
My brother has new Sony Erickson K800, nice phone. Not a high end, 
far from that. I looked into ICQ Java version, and it is really very 
nice ...
Graham
27-Nov-2006
[6226]
Most phones run Symbian ?
Pekr
27-Nov-2006
[6227x2]
If platform specific wrapper will be open source, I wonder how long 
it will take someone to map this to JAVA :-) Of course RT would have 
to port rebol library to Java too ... would be probably slow, but 
it would mean - Rebol running everywhere :-)
not sure lower level Sony uses Symbian, but it could be so ....
Graham
27-Nov-2006
[6229x2]
I guess i'd like to see tablet PC OS support first ...
there will be similar issues with working with ink on mobile devices
Pekr
27-Nov-2006
[6231]
the porting effort for RT should be easy - they will keep closed 
source "only" the platform neutral rebol library .... the rest should 
be open source ...
Graham
27-Nov-2006
[6232]
My fear is that the sudden flurry of releases of R2 indicate that 
the R3 is bogging down ...
Pekr
27-Nov-2006
[6233]
that was my fear too, and so I objected in blog, that I would not 
add any new functionality to R2, unless it is usable for R3 too. 
Some deep changes might get us into situation, when last R2 releases 
(SDK) will not be stable enough ... Carl confirmed the idea ...
Cyphre
27-Nov-2006
[6234]
The bad thing on mobile Java developement is that almost every phone 
has own specific bugs due the fact the Java interpreter has been 
implemented by different company(and usually not well tested). Even 
different types of phones from the same vendor have different JavaVM 
with different problems. Not to mention that lot of phones have specific 
additional API(with specific bugs too) so doing a 'crossplatform' 
developement is really a nightmare. I'm glad we have only one source 
of Rebol distribution in this case.
Pekr
27-Nov-2006
[6235x2]
well, my friend sent me ICQ .jar, which runs on Nokia and Sony too, 
so maybe the compatibility is not so bad nowadays?
we will see, we are not there yet. First R3 alpha has to come to 
the light of the day, to see what the architecture is about. So far 
I can't imagine, whould would I download and install Rebol onto my 
Nokia - IIRC I can download only JAVA apps there, but I can be wrong 
(never did any phone related development myself)
Cyphre
27-Nov-2006
[6237]
Yes, if you don't have phone with some OS(ie. Symbian, Linux, Pocket 
PC etc.)  then you are out of luck.
Pekr
27-Nov-2006
[6238]
that's why R4J could be a solution :-) OTOH - R3 will be imo reality 
in deep 2007 (I mean some more stable releases), so by 2008, maybe 
we will see next new generation phones ...
Cyphre
27-Nov-2006
[6239]
java compatibility: yes, it depends on the luck which phone you have. 
It is also possible that the ICQ app is mature enough so it contains 
patches for different phones. Anyway, try to read official Nokia 
dev forum to see really angry developers flaming Nokia for bug XY 
:)
Pekr
27-Nov-2006
[6240]
so - can you imagine R3 being ported to certain OSes? How could it 
happen? Would we have to buy some Symbian dev licence, or so, to 
get development tools, allowing us to port R3 open-sourced components, 
and then ask RT to port Rebol library? How would/could user install 
such app onto his/her phone? Well, my questions are probably very 
preliminary anyway :-)
Cyphre
27-Nov-2006
[6241]
AFAIK you can create any SymbianOS app just with their SDK(free) 
and C/C++ so if RT decide to support Sybian then Rebol SDK would 
contain Symbian version of  Rebol lib which could be used for creating 
Symbian encapped apps. But as you said these are really very preliminary 
thoughts :)
Anton
28-Nov-2006
[6242]
Between View beta 1.3.61.3.1 and 1.3.2.3.1 the draw dialect parameter 
format for FILL-PEN changed.

The following code produces different output (and no longer matches 
my older labels from < 1.3.2):
[

 fill-pen ("style" 0) ("offset" 225x225) ("start" 0) ("end" 220) ("angle" 
 0) ("scalex" 1.0) ("scaley" 1.0) 
	black gray white 
	circle ("centre" 225x225) ("radius" 200)
]
What is the new format and where can I look that up ?
Rebolek
28-Nov-2006
[6243]
AFAIK there exist some AGG fixes. Are they part of new View and when 
not, when they will be?
Anton
28-Nov-2006
[6244x2]
Never mind, I figured it out:
; new FILL-PEN parameters since View 1.3.2.3.1 ("style" changed from 
integer! -> word!)
	[

  fill-pen ("offset" 225x225) ("start" 1) ("end" 10) ("angle" 15) ("scalex" 
  12.0) ("scaley" 8.0) ("style" 'radial) 
		black gray white 
		circle ("centre" 225x225) ("radius" 200)
	]
Cyphre
28-Nov-2006
[6246]
yes, we have changed most of the integer based parameters to word!s 
from View1.3.2
Maxim
28-Nov-2006
[6247]
strange glayout has not suffered and uses linear and radial fills... 
is that possible?  are integers still supported?
Josh
28-Nov-2006
[6248]
Looking for an example of a pop up notification window similar to 
those used in MSN Live messenger.  I know I've seen something like 
that done in REBOL.  Know of something?
Henrik
28-Nov-2006
[6249]
alert, flash, inform, request come to mind
Josh
28-Nov-2006
[6250x2]
One that appears in the lower right corner of the screen, raises 
out of the system tray area and then fades
Or something similar
Henrik
28-Nov-2006
[6252]
we don't have one in REBOL as standard, but Graham made one for his 
chat program
Graham
28-Nov-2006
[6253]
It was written by Gabriele/Allen .. and coopted by myself.  Source 
is in the script.
Josh
28-Nov-2006
[6254x2]
Looked through the library a few times already.  I am probably just 
missing it
I was missing it.  Thanks
Pekr
28-Nov-2006
[6256]
Josh - Cyphre was supposed to release systray support last week. 
Hopefully it is soon. Dunno about features though ... (it will be 
.dll based)
Josh
28-Nov-2006
[6257]
Thanks, I will keep my ears open
Anton
29-Nov-2006
[6258x2]
http://anton.wildit.net.au/rebol/view/notify-window.r
I tripped over that PEN with two colours crash bug again #4040 #4086
Hoping these might be fixed this round.
Josh
29-Nov-2006
[6260]
Thanks Anton, that helped me a ton.
Anton
29-Nov-2006
[6261]
No worries.
Maxim
29-Nov-2006
[6262]
anyone have a fast  recipe to convert an integer into a tupple?