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

World: r3wp

[!REBOL3 GUI]

shadwolf
15-Jul-2010
[2020x2]
i think cairo can be fun  but then the question is always the same 
will the dialect build to interface it with rebol will cover the 
whole thing or just cover the ground capabilities
i like the path thing in cairo ...
Graham
15-Jul-2010
[2022]
the difference is that we now have the host kit so it can be extended
shadwolf
15-Jul-2010
[2023x4]
that make me think are bezier curves like thing  you set a curve 
shape and you can draw anything to shape it
using the  cairo path layer you can imagine multi layer drawing  
something like photoshop's "calques" (sorry it's french lets say 
masks)
but why doing multi layer well to determine an order of was is  on 
top of what when rendering
having multi layers means you can then  multi thread the rendering 
1 layer per thread  this will enhance the complexity of what we can 
display on screen  (think about rendering a webpage or a pdf document 
for example)
Graham
15-Jul-2010
[2027]
When are we getting multithreading??
shadwolf
15-Jul-2010
[2028x3]
never and even more after  probably
carl said multi thread multi pipe multi core sux for a scripted language 
async process is better
well in fact we had this discution like 10 years before multi core 
have become the majority of the now in days personal computers
Graham
15-Jul-2010
[2031]
async is not going to help get better rendering of multiple layers 
concurrently
shadwolf
15-Jul-2010
[2032]
well the fact is cpu are multi threaded multi cored and so are the 
graphic cards when you render a document  with AGG only that the 
freaking CPU that does the whole rendering work for God's sakes, 
it's like the computing on the 90's ... ok it's passed it's done 
it's deprecated and over now we have 650MHz GPU multi rendering pipelined 
and  multi threaded multi cored CPU over 2GHZ per core that's a lot 
of power and why would rebol be the only one not exploiting that 
... And in the near futur (5 years to come) the GPU and CPU will 
be merged in a single chip high performance.
Graham
15-Jul-2010
[2033]
Just run a new instance of rebol for each core :)
shadwolf
15-Jul-2010
[2034]
....  becarefull there's a wolf in my name and those jokes it really 
don't make fun of them :)
Graham
15-Jul-2010
[2035]
That's what Cheyenne does .. multiple helper processes
shadwolf
15-Jul-2010
[2036x2]
yeah but i'm  poor brained ...  i like easy to understand concepts 
when it's too much  bricolage like that's make me run
bricolage another french word ... well who cares...
Graham
15-Jul-2010
[2038]
So, if you created a rendering surface or whatever in Cairo, can 
you then ask another Rebol process to access it?
shadwolf
15-Jul-2010
[2039x2]
the real true ask is rebol is slow to evolve so does cairo will evolve 
betwin 2 rebol release or does it will go to abandonedwar after 2 
years  ?
graham i fear the context concept is like the flash plugin in your 
page ... you see what i mean
Graham
15-Jul-2010
[2041]
so the memory is protected from access by other processes?
shadwolf
15-Jul-2010
[2042x3]
you have a specific area where you have your flash rendering embeded 
more or less into a  visual content rendered using a completly different 
engine and drawing method
end  betwing those 2 engines no coabitation the flash space is for 
flash only
and that's more or less the phylosophy that doesn't feat rebol ...
Graham
15-Jul-2010
[2045]
Doesn't the graphics library access the multi-cored gpu?
shadwolf
15-Jul-2010
[2046x3]
was i more clear with that example (taht's the way GTK+ and QT link 
with opengl you have a specific squared area to clip your opengl 
rendering in  but  it's not mixed content
Graham in recent video card the GDI stack is not the most optimised 

they pushed walls to allow new things like the blu ray decoding to 
have a room and that have obviously an impact on the previous guys 
there and DX11 ...MicroSoft tod the whole word that GDI rendering 
was dead and that the only thing that matters was DX 11 rendering 
even for their widgets and desktop everyday rendering (aero)
let imagine you do a button you want to draw something on the background 
with AGG and then have the regular button borders and fonts to be 
applyed over  using AGG it's possible to have that effect  with the 
context phylosophy the VID button is a separated entity from the 
agg entity  you have the QT context the QT widgets display in it 
and the AGG widget is one of the few widgets you have but you can't 
mixe content ...
Graham
15-Jul-2010
[2049x2]
I imagine we could have multiple graphics libraries loaded at the 
same time ...
So, one could use AGG for somethings like a GUI and then use Cairo 
for display postscript
shadwolf
15-Jul-2010
[2051]
yeah ... but cairo doesn't seems bad at all
Graham
15-Jul-2010
[2052]
Ultimately it will depend on whoever does these things :)
shadwolf
15-Jul-2010
[2053]
don't look at me that way ....
Graham
15-Jul-2010
[2054]
Which library best supports rich text in an area field?
shadwolf
15-Jul-2010
[2055x6]
i would say  cairo isn't bad
hum cairo glyph api is linked to pango ?
depend the quality speed dans complexity of the rendering you want 
in fact
text is  a pain to handle that's why pango was created to serv the 
gilmp tool kit (GTK)
Function overloading (having a several variants of a function with 
the same name and different arguments) is a language feature available 
in many languages but not in C.
like for example in rebol :)
Henrik
15-Jul-2010
[2061x2]
My status: Currently testing the dialog system prototype. This is 
ported from the VID Extension Kit and should allow for a large number 
of different dialogs. Still some work left to do, but have some basics 
working.
http://rebol.hmkdesign.dk/files/r3/gui/228.png


This odd looking dialog marks a few milestones from two days of work:


- Successfully create and open an email dialog created from a single 
style, which represents the content area.

- Successfully validate the content area from the validation information 
stored in the style.

- Successfully display validation result in the content area (the 
letters to the right of the fields show INVALID)

- Successfully block closing it, when it's not correctly filled, 
when clicking "Send" using a new DISMISS reactor.

- Successfully store the content in a way so that it can be returned 
in an object, when the dialog is finished or store a NONE/FALSE when 
cancelled.


The dialog is called by: REQUEST-EMAIL. It doesn't send any email, 
that comes later. The reason it looks odd is because the new resizing 
scheme requires some changes in how sizes are handled in styles and 
I haven't quite figured out how to change them yet.


We'll probably need some more prototypes, but all in all, this is 
a fairly good method of creating complete-featured dialogs quickly.
Graham
15-Jul-2010
[2063x2]
Isn't it just simpler to introduce a new type ... fpair for floating 
point par
I thought we were going to be allowed to add our own types eventually
BrianH
15-Jul-2010
[2065x2]
Yes, but none of those types would have literal syntax.
And an fpair type would add a syntax ambiguity if we kept the integer 
pair type.
Graham
21-Jul-2010
[2067x2]
Is this page deprecated? http://www.rebol.com/r3/docs/gui/reactors.html

My older r3 builds don't recognize 'make-reactor
I get an error message ....
Henrik
21-Jul-2010
[2069]
it doesn't exist. the function is called MAKE-FACE-ACTION.