Thanks for looking into it.

Regarding duplicates, I've got plenty of things to work on, so having
someone else handle duplicates would be best.  I think it would be done as
post-processing text manipulation.  No compiler knowledge needed.  But
again, I think we need to assess how important it is.  If your FlexJS
modules are half the size of the SWF modules, will it really matter that
there are duplicates?  I think maybe if there are issues with static
initializers being re-initialized that would require elimination of
duplicates.

If anyone wants to try to create a utility to remove duplicates, I think
it is a matter of finding the beginning and end of a class definition in
the minified code.  I think you look for "function " get the name that
follows and all text until then next "function " is the code for that
class.  If the main app already has a function of that name, you remove
that from output file.

HTH,
-Alex

On 9/7/17, 5:35 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira"
<carlos.rov...@gmail.com on behalf of carlos.rov...@codeoscopic.com> wrote:

>Ok Alex,
>
>I'll be looking at the example and seeing how it performs and give some
>feedback. I think it could work for me at least, but I suppose that in the
>end we would need to clean those duplicates in order to have a more
>"production" feature
>
>Thanks!
>
>
>
>2017-09-07 9:37 GMT+02:00 Alex Harui <aha...@adobe.com.invalid>:
>
>> Hi Carlos,
>>
>> Peter's work ended up being more like SWFLoader.  It loads something
>>much
>> more like a sub-application.
>>
>> There is a examples/flexjs/ModuleExample folder.
>>
>> I have not spent any time on resolving any of the drawbacks mentioned in
>> the original post.  First, I want to see how important it is to folks.
>> For example if your module is small enough, maybe we don't need to spend
>> time on trying to extract duplicates.
>>
>> Thanks,
>> -Alex
>>
>> On 9/6/17, 4:09 PM, "carlos.rov...@gmail.com on behalf of Carlos Rovira"
>> <carlos.rov...@gmail.com on behalf of carlos.rov...@codeoscopic.com>
>> wrote:
>>
>> >Hi Alex,
>> >
>> >very interesting. That was one of the other things I needed, so great
>>to
>> >see make it real! :)
>> >
>> >Questions:
>> >
>> >1.- I remember Peter did some work on this. Could you tell us main
>> >diferences between Peter's work and yours to understand more about the
>> >implementation?
>> >
>> >2.- Can I found some example in our repo to check it and play with it?
>> >
>> >3.- About the draw backs you mention, there's some progress on it or do
>> >you
>> >think in left as is for the moment?, those problems of duplicated js
>>files
>> >should be a problem, or only something to clean in some way in the
>>future?
>> >
>> >Thanks for making this!
>> >
>> >Carlos
>> >
>> >
>> >
>> >2017-08-18 17:31 GMT+02:00 Alex Harui <aha...@adobe.com.invalid>:
>> >
>> >> Hi Olaf,
>> >>
>> >> Hopefully there is no "magic".  I think it works pretty much like
>> >>regular
>> >> Flex modules.  There is a UIModuleLoader that loads a Mouse compiled
>>and
>> >> defined from a UIModule.  You can defer the downloading and
>> >>instantiation
>> >> of the module by controlling when the UIModuleLoader's URL for the
>> >>module
>> >> gets set.  In theory, the URL can point to anywhere you have
>>permission
>> >>to
>> >> load and run code in a JS file.  So the module does not have to be
>> >>bundled
>> >> and delivered with the application files.
>> >>
>> >> Of course, I expect there are still bugs and missing features that
>>need
>> >>to
>> >> be worked out.
>> >>
>> >> Thanks,
>> >> -Alex
>> >>
>> >> On 8/18/17, 1:30 AM, "Olaf Krueger" <p...@olafkrueger.net> wrote:
>> >>
>> >> >Hi Alex,
>> >> >great that you've heard the community voice and start working on
>>this!
>> >> >
>> >> >>...and loaded after application startup...
>> >> >
>> >> >Does this mean that a FlexJS module is loaded from the server (same
>> >>origin
>> >> >as the main app?) by some magic or is it already bundled and
>>delivered
>> >> >with
>> >> >the FlexJS app and will just be instantiated when it's needed?
>> >> >
>> >> >Thanks,
>> >> >Olaf
>> >> >
>> >> >
>> >> >
>> >> >--
>> >> >View this message in context:
>> >> >https://na01.safelinks.protection.outlook.com/?url=
>> >> http%3A%2F%2Fapache-fle
>> >> >x-development.2333347.n4.nabble.com%2FFLEXJS-Modules-
>> >> tp63894p63905.html&da
>> >> >ta=02%7C01%7C%7C7669ae743536483eaaf708d4e613
>> >> a5a5%7Cfa7b1b5a7b34438794aed2c
>> >> >178decee1%7C0%7C0%7C636386419440846961&sdata=
>> >> ELxRbs%2B23Cq%2Fy0T%2FJaK5Iva
>> >> >p1YebDwsHWeJXY%2Bsbfzg%3D&reserved=0
>> >> >Sent from the Apache Flex Development mailing list archive at
>> >>Nabble.com.
>> >>
>> >>
>> >
>> >
>> >--
>> >
>> ><https://na01.safelinks.protection.outlook.com/?url=
>> http%3A%2F%2Fwww.codeo
>> >scopic.com&data=02%7C01%7C%7C31f3f9c5de7f4328381e08d4f57c
>> 557c%7Cfa7b1b5a7b
>> >34438794aed2c178decee1%7C0%7C0%7C636403361742122060&
>> sdata=cdyv3J4JK%2FzpFe
>> >vIXH1usEktPyYFu4vhQ67%2FLYviLP0%3D&reserved=0>
>> >
>> >Carlos Rovira
>> >
>> >Director General
>> >
>> >M: +34 607 22 60 05
>> >
>> >https://na01.safelinks.protection.outlook.com/?url=
>> http%3A%2F%2Fwww.codeos
>> >copic.com&data=02%7C01%7C%7C31f3f9c5de7f4328381e08d4f57c
>> 557c%7Cfa7b1b5a7b3
>> >4438794aed2c178decee1%7C0%7C0%7C636403361742122060&
>> sdata=cdyv3J4JK%2FzpFev
>> >IXH1usEktPyYFu4vhQ67%2FLYviLP0%3D&reserved=0
>> >
>> >https://na01.safelinks.protection.outlook.com/?url=
>> http%3A%2F%2Fwww.avant2
>> >.es&data=02%7C01%7C%7C31f3f9c5de7f4328381e08d4f57c
>> 557c%7Cfa7b1b5a7b3443879
>> >4aed2c178decee1%7C0%7C0%7C636403361742122060&sdata=
>> l8Y04woWa%2F8SgQDnaT8Hv
>> >Qkvw1mGDwjHkVeKgAOOJYo%3D&reserved=0
>> >
>> >
>> >Conocenos en 1 minuto!
>> ><https://na01.safelinks.protection.outlook.com/?url=
>> https%3A%2F%2Fyoutu.be
>> >%2FP2IEAYDG5HU&data=02%7C01%7C%7C31f3f9c5de7f4328381e08d4f57c
>> 557c%7Cfa7b1b
>> >5a7b34438794aed2c178decee1%7C0%7C0%7C636403361742122060&
>> sdata=i3iplm%2B5TO
>> >o9BCQyxDS4RYkthBQ661n2KRcl6vtjkEA%3D&reserved=0>
>> >
>> >
>> >Este mensaje se dirige exclusivamente a su destinatario y puede
>>contener
>> >información privilegiada o confidencial. Si ha recibido este mensaje
>>por
>> >error, le rogamos que nos lo comunique inmediatamente por esta misma
>>vía y
>> >proceda a su destrucción.
>> >
>> >De la vigente Ley Orgánica de Protección de Datos (15/1999), le
>> >comunicamos
>> >que sus datos forman parte de un fichero cuyo responsable es
>>CODEOSCOPIC
>> >S.A. La finalidad de dicho tratamiento es facilitar la prestación del
>> >servicio o información solicitados, teniendo usted derecho de acceso,
>> >rectificación, cancelación y oposición de sus datos dirigiéndose a
>> >nuestras
>> >oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
>> >necesaria.
>>
>>
>
>
>-- 
>
><https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.codeo
>scopic.com&data=02%7C01%7C%7C30feef01adc74a8a7bb308d4f5eceffe%7Cfa7b1b5a7b
>34438794aed2c178decee1%7C0%7C0%7C636403845372798227&sdata=2LenLEGTxWQhmXJQ
>rGOTpoxDlhcjWOiDP91VY7J6F4A%3D&reserved=0>
>
>Carlos Rovira
>
>Director General
>
>M: +34 607 22 60 05
>
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.codeos
>copic.com&data=02%7C01%7C%7C30feef01adc74a8a7bb308d4f5eceffe%7Cfa7b1b5a7b3
>4438794aed2c178decee1%7C0%7C0%7C636403845372798227&sdata=2LenLEGTxWQhmXJQr
>GOTpoxDlhcjWOiDP91VY7J6F4A%3D&reserved=0
>
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.avant2
>.es&data=02%7C01%7C%7C30feef01adc74a8a7bb308d4f5eceffe%7Cfa7b1b5a7b3443879
>4aed2c178decee1%7C0%7C0%7C636403845372798227&sdata=zYEvIXFFgQ7pxyd5D0BHUFu
>VKXPxa3jBYjQMwzSRR%2Fw%3D&reserved=0
>
>
>Conocenos en 1 minuto!
><https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fyoutu.be
>%2FP2IEAYDG5HU&data=02%7C01%7C%7C30feef01adc74a8a7bb308d4f5eceffe%7Cfa7b1b
>5a7b34438794aed2c178decee1%7C0%7C0%7C636403845372798227&sdata=b2%2BRT%2B5f
>icaLLNxneW2StQU4m3Xn8GnO1aMH%2FvBZF%2Fc%3D&reserved=0>
>
>
>Este mensaje se dirige exclusivamente a su destinatario y puede contener
>información privilegiada o confidencial. Si ha recibido este mensaje por
>error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
>proceda a su destrucción.
>
>De la vigente Ley Orgánica de Protección de Datos (15/1999), le
>comunicamos
>que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
>S.A. La finalidad de dicho tratamiento es facilitar la prestación del
>servicio o información solicitados, teniendo usted derecho de acceso,
>rectificación, cancelación y oposición de sus datos dirigiéndose a
>nuestras
>oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
>necesaria.

Reply via email to