[Fwd: Re: iliad and blocks]

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Fwd: Re: iliad and blocks]

Janko Mivšek

-------- Izvirno sporočilo --------
Zadeva: Re: [Help-smalltalk] iliad and blocks
Datum: Mon, 22 Jun 2009 17:02:47 +0200
Od: Paolo Bonzini <[hidden email]>
Za: Janko Mivšek <[hidden email]>

>> I guess then #render:/#renderOn: vs. #build:/#buildOn: is just a matter
>> of Seaside vs. Aida legacy.
>
> This is not just a matter of naming.  Both approaches are actually
> pretty different.
>
> While #render renders HTML immediately and directly to the response,
> #build in both Iliad and Aida builds first a composite tree of the
> Widget/Component/Page, then the next step is actual rendering of HTML to
> the response.
>
> That's why they are "painting" the page while we are "composing" it.

Interesting, I saw that afterwards from the implementation of Element.

Paolo


--
Janko Mivšek
Svetovalec za informatiko
Eranova d.o.o.
Ljubljana, Slovenija
www.eranova.si
tel:  01 514 22 55
faks: 01 514 22 56
gsm: 031 674 565


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: [Fwd: Re: iliad and blocks]

Nicolas Petton
Le lundi 22 juin 2009 à 17:13 +0200, Janko Mivšek a écrit :

> -------- Izvirno sporočilo --------
> Zadeva: Re: [Help-smalltalk] iliad and blocks
> Datum: Mon, 22 Jun 2009 17:02:47 +0200
> Od: Paolo Bonzini <[hidden email]>
> Za: Janko Mivšek <[hidden email]>
>
> >> I guess then #render:/#renderOn: vs. #build:/#buildOn: is just a matter
> >> of Seaside vs. Aida legacy.
> >
> > This is not just a matter of naming.  Both approaches are actually
> > pretty different.
> >
> > While #render renders HTML immediately and directly to the response,
> > #build in both Iliad and Aida builds first a composite tree of the
> > Widget/Component/Page, then the next step is actual rendering of HTML to
> > the response.
> >
> > That's why they are "painting" the page while we are "composing" it.
>
> Interesting, I saw that afterwards from the implementation of Element.
The main advantage of this approach is that you can modify an element
after its creation. This way you can for instance add a script to the
head element of a page after the page creation.

Using elements avoids the need to have documents like seaside ones to do
it.

This could have a HTML building time cost, since it's done in 2 steps,
but I tried to benchmark the two approaches, and I didn't see any
relevant difference.

Anyway because of how widgets are updated, the Iliad multi counter is
3-4 times faster than the seaside one :)

Nico

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

signature.asc (204 bytes) Download Attachment