From: Kevin <ke...@ke...> - 2003-06-10 03:26:59
|
Sorry, didn't send to the list! ----- Original Message ----- From: "Kevin" <ke...@ke...> To: "Jesse Vitrone" <je...@6t...> Sent: Tuesday, June 10, 2003 4:22 AM Subject: Re: [Dynapi-Dev] compressing files > I mean the packages.js file can help with the dependency logic for your xml config file. > > Though I don't know how to get around the (dom/opera/ns4/ie layer)*(mouse) file split. > The other inline compressor method would work here - though server load impact and > no cache of the transient stream :( what! I wish I could explain better ). > > As for this method once a developer has a custom pre-processed and compressed file > set published on the server there is no need for the library. Difficult to choose. Though > I like one bundle per (virtual) server with little load. > > - > Kevin > > ----- Original Message ----- > From: Jesse Vitrone > To: Kevin > Cc: Dynapi-Dev > Sent: Sunday, June 08, 2003 7:19 PM > Subject: Re: [Dynapi-Dev] compressing files > > > Kevin, > I'm not sure what you mean about remove the existing library system from the api. With the xml > config that I you can customize, you just pick and choose what JS files you want it to compress and > merge. So, I have the basic DynAPI ones, plus the others that I use, plus my own. It looks > something like this: > > <jscompressor> > <compressed-file name="D:/development/6thgear/js/6thgear_compressed.js"> > <input-file name="D:/development/6thgear/dynapi/src/dynapi.js"/> > <input-file name="D:/development/6thgear/dynapi/src/api/event.js"/> > <input-file name="D:/development/6thgear/dynapi/src/api/dyndocument.js"/> > <input-file name="D:/development/6thgear/dynapi/src/api/dynlayer_base.js"/> > <input-file name="D:/development/6thgear/dynapi/src/api/dynlayer_dom.js"/> > <input-file name="D:/development/6thgear/dynapi/src/api/mouse_dom.js"/> > <input-file name="D:/development/6thgear/dynapi/src/api/ext/dynlayer.inline.js"/> > <input-file name="D:/development/6thgear/js/6thgear.js"/> > <input-file name="D:/development/6thgear/js/gearWindow.js"/> > <input-file name="D:/development/6thgear/js/templates.js"/> > </compressed-file> > > <compressed-file name="D:/development/6thgear/js/6thgear_edit_compressed.js"> > <input-file name="D:/development/6thgear/dynapi/src/api/ext/dragevent.js"/> > <input-file name="D:/development/6thgear/js/6thgear_edit.js"/> > <input-file name="D:/development/6thgear/js/gearWindow_edit.js"/> > <input-file name="D:/development/6thgear/js/templates_edit.js"/> > </compressed-file> > > </jscompressor> > > > This generates 2 files, 6thgear_compress.js and 6thgear_edit_compressed. Then, my files only need > to include these, and no other DynAPI files. > > Is this what you mean by removing the library system? Since I don't have to include the library.js > or use it in my code? > > Jesse > > Kevin wrote: > > Hi Jesse, > > I think two compression methods can live well together. > Yours will serve a static compressed bundle with little > server load. It would be nice of this method could > remove the existing library system from the api. Then > the compressor would reuse the removed code logic (to > work out dependencies) as a front end so the developer > can decide what compressed bundle is needed to serve > hosted application types. Is this is a standalone > application requiring an interpreter not an applet. > > - > Kevin. > > "Raymond Irving" <xw...@ya...> wrote: > > Hi Jesse, > > As Leif said, SourceForge only allow developers to > uses SSH inorder to write to CVS. > > How large is the Java version of the compressor? > > Some time ago I made mention of having two versions of > the dynapi for download. A developer version and a > production version. IMO the developer version would > include all the external (non-API related) utilities, > etc, while the production version would only include > the src, docs and examples. Should we make the > external tools/utilities, etc be part of the > developer's download or should they be separate > (something like a Dynapi Developement Kit - DDK)? > > PS. All dynapi external utilities, etc should be > placed in the bin/ folder. In some cases it might be > good to arrange them in folders > > -- > Raymond Irving > > > --- Jesse Vitrone <je...@6t...> wrote: > > --------------------------------- > Raymond, Leif, > Greg, glad to see you both like the idea. I'll > sign up withsourceforge and use the patch system. > I grabbed the code from CVS when I first started > making thechanges, but I tried to do an update today, > and there were lots onconflitcts that CVS didn't seem > to merge very well. So I grabbed aclean copy of the > code again, and I'll go through and make the > changesagain. Didn't take too long the first time. > I have WinCVS, but I've been using Tortoise CVS. > What do I needPutty for? > > I found a bug today in my Java compression tool, > and I'd like toget that fixed before I sent it out. I > also wanted to add a feature inthe XML where you can > specify a comment that will be put at the top ofthe > merged file, since it rips out all comments, and a lot > of peoplewant something in the file for licensing and > stuff like that. Once Iget that stuff in, I'll let > you know and send you a copy. > > > Jesse > > Raymond Irving wrote: > > Very cool indeed Jesse, very cool. Well done.IMO the > merge feature is a major plus for the > DynAPIlibraries.There're two ways to check in your > updates. You could:1) Use the Patch system available > on the DynAPISourceForge web site2) Setup WinCVS and > Putty on you computer can check inyou changes via > CVS.Are your changes based on the lasted version in > CVS?--Raymond Irving--- Jesse Vitrone > <je...@6t...> wrote: > > Ooops, sorry, hit send too soon :( Here's the > wholeemailHello all, I've never contributed to an > open source projectbefore, so I'm not sure of the > proper ettiquite. Please correct me ifI do something > stupid :) I've been email with Raymond Irving about > someidea's that I had, and he encouraged me to post it > here and see whatpeople think. I wrote a Java > version of the JavaScriptcompressor that comes with > DynAPI. Along with everything that the DynAPI > onedoes, it reads in a config file that says "compress > these files, thenmerge them into this one file". This > enables me to keep a good amount ofJS files when I'm > coding, but then when I "build" to apache, Icompress > them all into 1 file, so the browser doesn't have to > hit the servermultiple times to get the files. > Then, I took it a step farther, and added what Ihad to > in order to be able to compress the DynAPI files I was > using,and it worked! I was able to get all my files, > plus the DynAPI files Iwas using and compress / merge > them all into 1 file. It sped things up onmy server > dramatically. The changes were all just adding > semi-colonswhere they were needed, except for one > case: The mouse_ie.js, dyndocument.js > andmouse_dom.js files all have a method called "main" > and that doesn't seem to workvery well when they're > all combined into the same file. To fix it,I renamed > them, which names like main_mouse_ie, etc, and fixed > allthe other references to them. Seems to work fine, > but I haven't testedextensively all the examples and > such.I'd like to check in my changes, as well as send > inmy Java compressor, since Raymond said he'd like to > post it on the site. I'd also like to make a Swing > front end for the java app to make it alittle easier > to use.What do you guys and gals think of this idea? > Should I check in the changes? What's the right > process for checking inchanges? Jesse > > ------------------------------------------------------- > > > This SF.net email is sponsored by: Etnus, makers > ofTotalView, The bestthread debugger on the planet. > Designed with threaddebugging featuresyou've never > dreamed of, try TotalView 6 free > atwww.etnus.com._______________________________________________Dynapi-Dev > mailing lis...@li... > > http://www.mail-archive.com/dyn...@li.../__________________________________Do > you Yahoo!?Yahoo! Calendar - Free online calendar with > sync to > Outlook(TM).http://calendar.yahoo.com-------------------------------------------------------This > SF.net email is sponsored by: Etnus, makers of > TotalView, The bestthread debugger on the planet. > Designed with thread debugging featuresyou've never > dreamed of, try TotalView 6 free at > www.etnus.com._______________________________________________Dynapi-Dev > mailing > lis...@li...http://www.mail-archive.com/dyn...@li.../ > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Calendar - Free online calendar with sync to Outlook(TM). > http://calendar.yahoo.com > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The best > thread debugger on the planet. Designed with thread debugging features > you've never dreamed of, try TotalView 6 free at www.etnus.com. > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://www.mail-archive.com/dyn...@li.../ > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The best > thread debugger on the planet. Designed with thread debugging features > you've never dreamed of, try TotalView 6 free at www.etnus.com. > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://www.mail-archive.com/dyn...@li.../ > > |
From: Jesse V. <je...@6t...> - 2003-06-10 11:27:05
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"> <title></title> </head> <body text="#000000" bgcolor="#ffffff"> Thanks for the suggestions Kevin and Raymond,<br> <br> It looks like I can make my xml something like this:<br> <br> <input-group><br> <input-file name="D:/development/6thgear/dynapi/src/api/mouse_ie.js" compare-value="dynapi.ua.ie" /><br> <input-file name="D:/development/6thgear/dynapi/src/api/mouse_dom.js"/><br> </input-group><br> <br> and have my code generate the js:<br> <br> if (dynapi.ua.ie) {<br> // mouse_ie.js compressed code goes here<br> }<br> else {<br> // mouse_dom.js compressed code goes here<br> }<br> <br> I'll take the first of the group, and make the if.<br> Everything up to the last will be an else if<br> And the last, makes the else.<br> <br> All input-files inside an input-group need a compare-value, except for the last one.<br> <br> This looks like it should work. When I hand code my compressed file to look like the above, it works. It's more code then would normally be needed, since both files are going to get included, but I can't think of any other way around this problem. Plus, only the one needed will have to get parsed, so it shouldn't be too bad.<br> <br> What do you think? Do you see any problems that I might run into trying to do it this way/<br> <br> Also, since I have to redo the way the xml is parsed, I'm going to use the built in xml parsing that java has and lose that dom4j.jar dependency. Not as pretty, but it gets the job done.<br> <br> Thanks for the help.<br> <br> Jesse<br> <br> <br> Kevin wrote:<br> <blockquote type="cite" cite="mid008901c32f00$3552cc30$50c2dec2@keg2"> <pre wrap="">Sorry, didn't send to the list! ----- Original Message ----- From: "Kevin" <a class="moz-txt-link-rfc2396E" href="mailto:ke...@ke..."><ke...@ke...></a> To: "Jesse Vitrone" <a class="moz-txt-link-rfc2396E" href="mailto:je...@6t..."><je...@6t...></a> Sent: Tuesday, June 10, 2003 4:22 AM Subject: Re: [Dynapi-Dev] compressing files </pre> <blockquote type="cite"> <pre wrap="">I mean the packages.js file can help with the dependency logic for your xml config file. Though I don't know how to get around the (dom/opera/ns4/ie layer)*(mouse) file split. The other inline compressor method would work here - though server load impact and no cache of the transient stream :( what! I wish I could explain better ). As for this method once a developer has a custom pre-processed and compressed file set published on the server there is no need for the library. Difficult to choose. Though I like one bundle per (virtual) server with little load. - Kevin ----- Original Message ----- From: Jesse Vitrone To: Kevin Cc: Dynapi-Dev Sent: Sunday, June 08, 2003 7:19 PM Subject: Re: [Dynapi-Dev] compressing files Kevin, I'm not sure what you mean about remove the existing library system from the api. With the </pre> </blockquote> <pre wrap=""><!---->xml </pre> <blockquote type="cite"> <pre wrap="">config that I you can customize, you just pick and choose what JS files you want it to compress </pre> </blockquote> <pre wrap=""><!---->and </pre> <blockquote type="cite"> <pre wrap="">merge. So, I have the basic DynAPI ones, plus the others that I use, plus my own. It looks something like this: <jscompressor> <compressed-file name="D:/development/6thgear/js/6thgear_compressed.js"> <input-file name="D:/development/6thgear/dynapi/src/dynapi.js"/> <input-file name="D:/development/6thgear/dynapi/src/api/event.js"/> <input-file name="D:/development/6thgear/dynapi/src/api/dyndocument.js"/> <input-file name="D:/development/6thgear/dynapi/src/api/dynlayer_base.js"/> <input-file name="D:/development/6thgear/dynapi/src/api/dynlayer_dom.js"/> <input-file name="D:/development/6thgear/dynapi/src/api/mouse_dom.js"/> <input-file name="D:/development/6thgear/dynapi/src/api/ext/dynlayer.inline.js"/> <input-file name="D:/development/6thgear/js/6thgear.js"/> <input-file name="D:/development/6thgear/js/gearWindow.js"/> <input-file name="D:/development/6thgear/js/templates.js"/> </compressed-file> <compressed-file name="D:/development/6thgear/js/6thgear_edit_compressed.js"> <input-file name="D:/development/6thgear/dynapi/src/api/ext/dragevent.js"/> <input-file name="D:/development/6thgear/js/6thgear_edit.js"/> <input-file name="D:/development/6thgear/js/gearWindow_edit.js"/> <input-file name="D:/development/6thgear/js/templates_edit.js"/> </compressed-file> </jscompressor> This generates 2 files, 6thgear_compress.js and 6thgear_edit_compressed. Then, my files only need to include these, and no other DynAPI files. Is this what you mean by removing the library system? Since I don't have to include the </pre> </blockquote> <pre wrap=""><!---->library.js </pre> <blockquote type="cite"> <pre wrap="">or use it in my code? Jesse Kevin wrote: Hi Jesse, I think two compression methods can live well together. Yours will serve a static compressed bundle with little server load. It would be nice of this method could remove the existing library system from the api. Then the compressor would reuse the removed code logic (to work out dependencies) as a front end so the developer can decide what compressed bundle is needed to serve hosted application types. Is this is a standalone application requiring an interpreter not an applet. - Kevin. "Raymond Irving" <a class="moz-txt-link-rfc2396E" href="mailto:xw...@ya..."><xw...@ya...></a> wrote: Hi Jesse, As Leif said, SourceForge only allow developers to uses SSH inorder to write to CVS. How large is the Java version of the compressor? Some time ago I made mention of having two versions of the dynapi for download. A developer version and a production version. IMO the developer version would include all the external (non-API related) utilities, etc, while the production version would only include the src, docs and examples. Should we make the external tools/utilities, etc be part of the developer's download or should they be separate (something like a Dynapi Developement Kit - DDK)? PS. All dynapi external utilities, etc should be placed in the bin/ folder. In some cases it might be good to arrange them in folders -- Raymond Irving --- Jesse Vitrone <a class="moz-txt-link-rfc2396E" href="mailto:je...@6t..."><je...@6t...></a> wrote: --------------------------------- Raymond, Leif, Greg, glad to see you both like the idea. I'll sign up withsourceforge and use the patch system. I grabbed the code from CVS when I first started making thechanges, but I tried to do an update today, and there were lots onconflitcts that CVS didn't seem to merge very well. So I grabbed aclean copy of the code again, and I'll go through and make the changesagain. Didn't take too long the first time. I have WinCVS, but I've been using Tortoise CVS. What do I needPutty for? I found a bug today in my Java compression tool, and I'd like toget that fixed before I sent it out. I also wanted to add a feature inthe XML where you can specify a comment that will be put at the top ofthe merged file, since it rips out all comments, and a lot of peoplewant something in the file for licensing and stuff like that. Once Iget that stuff in, I'll let you know and send you a copy. Jesse Raymond Irving wrote: Very cool indeed Jesse, very cool. Well done.IMO the merge feature is a major plus for the DynAPIlibraries.There're two ways to check in your updates. You could:1) Use the Patch system available on the DynAPISourceForge web site2) Setup WinCVS and Putty on you computer can check inyou changes via CVS.Are your changes based on the lasted version in CVS?--Raymond Irving--- Jesse Vitrone <a class="moz-txt-link-rfc2396E" href="mailto:je...@6t..."><je...@6t...></a> wrote: Ooops, sorry, hit send too soon :( Here's the wholeemailHello all, I've never contributed to an open source projectbefore, so I'm not sure of the proper ettiquite. Please correct me ifI do something stupid :) I've been email with Raymond Irving about someidea's that I had, and he encouraged me to post it here and see whatpeople think. I wrote a Java version of the JavaScriptcompressor that comes with DynAPI. Along with everything that the DynAPI onedoes, it reads in a config file that says "compress these files, thenmerge them into this one file". This enables me to keep a good amount ofJS files when I'm coding, but then when I "build" to apache, Icompress them all into 1 file, so the browser doesn't have to hit the servermultiple times to get the files. Then, I took it a step farther, and added what Ihad to in order to be able to compress the DynAPI files I was using,and it worked! I was able to get all my files, plus the DynAPI files Iwas using and compress / merge them all into 1 file. It sped things up onmy server dramatically. The changes were all just adding semi-colonswhere they were needed, except for one case: The mouse_ie.js, dyndocument.js andmouse_dom.js files all have a method called "main" and that doesn't seem to workvery well when they're all combined into the same file. To fix it,I renamed them, which names like main_mouse_ie, etc, and fixed allthe other references to them. Seems to work fine, but I haven't testedextensively all the examples and such.I'd like to check in my changes, as well as send inmy Java compressor, since Raymond said he'd like to post it on the site. I'd also like to make a Swing front end for the java app to make it alittle easier to use.What do you guys and gals think of this idea? Should I check in the changes? What's the right process for checking inchanges? Jesse ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers ofTotalView, The bestthread debugger on the planet. Designed with threaddebugging featuresyou've never dreamed of, try TotalView 6 free atwww.etnus.com._______________________________________________Dynapi-Dev mailing <a class="moz-txt-link-abbreviated" href="mailto:lis...@li...">lis...@li...</a> <a class="moz-txt-link-freetext" href="http://www.mail-archive.com/dyn...@li.../__________________________________Do">http://www.mail-archive.com/dyn...@li.../__________________________________Do</a> you Yahoo!?Yahoo! Calendar - Free online calendar with sync to Outlook(TM).http://calendar.yahoo.com-------------------------------------------------------This SF.net email is sponsored by: Etnus, makers of TotalView, The bestthread debugger on the planet. Designed with thread debugging featuresyou've never dreamed of, try TotalView 6 free at <a class="moz-txt-link-abbreviated" href="http://www.etnus.com._______________________________________________Dynapi-Dev">www.etnus.com._______________________________________________Dynapi-Dev</a> mailing <a class="moz-txt-link-abbreviated" href="mailto:lis...@li...http://www.mail-archive.com/dyn...@li.../">lis...@li...http://www.mail-archive.com/dyn...@li.../</a> __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). <a class="moz-txt-link-freetext" href="http://calendar.yahoo.com">http://calendar.yahoo.com</a> ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at <a class="moz-txt-link-abbreviated" href="http://www.etnus.com">www.etnus.com</a>. _______________________________________________ Dynapi-Dev mailing list <a class="moz-txt-link-abbreviated" href="mailto:Dyn...@li...">Dyn...@li...</a> <a class="moz-txt-link-freetext" href="http://www.mail-archive.com/dyn...@li.../">http://www.mail-archive.com/dyn...@li.../</a> ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at <a class="moz-txt-link-abbreviated" href="http://www.etnus.com">www.etnus.com</a>. _______________________________________________ Dynapi-Dev mailing list <a class="moz-txt-link-abbreviated" href="mailto:Dyn...@li...">Dyn...@li...</a> <a class="moz-txt-link-freetext" href="http://www.mail-archive.com/dyn...@li.../">http://www.mail-archive.com/dyn...@li.../</a> </pre> </blockquote> <pre wrap=""><!----> ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at <a class="moz-txt-link-abbreviated" href="http://www.etnus.com">www.etnus.com</a>. _______________________________________________ Dynapi-Dev mailing list <a class="moz-txt-link-abbreviated" href="mailto:Dyn...@li...">Dyn...@li...</a> <a class="moz-txt-link-freetext" href="http://www.mail-archive.com/dyn...@li.../">http://www.mail-archive.com/dyn...@li.../</a> </pre> </blockquote> </body> </html> |
From: Raymond I. <xw...@ya...> - 2003-06-10 15:27:06
|
Well how about generating only browser specific merge modules? dynapi.js merge.ie.js merge.dom.js merge.opera.js merge.ns4.js in the browser we could then do the following: <script src="../src/dynapi.js"></script> <script> if(dynapi.ua.ie) { dynapi.setPath('../src/','merge.ie.js'); }else if(dynapi.ua.opera) { dynapi.setPath('../src/','merge.opera.js'); }else if(dynapi.ua.ns4) { dynapi.setPath('../src/','merge.ns4.js'); }else if(dynapi.ua.supported) { dynapi.setPath('../src/','merge.dom.js'); }else{ alert('Browser not supported'); } </script> The dynapi.js file would be compressed and stored as dynapi.js. The other browser specific (and non-specific) libraries could then be merged into a single file. Only two files will be needed (dynapi.js and merge.{whatever}.js) The setPath() function will support a second argument called pkgfile (Package file). This will be used to allow users to load in an alternative package.js file -- Raymond Irving --- Jesse Vitrone <je...@6t...> wrote: --------------------------------- Thanks for the suggestions Kevin and Raymond, It looks like I can make my xml something like this: <input-group> <input-filename="D:/development/6thgear/dynapi/src/api/mouse_ie.js"compare-value="dynapi.ua.ie" /> <input-filename="D:/development/6thgear/dynapi/src/api/mouse_dom.js"/> </input-group> and have my code generate the js: if (dynapi.ua.ie) { // mouse_ie.js compressed code goes here } else { // mouse_dom.js compressed code goes here } I'll take the first of the group, and make the if. Everything up to the last will be an else if And the last, makes the else. All input-files inside an input-group need a compare-value, except forthe last one. This looks like it should work. When I hand code my compressed file tolook like the above, it works. It's more code then would normally beneeded, since both files are going to get included, but I can't thinkof any other way around this problem. Plus, only the one needed willhave to get parsed, so it shouldn't be too bad. What do you think? Do you see any problems that I might run intotrying to do it this way/ Also, since I have to redo the way the xml is parsed, I'm going to usethe built in xml parsing that java has and lose that dom4j.jardependency. Not as pretty, but it gets the job done. Thanks for the help. Jesse Kevin wrote: Sorry, didn't send to the list!----- Original Message ----- From: "Kevin" <ke...@ke...>To: "Jesse Vitrone" <je...@6t...>Sent: Tuesday, June 10, 2003 4:22 AMSubject: Re: [Dynapi-Dev] compressing files I mean the packages.js file can help with the dependency logic for your xml config file.Though I don't know how to get around the (dom/opera/ns4/ie layer)*(mouse) file split.The other inline compressor method would work here - though server load impact andno cache of the transient stream :( what! I wish I could explain better ).As for this method once a developer has a custom pre-processed and compressed fileset published on the server there is no need for the library. Difficult to choose. ThoughI like one bundle per (virtual) server with little load.-Kevin----- Original Message ----- From: Jesse VitroneTo: KevinCc: Dynapi-DevSent: Sunday, June 08, 2003 7:19 PMSubject: Re: [Dynapi-Dev] compressing filesKevin, I'm not sure what you mean about remove the existing library system from the api. With the xml config that I you can customize, you just pick and choose what JS files you want it to compress and merge. So, I have the basic DynAPI ones, plus the others that I use, plus my own. It lookssomething like this:<jscompressor> <compressed-file name="D:/development/6thgear/js/6thgear_compressed.js"> <input-file name="D:/development/6thgear/dynapi/src/dynapi.js"/> <input-file name="D:/development/6thgear/dynapi/src/api/event.js"/> <input-file name="D:/development/6thgear/dynapi/src/api/dyndocument.js"/> <input-file name="D:/development/6thgear/dynapi/src/api/dynlayer_base.js"/> <input-file name="D:/development/6thgear/dynapi/src/api/dynlayer_dom.js"/> <input-file name="D:/development/6thgear/dynapi/src/api/mouse_dom.js"/> <input-file name="D:/development/6thgear/dynapi/src/api/ext/dynlayer.inline.js"/> <input-file name="D:/development/6thgear/js/6thgear.js"/> <input-file name="D:/development/6thgear/js/gearWindow.js"/> <input-file name="D:/development/6thgear/js/templates.js"/> </compressed-file> <compressed-file name="D:/development/6thgear/js/6thgear_edit_compressed.js"> <input-file name="D:/development/6thgear/dynapi/src/api/ext/dragevent.js"/> <input-file name="D:/development/6thgear/js/6thgear_edit.js"/> <input-file name="D:/development/6thgear/js/gearWindow_edit.js"/> <input-file name="D:/development/6thgear/js/templates_edit.js"/> </compressed-file></jscompressor>This generates 2 files, 6thgear_compress.js and 6thgear_edit_compressed. Then, my files only needto include these, and no other DynAPI files.Is this what you mean by removing the library system? Since I don't have to include the library.js or use it in my code?JesseKevin wrote:Hi Jesse,I think two compression methods can live well together.Yours will serve a static compressed bundle with littleserver load. It would be nice of this method couldremove the existing library system from the api. Thenthe compressor would reuse the removed code logic (towork out dependencies) as a front end so the developercan decide what compressed bundle is needed to servehosted application types. Is this is a standaloneapplication requiring an interpreter not an applet.-Kevin."Raymond Irving" <xw...@ya...> wrote:Hi Jesse,As Leif said, SourceForge only allow developers touses SSH inorder to write to CVS.How large is the Java version of the compressor?Some time ago I made mention of having two versions ofthe dynapi for download. A developer version and aproduction version. IMO the developer version wouldinclude all the external (non-API related) utilities,etc, while the production version would only includethe src, docs and examples. Should we make theexternal tools/utilities, etc be part of thedeveloper's download or should they be separate(something like a Dynapi Developement Kit - DDK)?PS. All dynapi external utilities, etc should beplaced in the bin/ folder. In some cases it might begood to arrange them in folders--Raymond Irving--- Jesse Vitrone <je...@6t...> wrote:--------------------------------- Raymond, Leif, Greg, glad to see you both like the idea. I'llsign up withsourceforge and use the patch system. I grabbed the code from CVS when I first startedmaking thechanges, but I tried to do an update today,and there were lots onconflitcts that CVS didn't seemto merge very well. So I grabbed aclean copy of thecode again, and I'll go through and make thechangesagain. Didn't take too long the first time. I have WinCVS, but I've been using Tortoise CVS.What do I needPutty for? I found a bug today in my Java compression tool,and I'd like toget that fixed before I sent it out. Ialso wanted to add a feature inthe XML where you canspecify a comment that will be put at the top ofthemerged file, since it rips out all comments, and a lotof peoplewant something in the file for licensing andstuff like that. Once Iget that stuff in, I'll letyou know and send you a copy.JesseRaymond Irving wrote:Very cool indeed Jesse, very cool. Well done.IMO themerge feature is a major plus for theDynAPIlibraries.There're two ways to check in yourupdates. You could:1) Use the Patch system availableon the DynAPISourceForge web site2) Setup WinCVS andPutty on you computer can check inyou changes viaCVS.Are your changes based on the lasted version inCVS?--Raymond Irving--- Jesse Vitrone<je...@6t...> wrote:Ooops, sorry, hit send too soon :( Here's thewholeemailHello all, I've never contributed to anopen source projectbefore, so I'm not sure of theproper ettiquite. Please correct me ifI do somethingstupid :) I've been email with Raymond Irving aboutsomeidea's that I had, and he encouraged me to post ithere and see whatpeople think. I wrote a Javaversion of the JavaScriptcompressor that comes withDynAPI. Along with everything that the DynAPIonedoes, it reads in a config file that says "compressthese files, thenmerge them into this one file". Thisenables me to keep a good amount ofJS files when I'mcoding, but then when I "build" to apache, Icompressthem all into 1 file, so the browser doesn't have tohit the servermultiple times to get the files.Then, I took it a step farther, and added what Ihad toin order to be able to compress the DynAPI files I wasusing,and it worked! I was able to get all my files,plus the DynAPI files Iwas using and compress / mergethem all into 1 file. It sped things up onmy serverdramatically. The changes were all just addingsemi-colonswhere they were needed, except for onecase: The mouse_ie.js, dyndocument.jsandmouse_dom.js files all have a method called "main"and that doesn't seem to workvery well when they'reall combined into the same file. To fix it,I renamedthem, which names like main_mouse_ie, etc, and fixedallthe other references to them. Seems to work fine,but I haven't testedextensively all the examples andsuch.I'd like to check in my changes, as well as sendinmy Java compressor, since Raymond said he'd like topost it on the site. I'd also like to make a Swingfront end for the java app to make it alittle easierto use.What do you guys and gals think of this idea?Should I check in the changes? What's the rightprocess for checking inchanges? Jesse-------------------------------------------------------This SF.net email is sponsored by: Etnus, makersofTotalView, The bestthread debugger on the planet.Designed with threaddebugging featuresyou've neverdreamed of, try TotalView 6 freeatwww.etnus.com._______________________________________________Dynapi-Devmailing lis...@li...http://www.mail-archive.com/dyn...@li.../__________________________________Doyou Yahoo!?Yahoo! Calendar - Free online calendar withsync toOutlook(TM).http://calendar.yahoo.com-------------------------------------------------------ThisSF.net email is sponsored by: Etnus, makers ofTotalView, The bestthread debugger on the planet.Designed with thread debugging featuresyou've neverdreamed of, try TotalView 6 free atwww.etnus.com._________________...@li...http://www.mail-archive.com/dyn...@li.../__________________________________Do you Yahoo!?Yahoo! Calendar - Free online calendar with sync to Outlook(TM).http://calendar.yahoo.com-------------------------------------------------------This SF.net email is sponsored by: Etnus, makers of TotalView, The bestthread debugger on the planet. Designed with thread debugging featuresyou've never dreamed of, try TotalView 6 free at www.etnus.com._______________________________________________Dynapi-Dev mailing lis...@li...http://www.mail-archive.com/dyn...@li.../-------------------------------------------------------This SF.net email is sponsored by: Etnus, makers of TotalView, The bestthread debugger on the planet. Designed with thread debugging featuresyou've never dreamed of, try TotalView 6 free at www.etnus.com._______________________________________________Dynapi-Dev mailing lis...@li...http://www.mail-archive.com/dyn...@li.../ -------------------------------------------------------This SF.net email is sponsored by: Etnus, makers of TotalView, The bestthread debugger on the planet. Designed with thread debugging featuresyou've never dreamed of, try TotalView 6 free at www.etnus.com._______________________________________________Dynapi-Dev mailing lis...@li...http://www.mail-archive.com/dyn...@li.../ __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com |
From: Jesse V. <je...@6t...> - 2003-06-10 15:35:20
|
Interesting idea, but I'm trying to keep the <script> tags in the browser to a minumum. I finished off the code the way I suggested this morning and it seems to work well, so I'll probably just stick with it that way. This way also allows me to just include "myfile.js" in my page and get everything I need. Jesse Raymond Irving wrote: >Well how about generating only browser specific merge >modules? > >dynapi.js >merge.ie.js >merge.dom.js >merge.opera.js >merge.ns4.js > >in the browser we could then do the following: > ><script src="../src/dynapi.js"></script> ><script> >if(dynapi.ua.ie) { > dynapi.setPath('../src/','merge.ie.js'); >}else if(dynapi.ua.opera) { > dynapi.setPath('../src/','merge.opera.js'); >}else if(dynapi.ua.ns4) { > dynapi.setPath('../src/','merge.ns4.js'); >}else if(dynapi.ua.supported) { > dynapi.setPath('../src/','merge.dom.js'); >}else{ > alert('Browser not supported'); >} ></script> > >The dynapi.js file would be compressed and stored as >dynapi.js. The other browser specific (and >non-specific) libraries could then be merged into a >single file. Only two files will be needed (dynapi.js >and merge.{whatever}.js) > >The setPath() function will support a second argument >called pkgfile (Package file). This will be used to >allow users to load in an alternative package.js file > >-- >Raymond Irving > > >--- Jesse Vitrone <je...@6t...> wrote: > >--------------------------------- > Thanks for the suggestions Kevin and Raymond, > > It looks like I can make my xml something like >this: > > <input-group> > ><input-filename="D:/development/6thgear/dynapi/src/api/mouse_ie.js"compare-value="dynapi.ua.ie" >/> > ><input-filename="D:/development/6thgear/dynapi/src/api/mouse_dom.js"/> > </input-group> > >and have my code generate the js: > > if (dynapi.ua.ie) { > // mouse_ie.js compressed code goes here > } > else { > // mouse_dom.js compressed code goes here > } > >I'll take the first of the group, and make the if. >Everything up to the last will be an else if >And the last, makes the else. > >All input-files inside an input-group need a >compare-value, except forthe last one. > >This looks like it should work. When I hand code my >compressed file tolook like the above, it works. It's >more code then would normally beneeded, since both >files are going to get included, but I can't thinkof >any other way around this problem. Plus, only the one >needed willhave to get parsed, so it shouldn't be too >bad. > >What do you think? Do you see any problems that I >might run intotrying to do it this way/ > >Also, since I have to redo the way the xml is parsed, >I'm going to usethe built in xml parsing that java has >and lose that dom4j.jardependency. Not as pretty, but >it gets the job done. > >Thanks for the help. > >Jesse > > >Kevin wrote: > >Sorry, didn't send to the list!----- Original Message >----- From: "Kevin" <ke...@ke...>To: >"Jesse Vitrone" <je...@6t...>Sent: >Tuesday, June 10, 2003 4:22 AMSubject: Re: >[Dynapi-Dev] compressing files > >I mean the packages.js file can help with the >dependency logic for your xml config file.Though I >don't know how to get around the (dom/opera/ns4/ie >layer)*(mouse) file split.The other inline compressor >method would work here - though server load impact >andno cache of the transient stream :( what! I wish I >could explain better ).As for this method once a >developer has a custom pre-processed and compressed >fileset published on the server there is no need for >the library. Difficult to choose. ThoughI like one >bundle per (virtual) server with little >load.-Kevin----- Original Message ----- From: Jesse >VitroneTo: KevinCc: Dynapi-DevSent: Sunday, June 08, >2003 7:19 PMSubject: Re: [Dynapi-Dev] compressing >filesKevin, I'm not sure what you mean about remove >the existing library system from the api. With the > > >xml > >config that I you can customize, you just pick and >choose what JS files you want it to compress > >and > >merge. So, I have the basic DynAPI ones, plus the >others that I use, plus my own. It lookssomething >like this:<jscompressor> <compressed-file >name="D:/development/6thgear/js/6thgear_compressed.js"> > <input-file >name="D:/development/6thgear/dynapi/src/dynapi.js"/> > <input-file >name="D:/development/6thgear/dynapi/src/api/event.js"/> > <input-file >name="D:/development/6thgear/dynapi/src/api/dyndocument.js"/> > <input-file >name="D:/development/6thgear/dynapi/src/api/dynlayer_base.js"/> > <input-file >name="D:/development/6thgear/dynapi/src/api/dynlayer_dom.js"/> > <input-file >name="D:/development/6thgear/dynapi/src/api/mouse_dom.js"/> > <input-file >name="D:/development/6thgear/dynapi/src/api/ext/dynlayer.inline.js"/> > <input-file >name="D:/development/6thgear/js/6thgear.js"/> ><input-file >name="D:/development/6thgear/js/gearWindow.js"/> > <input-file >name="D:/development/6thgear/js/templates.js"/> ></compressed-file> <compressed-file >name="D:/development/6thgear/js/6thgear_edit_compressed.js"> > <input-file >name="D:/development/6thgear/dynapi/src/api/ext/dragevent.js"/> > <input-file >name="D:/development/6thgear/js/6thgear_edit.js"/> > <input-file >name="D:/development/6thgear/js/gearWindow_edit.js"/> > <input-file >name="D:/development/6thgear/js/templates_edit.js"/> > </compressed-file></jscompressor>This generates 2 >files, 6thgear_compress.js and >6thgear_edit_compressed. Then, my files only needto >include these, and no other DynAPI files.Is this what >you mean by removing the library system? Since I >don't have to include the > >library.js > >or use it in my code?JesseKevin wrote:Hi Jesse,I think >two compression methods can live well together.Yours >will serve a static compressed bundle with >littleserver load. It would be nice of this method >couldremove the existing library system from the api. >Thenthe compressor would reuse the removed code logic >(towork out dependencies) as a front end so the >developercan decide what compressed bundle is needed >to servehosted application types. Is this is a >standaloneapplication requiring an interpreter not an >applet.-Kevin."Raymond Irving" <xw...@ya...> >wrote:Hi Jesse,As Leif said, SourceForge only allow >developers touses SSH inorder to write to CVS.How >large is the Java version of the compressor?Some time >ago I made mention of having two versions ofthe dynapi >for download. A developer version and aproduction >version. IMO the developer version wouldinclude all >the external (non-API related) utilities,etc, while >the production version would only includethe src, docs >and examples. Should we make theexternal >tools/utilities, etc be part of thedeveloper's >download or should they be separate(something like a >Dynapi Developement Kit - DDK)?PS. All dynapi external >utilities, etc should beplaced in the bin/ folder. In >some cases it might begood to arrange them in >folders--Raymond Irving--- Jesse Vitrone ><je...@6t...> >wrote:--------------------------------- Raymond, >Leif, Greg, glad to see you both like the idea. >I'llsign up withsourceforge and use the patch system. > I grabbed the code from CVS when I first >startedmaking thechanges, but I tried to do an update >today,and there were lots onconflitcts that CVS didn't >seemto merge very well. So I grabbed aclean copy of >thecode again, and I'll go through and make >thechangesagain. Didn't take too long the first time. > I have WinCVS, but I've been using Tortoise >CVS.What do I needPutty for? I found a bug today in >my Java compression tool,and I'd like toget that fixed >before I sent it out. Ialso wanted to add a feature >inthe XML where you canspecify a comment that will be >put at the top ofthemerged file, since it rips out all >comments, and a lotof peoplewant something in the file >for licensing andstuff like that. Once Iget that >stuff in, I'll letyou know and send you a >copy.JesseRaymond Irving wrote:Very cool indeed Jesse, >very cool. Well done.IMO themerge feature is a major >plus for theDynAPIlibraries.There're two ways to check >in yourupdates. You could:1) Use the Patch system >availableon the DynAPISourceForge web site2) Setup >WinCVS andPutty on you computer can check inyou >changes viaCVS.Are your changes based on the lasted >version inCVS?--Raymond Irving--- Jesse >Vitrone<je...@6t...> wrote:Ooops, sorry, >hit send too soon :( Here's thewholeemailHello all, > I've never contributed to anopen source >projectbefore, so I'm not sure of theproper ettiquite. > Please correct me ifI do somethingstupid :) I've >been email with Raymond Irving aboutsomeidea's that I >had, and he encouraged me to post ithere and see >whatpeople think. I wrote a Javaversion of the >JavaScriptcompressor that comes withDynAPI. Along >with everything that the DynAPIonedoes, it reads in a >config file that says "compressthese files, thenmerge >them into this one file". Thisenables me to keep a >good amount ofJS files when I'mcoding, but then when I >"build" to apache, Icompressthem all into 1 file, so >the browser doesn't have tohit the servermultiple >times to get the files.Then, I took it a step farther, >and added what Ihad toin order to be able to compress >the DynAPI files I wasusing,and it worked! I was able >to get all my files,plus the DynAPI files Iwas using >and compress / mergethem all into 1 file. It sped >things up onmy serverdramatically. The changes were >all just addingsemi-colonswhere they were needed, >except for onecase: The mouse_ie.js, >dyndocument.jsandmouse_dom.js files all have a method >called "main"and that doesn't seem to workvery well >when they'reall combined into the same file. To fix >it,I renamedthem, which names like main_mouse_ie, etc, >and fixedallthe other references to them. Seems to >work fine,but I haven't testedextensively all the >examples andsuch.I'd like to check in my changes, as >well as sendinmy Java compressor, since Raymond said >he'd like topost it on the site. I'd also like to make >a Swingfront end for the java app to make it alittle >easierto use.What do you guys and gals think of this >idea?Should I check in the changes? What's the >rightprocess for checking inchanges? >Jesse-------------------------------------------------------This >SF.net email is sponsored by: Etnus, >makersofTotalView, The bestthread debugger on the >planet.Designed with threaddebugging featuresyou've >neverdreamed of, try TotalView 6 >freeatwww.etnus.com._______________________________________________Dynapi-Devmailing >lis...@li...http://www.mail-archive.com/dyn...@li.../__________________________________Doyou >Yahoo!?Yahoo! Calendar - Free online calendar withsync >toOutlook(TM).http://calendar.yahoo.com-------------------------------------------------------ThisSF.net >email is sponsored by: Etnus, makers ofTotalView, The >bestthread debugger on the planet.Designed with thread >debugging featuresyou've neverdreamed of, try >TotalView 6 free >atwww.etnus.com._________________...@li...http://www.mail-archive.com/dyn...@li.../__________________________________Do >you Yahoo!?Yahoo! Calendar - Free online calendar with >sync to >Outlook(TM).http://calendar.yahoo.com-------------------------------------------------------This >SF.net email is sponsored by: Etnus, makers of >TotalView, The bestthread debugger on the planet. >Designed with thread debugging featuresyou've never >dreamed of, try TotalView 6 free at >www.etnus.com._______________________________________________Dynapi-Dev >mailing >lis...@li...http://www.mail-archive.com/dyn...@li.../-------------------------------------------------------This >SF.net email is sponsored by: Etnus, makers of >TotalView, The bestthread debugger on the planet. >Designed with thread debugging featuresyou've never >dreamed of, try TotalView 6 free at >www.etnus.com._______________________________________________Dynapi-Dev >mailing >lis...@li...http://www.mail-archive.com/dyn...@li.../ > > >-------------------------------------------------------This >SF.net email is sponsored by: Etnus, makers of >TotalView, The bestthread debugger on the planet. >Designed with thread debugging featuresyou've never >dreamed of, try TotalView 6 free at >www.etnus.com._______________________________________________Dynapi-Dev >mailing >lis...@li...http://www.mail-archive.com/dyn...@li.../ > > > > >__________________________________ >Do you Yahoo!? >Yahoo! Calendar - Free online calendar with sync to Outlook(TM). >http://calendar.yahoo.com > > >------------------------------------------------------- >This SF.net email is sponsored by: Etnus, makers of TotalView, The best >thread debugger on the planet. Designed with thread debugging features >you've never dreamed of, try TotalView 6 free at www.etnus.com. >_______________________________________________ >Dynapi-Dev mailing list >Dyn...@li... >http://www.mail-archive.com/dyn...@li.../ > > |
From: Raymond I. <xw...@ya...> - 2003-06-10 15:42:07
|
One of the problem I've seen with solution you mentioned earlier is that it will even include files opera,ns4, etc if you're using IE. I don't think two files should be a big problem. We're coming down from aleast 5-10 individual files. -- Raymond Irving --- Jesse Vitrone <je...@6t...> wrote: > Interesting idea, but I'm trying to keep the > <script> tags in the > browser to a minumum. I finished off the code the > way I suggested this > morning and it seems to work well, so I'll probably > just stick with it > that way. This way also allows me to just include > "myfile.js" in my > page and get everything I need. > > Jesse > > Raymond Irving wrote: > > >Well how about generating only browser specific > merge > >modules? > > > >dynapi.js > >merge.ie.js > >merge.dom.js > >merge.opera.js > >merge.ns4.js > > > >in the browser we could then do the following: > > > ><script src="../src/dynapi.js"></script> > ><script> > >if(dynapi.ua.ie) { > > dynapi.setPath('../src/','merge.ie.js'); > >}else if(dynapi.ua.opera) { > > dynapi.setPath('../src/','merge.opera.js'); > >}else if(dynapi.ua.ns4) { > > dynapi.setPath('../src/','merge.ns4.js'); > >}else if(dynapi.ua.supported) { > > dynapi.setPath('../src/','merge.dom.js'); > >}else{ > > alert('Browser not supported'); > >} > ></script> > > > >The dynapi.js file would be compressed and stored > as > >dynapi.js. The other browser specific (and > >non-specific) libraries could then be merged into a > >single file. Only two files will be needed > (dynapi.js > >and merge.{whatever}.js) > > > >The setPath() function will support a second > argument > >called pkgfile (Package file). This will be used to > >allow users to load in an alternative package.js > file > > > >-- > >Raymond Irving > > > > > >--- Jesse Vitrone <je...@6t...> > wrote: > > > >--------------------------------- > > Thanks for the suggestions Kevin and Raymond, > > > > It looks like I can make my xml something like > >this: > > > > <input-group> > > > ><input-filename="D:/development/6thgear/dynapi/src/api/mouse_ie.js"compare-value="dynapi.ua.ie" > >/> > > > ><input-filename="D:/development/6thgear/dynapi/src/api/mouse_dom.js"/> > > </input-group> > > > >and have my code generate the js: > > > > if (dynapi.ua.ie) { > > // mouse_ie.js compressed code goes here > > } > > else { > > // mouse_dom.js compressed code goes here > > } > > > >I'll take the first of the group, and make the if. > >Everything up to the last will be an else if > >And the last, makes the else. > > > >All input-files inside an input-group need a > >compare-value, except forthe last one. > > > >This looks like it should work. When I hand code > my > >compressed file tolook like the above, it works. > It's > >more code then would normally beneeded, since both > >files are going to get included, but I can't > thinkof > >any other way around this problem. Plus, only the > one > >needed willhave to get parsed, so it shouldn't be > too > >bad. > > > >What do you think? Do you see any problems that I > >might run intotrying to do it this way/ > > > >Also, since I have to redo the way the xml is > parsed, > >I'm going to usethe built in xml parsing that java > has > >and lose that dom4j.jardependency. Not as pretty, > but > >it gets the job done. > > > >Thanks for the help. > > > >Jesse > > > > > >Kevin wrote: > > > >Sorry, didn't send to the list!----- Original > Message > >----- From: "Kevin" <ke...@ke...>To: > >"Jesse Vitrone" <je...@6t...>Sent: > >Tuesday, June 10, 2003 4:22 AMSubject: Re: > >[Dynapi-Dev] compressing files > > > >I mean the packages.js file can help with the > >dependency logic for your xml config file.Though I > >don't know how to get around the (dom/opera/ns4/ie > >layer)*(mouse) file split.The other inline > compressor > >method would work here - though server load impact > >andno cache of the transient stream :( what! I wish > I > >could explain better ).As for this method once a > >developer has a custom pre-processed and compressed > >fileset published on the server there is no need > for > >the library. Difficult to choose. ThoughI like one > >bundle per (virtual) server with little > >load.-Kevin----- Original Message ----- From: Jesse > >VitroneTo: KevinCc: Dynapi-DevSent: Sunday, June > 08, > >2003 7:19 PMSubject: Re: [Dynapi-Dev] compressing > >filesKevin, I'm not sure what you mean about > remove > >the existing library system from the api. With the > > > > > > >xml > > > >config that I you can customize, you just pick and > >choose what JS files you want it to compress > > > >and > > > >merge. So, I have the basic DynAPI ones, plus the > >others that I use, plus my own. It lookssomething > >like this:<jscompressor> <compressed-file > >name="D:/development/6thgear/js/6thgear_compressed.js"> > > <input-file > >name="D:/development/6thgear/dynapi/src/dynapi.js"/> > > > <input-file > >name="D:/development/6thgear/dynapi/src/api/event.js"/> > > <input-file > >name="D:/development/6thgear/dynapi/src/api/dyndocument.js"/> > > <input-file > >name="D:/development/6thgear/dynapi/src/api/dynlayer_base.js"/> > > <input-file > >name="D:/development/6thgear/dynapi/src/api/dynlayer_dom.js"/> > > <input-file > >name="D:/development/6thgear/dynapi/src/api/mouse_dom.js"/> > > <input-file > >name="D:/development/6thgear/dynapi/src/api/ext/dynlayer.inline.js"/> > > <input-file > >name="D:/development/6thgear/js/6thgear.js"/> > > ><input-file > >name="D:/development/6thgear/js/gearWindow.js"/> > > > <input-file > >name="D:/development/6thgear/js/templates.js"/> > ></compressed-file> <compressed-file > >name="D:/development/6thgear/js/6thgear_edit_compressed.js"> > > <input-file > >name="D:/development/6thgear/dynapi/src/api/ext/dragevent.js"/> > > <input-file > >name="D:/development/6thgear/js/6thgear_edit.js"/> > > > <input-file > >name="D:/development/6thgear/js/gearWindow_edit.js"/> > > > <input-file > >name="D:/development/6thgear/js/templates_edit.js"/> > > === message truncated === __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com |
From: Jesse V. <je...@6t...> - 2003-06-10 15:52:22
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"> <title></title> </head> <body text="#000000" bgcolor="#ffffff"> I see your point. <br> <br> With the way the compressor is now, the user can choose which way they want to do it. If they want it all in one file, they set up the xml that way. If they want to have a merge-ie.js, etc, they can set it up that way too.<br> <br> Jesse<br> <br> Raymond Irving wrote:<br> <blockquote type="cite" cite="mid...@we..."> <pre wrap="">One of the problem I've seen with solution you mentioned earlier is that it will even include files opera,ns4, etc if you're using IE. I don't think two files should be a big problem. We're coming down from aleast 5-10 individual files. -- Raymond Irving --- Jesse Vitrone <a class="moz-txt-link-rfc2396E" href="mailto:je...@6t..."><je...@6t...></a> wrote: </pre> <blockquote type="cite"> <pre wrap="">Interesting idea, but I'm trying to keep the <script> tags in the browser to a minumum. I finished off the code the way I suggested this morning and it seems to work well, so I'll probably just stick with it that way. This way also allows me to just include "myfile.js" in my page and get everything I need. Jesse Raymond Irving wrote: </pre> <blockquote type="cite"> <pre wrap="">Well how about generating only browser specific </pre> </blockquote> <pre wrap="">merge </pre> <blockquote type="cite"> <pre wrap="">modules? dynapi.js merge.ie.js merge.dom.js merge.opera.js merge.ns4.js in the browser we could then do the following: <script src="../src/dynapi.js"></script> <script> if(dynapi.ua.ie) { dynapi.setPath('../src/','merge.ie.js'); }else if(dynapi.ua.opera) { dynapi.setPath('../src/','merge.opera.js'); }else if(dynapi.ua.ns4) { dynapi.setPath('../src/','merge.ns4.js'); }else if(dynapi.ua.supported) { dynapi.setPath('../src/','merge.dom.js'); }else{ alert('Browser not supported'); } </script> The dynapi.js file would be compressed and stored </pre> </blockquote> <pre wrap="">as </pre> <blockquote type="cite"> <pre wrap="">dynapi.js. The other browser specific (and non-specific) libraries could then be merged into a single file. Only two files will be needed </pre> </blockquote> <pre wrap="">(dynapi.js </pre> <blockquote type="cite"> <pre wrap="">and merge.{whatever}.js) The setPath() function will support a second </pre> </blockquote> <pre wrap="">argument </pre> <blockquote type="cite"> <pre wrap="">called pkgfile (Package file). This will be used to allow users to load in an alternative package.js </pre> </blockquote> <pre wrap="">file </pre> <blockquote type="cite"> <pre wrap="">-- Raymond Irving --- Jesse Vitrone <a class="moz-txt-link-rfc2396E" href="mailto:je...@6t..."><je...@6t...></a> </pre> </blockquote> <pre wrap="">wrote: </pre> <blockquote type="cite"> <pre wrap="">--------------------------------- Thanks for the suggestions Kevin and Raymond, It looks like I can make my xml something like this: <input-group> </pre> </blockquote> <pre wrap=""><input-filename="D:/development/6thgear/dynapi/src/api/mouse_ie.js"compare-value="dynapi.ua.ie" </pre> <blockquote type="cite"> <pre wrap="">/> </pre> </blockquote> <pre wrap=""><input-filename="D:/development/6thgear/dynapi/src/api/mouse_dom.js"/> </pre> <blockquote type="cite"> <pre wrap=""> </input-group> and have my code generate the js: if (dynapi.ua.ie) { // mouse_ie.js compressed code goes here } else { // mouse_dom.js compressed code goes here } I'll take the first of the group, and make the if. Everything up to the last will be an else if And the last, makes the else. All input-files inside an input-group need a compare-value, except forthe last one. This looks like it should work. When I hand code </pre> </blockquote> <pre wrap="">my </pre> <blockquote type="cite"> <pre wrap="">compressed file tolook like the above, it works. </pre> </blockquote> <pre wrap="">It's </pre> <blockquote type="cite"> <pre wrap="">more code then would normally beneeded, since both files are going to get included, but I can't </pre> </blockquote> <pre wrap="">thinkof </pre> <blockquote type="cite"> <pre wrap="">any other way around this problem. Plus, only the </pre> </blockquote> <pre wrap="">one </pre> <blockquote type="cite"> <pre wrap="">needed willhave to get parsed, so it shouldn't be </pre> </blockquote> <pre wrap="">too </pre> <blockquote type="cite"> <pre wrap="">bad. What do you think? Do you see any problems that I might run intotrying to do it this way/ Also, since I have to redo the way the xml is </pre> </blockquote> <pre wrap="">parsed, </pre> <blockquote type="cite"> <pre wrap="">I'm going to usethe built in xml parsing that java </pre> </blockquote> <pre wrap="">has </pre> <blockquote type="cite"> <pre wrap="">and lose that dom4j.jardependency. Not as pretty, </pre> </blockquote> <pre wrap="">but </pre> <blockquote type="cite"> <pre wrap="">it gets the job done. Thanks for the help. Jesse Kevin wrote: Sorry, didn't send to the list!----- Original </pre> </blockquote> <pre wrap="">Message </pre> <blockquote type="cite"> <pre wrap="">----- From: "Kevin" <a class="moz-txt-link-rfc2396E" href="mailto:ke...@ke..."><ke...@ke...></a>To: "Jesse Vitrone" <a class="moz-txt-link-rfc2396E" href="mailto:je...@6t..."><je...@6t...></a>Sent: Tuesday, June 10, 2003 4:22 AMSubject: Re: [Dynapi-Dev] compressing files I mean the packages.js file can help with the dependency logic for your xml config file.Though I don't know how to get around the (dom/opera/ns4/ie layer)*(mouse) file split.The other inline </pre> </blockquote> <pre wrap="">compressor </pre> <blockquote type="cite"> <pre wrap="">method would work here - though server load impact andno cache of the transient stream :( what! I wish </pre> </blockquote> <pre wrap="">I </pre> <blockquote type="cite"> <pre wrap="">could explain better ).As for this method once a developer has a custom pre-processed and compressed fileset published on the server there is no need </pre> </blockquote> <pre wrap="">for </pre> <blockquote type="cite"> <pre wrap="">the library. Difficult to choose. ThoughI like one bundle per (virtual) server with little load.-Kevin----- Original Message ----- From: Jesse VitroneTo: KevinCc: Dynapi-DevSent: Sunday, June </pre> </blockquote> <pre wrap="">08, </pre> <blockquote type="cite"> <pre wrap="">2003 7:19 PMSubject: Re: [Dynapi-Dev] compressing filesKevin, I'm not sure what you mean about </pre> </blockquote> <pre wrap="">remove </pre> <blockquote type="cite"> <pre wrap="">the existing library system from the api. With the </pre> </blockquote> <pre wrap=""> </pre> <blockquote type="cite"> <pre wrap=""> xml config that I you can customize, you just pick and choose what JS files you want it to compress and merge. So, I have the basic DynAPI ones, plus the others that I use, plus my own. It lookssomething like this:<jscompressor> <compressed-file </pre> </blockquote> <pre wrap="">name="D:/development/6thgear/js/6thgear_compressed.js"> </pre> <blockquote type="cite"> <pre wrap=""> <input-file </pre> </blockquote> <pre wrap="">name="D:/development/6thgear/dynapi/src/dynapi.js"/> </pre> <blockquote type="cite"> <pre wrap=""> <input-file </pre> </blockquote> <pre wrap="">name="D:/development/6thgear/dynapi/src/api/event.js"/> </pre> <blockquote type="cite"> <pre wrap=""> <input-file </pre> </blockquote> <pre wrap="">name="D:/development/6thgear/dynapi/src/api/dyndocument.js"/> </pre> <blockquote type="cite"> <pre wrap=""> <input-file </pre> </blockquote> <pre wrap="">name="D:/development/6thgear/dynapi/src/api/dynlayer_base.js"/> </pre> <blockquote type="cite"> <pre wrap=""> <input-file </pre> </blockquote> <pre wrap="">name="D:/development/6thgear/dynapi/src/api/dynlayer_dom.js"/> </pre> <blockquote type="cite"> <pre wrap=""> <input-file </pre> </blockquote> <pre wrap="">name="D:/development/6thgear/dynapi/src/api/mouse_dom.js"/> </pre> <blockquote type="cite"> <pre wrap=""> <input-file </pre> </blockquote> <pre wrap="">name="D:/development/6thgear/dynapi/src/api/ext/dynlayer.inline.js"/> </pre> <blockquote type="cite"> <pre wrap=""> <input-file name="D:/development/6thgear/js/6thgear.js"/> </pre> </blockquote> <blockquote type="cite"> <pre wrap=""><input-file name="D:/development/6thgear/js/gearWindow.js"/> </pre> </blockquote> <pre wrap=""> </pre> <blockquote type="cite"> <pre wrap=""><input-file name="D:/development/6thgear/js/templates.js"/> </compressed-file> <compressed-file </pre> </blockquote> <pre wrap="">name="D:/development/6thgear/js/6thgear_edit_compressed.js"> </pre> <blockquote type="cite"> <pre wrap=""> <input-file </pre> </blockquote> <pre wrap="">name="D:/development/6thgear/dynapi/src/api/ext/dragevent.js"/> </pre> <blockquote type="cite"> <pre wrap=""> <input-file name="D:/development/6thgear/js/6thgear_edit.js"/> </pre> </blockquote> <pre wrap=""> </pre> <blockquote type="cite"> <pre wrap=""> <input-file </pre> </blockquote> <pre wrap="">name="D:/development/6thgear/js/gearWindow_edit.js"/> </pre> <blockquote type="cite"> <pre wrap=""> <input-file </pre> </blockquote> <pre wrap="">name="D:/development/6thgear/js/templates_edit.js"/> </pre> </blockquote> <pre wrap=""><!---->=== message truncated === __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). <a class="moz-txt-link-freetext" href="http://calendar.yahoo.com">http://calendar.yahoo.com</a> ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at <a class="moz-txt-link-abbreviated" href="http://www.etnus.com">www.etnus.com</a>. _______________________________________________ Dynapi-Dev mailing list <a class="moz-txt-link-abbreviated" href="mailto:Dyn...@li...">Dyn...@li...</a> <a class="moz-txt-link-freetext" href="http://www.mail-archive.com/dyn...@li.../">http://www.mail-archive.com/dyn...@li.../</a> </pre> </blockquote> </body> </html> |
From: Raymond I. <xw...@ya...> - 2003-06-10 15:58:20
|
Very good! I like to have the option of using either two or one file. PS. As for the sub-folders inside the bin/ directory I've came up with the following suggestion: bin/java.compressor - java version bin/jscript.compressor - html version bin/realtime.compressor - server-side version ? -- Raymond Irving --- Jesse Vitrone <je...@6t...> wrote: --------------------------------- I see your point. With the way the compressor is now, the user can choose which way theywant to do it. If they want it all in one file, they set up the xmlthat way. If they want to have a merge-ie.js, etc, they can set it upthat way too. Jesse Raymond Irving wrote: One of the problem I've seen with solution youmentioned earlier is that it will even include filesopera,ns4, etc if you're using IE.I don't think two files should be a big problem. We'recoming down from aleast 5-10 individual files.--Raymond Irving--- Jesse Vitrone <je...@6t...> wrote: Interesting idea, but I'm trying to keep the<script> tags in the browser to a minumum. I finished off the code theway I suggested this morning and it seems to work well, so I'll probablyjust stick with it that way. This way also allows me to just include"myfile.js" in my page and get everything I need.JesseRaymond Irving wrote: Well how about generating only browser specific merge modules?dynapi.jsmerge.ie.jsmerge.dom.jsmerge.opera.jsmerge.ns4.jsin the browser we could then do the following:<script src="../src/dynapi.js"></script><script>if(dynapi.ua.ie) { dynapi.setPath('../src/','merge.ie.js');}else if(dynapi.ua.opera) { dynapi.setPath('../src/','merge.opera.js');}else if(dynapi.ua.ns4) { dynapi.setPath('../src/','merge.ns4.js');}else if(dynapi.ua.supported) { dynapi.setPath('../src/','merge.dom.js');}else{ alert('Browser not supported');}</script>The dynapi.js file would be compressed and stored as dynapi.js. The other browser specific (andnon-specific) libraries could then be merged into asingle file. Only two files will be needed (dynapi.js and merge.{whatever}.js) The setPath() function will support a second argument called pkgfile (Package file). This will be used toallow users to load in an alternative package.js file --Raymond Irving--- Jesse Vitrone <je...@6t...> wrote: --------------------------------- Thanks for the suggestions Kevin and Raymond, It looks like I can make my xml something likethis: <input-group> <input-filename="D:/development/6thgear/dynapi/src/api/mouse_ie.js"compare-value="dynapi.ua.ie" /> <input-filename="D:/development/6thgear/dynapi/src/api/mouse_dom.js"/> </input-group>and have my code generate the js: if (dynapi.ua.ie) { // mouse_ie.js compressed code goes here } else { // mouse_dom.js compressed code goes here }I'll take the first of the group, and make the if.Everything up to the last will be an else ifAnd the last, makes the else.All input-files inside an input-group need acompare-value, except forthe last one.This looks like it should work. When I hand code my compressed file tolook like the above, it works. It's more code then would normally beneeded, since bothfiles are going to get included, but I can't thinkof any other way around this problem. Plus, only the one needed willhave to get parsed, so it shouldn't be too bad.What do you think? Do you see any problems that Imight run intotrying to do it this way/Also, since I have to redo the way the xml is parsed, I'm going to usethe built in xml parsing that java has and lose that dom4j.jardependency. Not as pretty, but it gets the job done.Thanks for the help.JesseKevin wrote: Sorry, didn't send to the list!----- Original Message ----- From: "Kevin" <ke...@ke...>To:"Jesse Vitrone" <je...@6t...>Sent:Tuesday, June 10, 2003 4:22 AMSubject: Re:[Dynapi-Dev] compressing files I mean the packages.js file can help with thedependency logic for your xml config file.Though Idon't know how to get around the (dom/opera/ns4/ielayer)*(mouse) file split.The other inline compressor method would work here - though server load impactandno cache of the transient stream :( what! I wish I could explain better ).As for this method once adeveloper has a custom pre-processed and compressedfileset published on the server there is no need for the library. Difficult to choose. ThoughI like onebundle per (virtual) server with littleload.-Kevin----- Original Message ----- From: JesseVitroneTo: KevinCc: Dynapi-DevSent: Sunday, June 08, 2003 7:19 PMSubject: Re: [Dynapi-Dev] compressingfilesKevin, I'm not sure what you mean about remove the existing library system from the api. With the xml config that I you can customize, you just pick andchoose what JS files you want it to compress and merge. So, I have the basic DynAPI ones, plus theothers that I use, plus my own. It lookssomethinglike this:<jscompressor> <compressed-file name="D:/development/6thgear/js/6thgear_compressed.js"> <input-file name="D:/development/6thgear/dynapi/src/dynapi.js"/> <input-file name="D:/development/6thgear/dynapi/src/api/event.js"/> <input-file name="D:/development/6thgear/dynapi/src/api/dyndocument.js"/> <input-file name="D:/development/6thgear/dynapi/src/api/dynlayer_base.js"/> <input-file name="D:/development/6thgear/dynapi/src/api/dynlayer_dom.js"/> <input-file name="D:/development/6thgear/dynapi/src/api/mouse_dom.js"/> <input-file name="D:/development/6thgear/dynapi/src/api/ext/dynlayer.inline.js"/> <input-file name="D:/development/6thgear/js/6thgear.js"/> <input-file name="D:/development/6thgear/js/gearWindow.js"/> <input-file name="D:/development/6thgear/js/templates.js"/> </compressed-file> <compressed-file name="D:/development/6thgear/js/6thgear_edit_compressed.js"> <input-file name="D:/development/6thgear/dynapi/src/api/ext/dragevent.js"/> <input-file name="D:/development/6thgear/js/6thgear_edit.js"/> <input-file name="D:/development/6thgear/js/gearWindow_edit.js"/> <input-file name="D:/development/6thgear/js/templates_edit.js"/> === message truncated ===__________________________________Do you Yahoo!?Yahoo! Calendar - Free online calendar with sync to Outlook(TM).http://calendar.yahoo.com-------------------------------------------------------This SF.net email is sponsored by: Etnus, makers of TotalView, The bestthread debugger on the planet. Designed with thread debugging featuresyou've never dreamed of, try TotalView 6 free at www.etnus.com._______________________________________________Dynapi-Dev mailing lis...@li...http://www.mail-archive.com/dyn...@li.../ __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com |
From: Jesse V. <je...@6t...> - 2003-06-10 17:12:02
|
That folder structure sounds good to me. Jesse Raymond Irving wrote: >Very good! I like to have the option of using either >two or one file. > >PS. As for the sub-folders inside the bin/ directory >I've came up with the following suggestion: > >bin/java.compressor - java version >bin/jscript.compressor - html version >bin/realtime.compressor - server-side version > >? > >-- >Raymond Irving > > >--- Jesse Vitrone <je...@6t...> wrote: > >--------------------------------- > I see your point. > >With the way the compressor is now, the user can >choose which way theywant to do it. If they want it >all in one file, they set up the xmlthat way. If they >want to have a merge-ie.js, etc, they can set it >upthat way too. > >Jesse > >Raymond Irving wrote: > >One of the problem I've seen with solution >youmentioned earlier is that it will even include >filesopera,ns4, etc if you're using IE.I don't think >two files should be a big problem. We'recoming down >from aleast 5-10 individual files.--Raymond Irving--- >Jesse Vitrone <je...@6t...> wrote: > >Interesting idea, but I'm trying to keep the<script> >tags in the browser to a minumum. I finished off the >code theway I suggested this morning and it seems to >work well, so I'll probablyjust stick with it that >way. This way also allows me to just >include"myfile.js" in my page and get everything I >need.JesseRaymond Irving wrote: > >Well how about generating only browser specific > >merge > >modules?dynapi.jsmerge.ie.jsmerge.dom.jsmerge.opera.jsmerge.ns4.jsin >the browser we could then do the following:<script >src="../src/dynapi.js"></script><script>if(dynapi.ua.ie) >{ dynapi.setPath('../src/','merge.ie.js');}else >if(dynapi.ua.opera) { >dynapi.setPath('../src/','merge.opera.js');}else >if(dynapi.ua.ns4) { >dynapi.setPath('../src/','merge.ns4.js');}else >if(dynapi.ua.supported) { >dynapi.setPath('../src/','merge.dom.js');}else{ >alert('Browser not supported');}</script>The dynapi.js >file would be compressed and stored > >as > >dynapi.js. The other browser specific >(andnon-specific) libraries could then be merged into >asingle file. Only two files will be needed > >(dynapi.js > >and merge.{whatever}.js) The setPath() function will >support a second > >argument > >called pkgfile (Package file). This will be used >toallow users to load in an alternative package.js > > >file > >--Raymond Irving--- Jesse Vitrone ><je...@6t...> > >wrote: > >--------------------------------- Thanks for the >suggestions Kevin and Raymond, It looks like I can >make my xml something likethis: <input-group> > > ><input-filename="D:/development/6thgear/dynapi/src/api/mouse_ie.js"compare-value="dynapi.ua.ie" > > >/> > ><input-filename="D:/development/6thgear/dynapi/src/api/mouse_dom.js"/> > > > </input-group>and have my code generate the js: > if (dynapi.ua.ie) { // mouse_ie.js compressed >code goes here } else { // mouse_dom.js >compressed code goes here }I'll take the first of >the group, and make the if.Everything up to the last >will be an else ifAnd the last, makes the else.All >input-files inside an input-group need acompare-value, >except forthe last one.This looks like it should work. > When I hand code > >my > >compressed file tolook like the above, it works. > > >It's > >more code then would normally beneeded, since >bothfiles are going to get included, but I can't > >thinkof > >any other way around this problem. Plus, only the > > >one > >needed willhave to get parsed, so it shouldn't be > > >too > >bad.What do you think? Do you see any problems that >Imight run intotrying to do it this way/Also, since I >have to redo the way the xml is > >parsed, > >I'm going to usethe built in xml parsing that java > > >has > >and lose that dom4j.jardependency. Not as pretty, > > >but > >it gets the job done.Thanks for the help.JesseKevin >wrote: Sorry, didn't send to the list!----- Original > > >Message > >----- From: "Kevin" <ke...@ke...>To:"Jesse >Vitrone" <je...@6t...>Sent:Tuesday, June >10, 2003 4:22 AMSubject: Re:[Dynapi-Dev] compressing >files I mean the packages.js file can help with >thedependency logic for your xml config file.Though >Idon't know how to get around the >(dom/opera/ns4/ielayer)*(mouse) file split.The other >inline > >compressor > >method would work here - though server load >impactandno cache of the transient stream :( what! I >wish > >I > >could explain better ).As for this method once >adeveloper has a custom pre-processed and >compressedfileset published on the server there is no >need > >for > >the library. Difficult to choose. ThoughI like >onebundle per (virtual) server with >littleload.-Kevin----- Original Message ----- From: >JesseVitroneTo: KevinCc: Dynapi-DevSent: Sunday, June > > >08, > >2003 7:19 PMSubject: Re: [Dynapi-Dev] >compressingfilesKevin, I'm not sure what you mean >about > >remove > >the existing library system from the api. With the > > > > > xml config that I you can customize, you just >pick andchoose what JS files you want it to compress > and merge. So, I have the basic DynAPI >ones, plus theothers that I use, plus my own. It >lookssomethinglike this:<jscompressor> ><compressed-file > >name="D:/development/6thgear/js/6thgear_compressed.js"> > > > <input-file > >name="D:/development/6thgear/dynapi/src/dynapi.js"/> > > > <input-file > >name="D:/development/6thgear/dynapi/src/api/event.js"/> > > > <input-file > >name="D:/development/6thgear/dynapi/src/api/dyndocument.js"/> > > > <input-file > >name="D:/development/6thgear/dynapi/src/api/dynlayer_base.js"/> > > > <input-file > >name="D:/development/6thgear/dynapi/src/api/dynlayer_dom.js"/> > > > <input-file > >name="D:/development/6thgear/dynapi/src/api/mouse_dom.js"/> > > > <input-file > >name="D:/development/6thgear/dynapi/src/api/ext/dynlayer.inline.js"/> > > > <input-file >name="D:/development/6thgear/js/6thgear.js"/> > > ><input-file >name="D:/development/6thgear/js/gearWindow.js"/> > > > > ><input-file >name="D:/development/6thgear/js/templates.js"/> ></compressed-file> <compressed-file > >name="D:/development/6thgear/js/6thgear_edit_compressed.js"> > > > <input-file > >name="D:/development/6thgear/dynapi/src/api/ext/dragevent.js"/> > > > <input-file >name="D:/development/6thgear/js/6thgear_edit.js"/> > > > > > <input-file > >name="D:/development/6thgear/js/gearWindow_edit.js"/> > > > <input-file > >name="D:/development/6thgear/js/templates_edit.js"/> > > >=== message truncated >===__________________________________Do you >Yahoo!?Yahoo! Calendar - Free online calendar with >sync to >Outlook(TM).http://calendar.yahoo.com-------------------------------------------------------This >SF.net email is sponsored by: Etnus, makers of >TotalView, The bestthread debugger on the planet. >Designed with thread debugging featuresyou've never >dreamed of, try TotalView 6 free at >www.etnus.com._______________________________________________Dynapi-Dev >mailing >lis...@li...http://www.mail-archive.com/dyn...@li.../ > > > > >__________________________________ >Do you Yahoo!? >Yahoo! Calendar - Free online calendar with sync to Outlook(TM). >http://calendar.yahoo.com > > >------------------------------------------------------- >This SF.net email is sponsored by: Etnus, makers of TotalView, The best >thread debugger on the planet. Designed with thread debugging features >you've never dreamed of, try TotalView 6 free at www.etnus.com. >_______________________________________________ >Dynapi-Dev mailing list >Dyn...@li... >http://www.mail-archive.com/dyn...@li.../ > > |
From: Raymond I. <xw...@ya...> - 2003-06-10 15:52:04
|
--- Kevin <ke...@ke...> wrote: > ... As for this method once a developer has a custom > pre-processed and compressed file > > set published on the server there is no need for > the library. What do you mean? Remember that the compressed or uncompressed files are called "DynAPI" and still falls under the LGPL. PS. Customized js files that uses the library does not fall under the LGPL. This makes it possible for DynAPI to be used in commercial apps, but any modifications to the library should be made public and should fall under the LGPL. Correct? -- Raymond Irving > Difficult to choose. Though > > I like one bundle per (virtual) server with little > load. > > > > - > > Kevin > > > > ----- Original Message ----- > > From: Jesse Vitrone > > To: Kevin > > Cc: Dynapi-Dev > > Sent: Sunday, June 08, 2003 7:19 PM > > Subject: Re: [Dynapi-Dev] compressing files > > > > > > Kevin, > > I'm not sure what you mean about remove the > existing library system from the api. With the > xml > > config that I you can customize, you just pick and > choose what JS files you want it to compress > and > > merge. So, I have the basic DynAPI ones, plus the > others that I use, plus my own. It looks > > something like this: > > > > <jscompressor> > > <compressed-file > name="D:/development/6thgear/js/6thgear_compressed.js"> > > <input-file > name="D:/development/6thgear/dynapi/src/dynapi.js"/> > > <input-file > name="D:/development/6thgear/dynapi/src/api/event.js"/> > > <input-file > name="D:/development/6thgear/dynapi/src/api/dyndocument.js"/> > > <input-file > name="D:/development/6thgear/dynapi/src/api/dynlayer_base.js"/> > > <input-file > name="D:/development/6thgear/dynapi/src/api/dynlayer_dom.js"/> > > <input-file > name="D:/development/6thgear/dynapi/src/api/mouse_dom.js"/> > > <input-file > name="D:/development/6thgear/dynapi/src/api/ext/dynlayer.inline.js"/> > > <input-file > name="D:/development/6thgear/js/6thgear.js"/> > > <input-file > name="D:/development/6thgear/js/gearWindow.js"/> > > <input-file > name="D:/development/6thgear/js/templates.js"/> > > </compressed-file> > > > > <compressed-file > name="D:/development/6thgear/js/6thgear_edit_compressed.js"> > > <input-file > name="D:/development/6thgear/dynapi/src/api/ext/dragevent.js"/> > > <input-file > name="D:/development/6thgear/js/6thgear_edit.js"/> > > <input-file > name="D:/development/6thgear/js/gearWindow_edit.js"/> > > <input-file > name="D:/development/6thgear/js/templates_edit.js"/> > > </compressed-file> > > > > </jscompressor> > > > > > > This generates 2 files, 6thgear_compress.js and > 6thgear_edit_compressed. Then, my files only need > > to include these, and no other DynAPI files. > > > > Is this what you mean by removing the library > system? Since I don't have to include the > library.js > > or use it in my code? > > > > Jesse > > > > Kevin wrote: > > > > Hi Jesse, > > > > I think two compression methods can live well > together. > > Yours will serve a static compressed bundle with > little > > server load. It would be nice of this method could > > remove the existing library system from the api. > Then > > the compressor would reuse the removed code logic > (to > > work out dependencies) as a front end so the > developer > > can decide what compressed bundle is needed to > serve > > hosted application types. Is this is a standalone > > application requiring an interpreter not an > applet. > > > > - > > Kevin. > > > > "Raymond Irving" <xw...@ya...> wrote: > > > > Hi Jesse, > > > > As Leif said, SourceForge only allow developers to > > uses SSH inorder to write to CVS. > > > > How large is the Java version of the compressor? > > > > Some time ago I made mention of having two > versions of > > the dynapi for download. A developer version and a > > production version. IMO the developer version > would > > include all the external (non-API related) > utilities, > > etc, while the production version would only > include > > the src, docs and examples. Should we make the > > external tools/utilities, etc be part of the > > developer's download or should they be separate > > (something like a Dynapi Developement Kit - DDK)? > > > > PS. All dynapi external utilities, etc should be > > placed in the bin/ folder. In some cases it might > be > > good to arrange them in folders > > > > -- > > Raymond Irving > > > > > > --- Jesse Vitrone <je...@6t...> > wrote: > > > > --------------------------------- > > Raymond, Leif, > > Greg, glad to see you both like the idea. > I'll > > sign up withsourceforge and use the patch system. > > I grabbed the code from CVS when I first > started > > making thechanges, but I tried to do an update > today, > > and there were lots onconflitcts that CVS didn't > seem > > to merge very well. So I grabbed aclean copy of > the > > code again, and I'll go through and make the > > changesagain. Didn't take too long the first > time. > > I have WinCVS, but I've been using Tortoise > CVS. > > What do I needPutty for? > > > > I found a bug today in my Java compression > tool, > > and I'd like toget that fixed before I sent it > out. I > > also wanted to add a feature inthe XML where you > can > > specify a comment that will be put at the top > ofthe > > merged file, since it rips out all comments, and a > lot > > of peoplewant something in the file for licensing > and > > stuff like that. Once Iget that stuff in, I'll > let > > you know and send you a copy. > > > > > > Jesse > > > > Raymond Irving wrote: > > > > Very cool indeed Jesse, very cool. Well done.IMO > the > === message truncated === __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com |
From: Kevin <ke...@ke...> - 2003-06-10 18:47:38
|
"Raymond Irving" <xw...@ya...> wrote: > --- Kevin <ke...@ke...> wrote: > > ... As for this method once a developer has a custom > > pre-processed and compressed file > > > set published on the server there is no need for > > the library. > > What do you mean? Remember that the compressed or > uncompressed files are called "DynAPI" and still falls > under the LGPL. I was talking about packages.js and the library mechanism not LGPL. These could be removed if a one compressed file was used. As for custom I mean that the compressed file may just contain say the api / functions.image and border manager for web servers that host photo albums. Or just the api and IOElement etc. for data server sites. - Kevin. > PS. Customized js files that uses the library does not > fall under the LGPL. This makes it possible for DynAPI > to be used in commercial apps, but any modifications > to the library should be made public and should fall > under the LGPL. Correct? > > -- > Raymond Irving > > > > Difficult to choose. Though > > > I like one bundle per (virtual) server with little > > load. > > > > > > - > > > Kevin > > > > > > ----- Original Message ----- > > > From: Jesse Vitrone > > > To: Kevin > > > Cc: Dynapi-Dev > > > Sent: Sunday, June 08, 2003 7:19 PM > > > Subject: Re: [Dynapi-Dev] compressing files > > > > > > > > > Kevin, > > > I'm not sure what you mean about remove the > > existing library system from the api. With the > > xml > > > config that I you can customize, you just pick and > > choose what JS files you want it to compress > > and > > > merge. So, I have the basic DynAPI ones, plus the > > others that I use, plus my own. It looks > > > something like this: > > > > > > <jscompressor> > > > <compressed-file > > > name="D:/development/6thgear/js/6thgear_compressed.js"> > > > <input-file > > name="D:/development/6thgear/dynapi/src/dynapi.js"/> > > > <input-file > > > name="D:/development/6thgear/dynapi/src/api/event.js"/> > > > <input-file > > > name="D:/development/6thgear/dynapi/src/api/dyndocument.js"/> > > > <input-file > > > name="D:/development/6thgear/dynapi/src/api/dynlayer_base.js"/> > > > <input-file > > > name="D:/development/6thgear/dynapi/src/api/dynlayer_dom.js"/> > > > <input-file > > > name="D:/development/6thgear/dynapi/src/api/mouse_dom.js"/> > > > <input-file > > > name="D:/development/6thgear/dynapi/src/api/ext/dynlayer.inline.js"/> > > > <input-file > > name="D:/development/6thgear/js/6thgear.js"/> > > > <input-file > > name="D:/development/6thgear/js/gearWindow.js"/> > > > <input-file > > name="D:/development/6thgear/js/templates.js"/> > > > </compressed-file> > > > > > > <compressed-file > > > name="D:/development/6thgear/js/6thgear_edit_compressed.js"> > > > <input-file > > > name="D:/development/6thgear/dynapi/src/api/ext/dragevent.js"/> > > > <input-file > > name="D:/development/6thgear/js/6thgear_edit.js"/> > > > <input-file > > > name="D:/development/6thgear/js/gearWindow_edit.js"/> > > > <input-file > > name="D:/development/6thgear/js/templates_edit.js"/> > > > </compressed-file> > > > > > > </jscompressor> > > > > > > > > > This generates 2 files, 6thgear_compress.js and > > 6thgear_edit_compressed. Then, my files only need > > > to include these, and no other DynAPI files. > > > > > > Is this what you mean by removing the library > > system? Since I don't have to include the > > library.js > > > or use it in my code? > > > > > > Jesse > > > > > > Kevin wrote: > > > > > > Hi Jesse, > > > > > > I think two compression methods can live well > > together. > > > Yours will serve a static compressed bundle with > > little > > > server load. It would be nice of this method could > > > remove the existing library system from the api. > > Then > > > the compressor would reuse the removed code logic > > (to > > > work out dependencies) as a front end so the > > developer > > > can decide what compressed bundle is needed to > > serve > > > hosted application types. Is this is a standalone > > > application requiring an interpreter not an > > applet. > > > > > > - > > > Kevin. > > > > > > "Raymond Irving" <xw...@ya...> wrote: > > > > > > Hi Jesse, > > > > > > As Leif said, SourceForge only allow developers to > > > uses SSH inorder to write to CVS. > > > > > > How large is the Java version of the compressor? > > > > > > Some time ago I made mention of having two > > versions of > > > the dynapi for download. A developer version and a > > > production version. IMO the developer version > > would > > > include all the external (non-API related) > > utilities, > > > etc, while the production version would only > > include > > > the src, docs and examples. Should we make the > > > external tools/utilities, etc be part of the > > > developer's download or should they be separate > > > (something like a Dynapi Developement Kit - DDK)? > > > > > > PS. All dynapi external utilities, etc should be > > > placed in the bin/ folder. In some cases it might > > be > > > good to arrange them in folders > > > > > > -- > > > Raymond Irving > > > > > > > > > --- Jesse Vitrone <je...@6t...> > > wrote: > > > > > > --------------------------------- > > > Raymond, Leif, > > > Greg, glad to see you both like the idea. > > I'll > > > sign up withsourceforge and use the patch system. > > > I grabbed the code from CVS when I first > > started > > > making thechanges, but I tried to do an update > > today, > > > and there were lots onconflitcts that CVS didn't > > seem > > > to merge very well. So I grabbed aclean copy of > > the > > > code again, and I'll go through and make the > > > changesagain. Didn't take too long the first > > time. > > > I have WinCVS, but I've been using Tortoise > > CVS. > > > What do I needPutty for? > > > > > > I found a bug today in my Java compression > > tool, > > > and I'd like toget that fixed before I sent it > > out. I > > > also wanted to add a feature inthe XML where you > > can > > > specify a comment that will be put at the top > > ofthe > > > merged file, since it rips out all comments, and a > > lot > > > of peoplewant something in the file for licensing > > and > > > stuff like that. Once Iget that stuff in, I'll > > let > > > you know and send you a copy. > > > > > > > > > Jesse > > > > > > Raymond Irving wrote: > > > > > > Very cool indeed Jesse, very cool. Well done.IMO > > the > > > === message truncated === > > > __________________________________ > Do you Yahoo!? > Yahoo! Calendar - Free online calendar with sync to Outlook(TM). > http://calendar.yahoo.com > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The best > thread debugger on the planet. Designed with thread debugging features > you've never dreamed of, try TotalView 6 free at www.etnus.com. > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://www.mail-archive.com/dyn...@li.../ |