Hi Fabian,
No idea how to works your function. Packer seems very efficient.
"make build" on frontend/application/sample generate a file sample.js of
1004kb. 
After using Packer on this file, the size becomes 576kb. The demo is not
broken !
And after using gzip on this "Packed" file, the size becomes 193kb.

frederic


Fabian Jakobs-2 wrote:
> 
> frederic schrieb:
>> Hello,
>> You can obfuscate your JS code with this tool :
>> http://dean.edwards.name/weblog/2006/12/packer-php/
>> A Python version seems working, have you planned to integrate this
>> feature
>> in Qooxdoo ?
>> The original script is under LGPL
>> http://creativecommons.org/licenses/LGPL/2.1/
>>
>> best regards.
>> frederic
>>
>>   
> Hi frederic,
> 
> qooxdoo already has obfuscation and packing functionality. If you take a 
> look at the sample.js in the sample/build folder, which includes all 
> qooxdoo classes, you see that it has a size of about 1MB but the size of 
> all qooxdoo JavaScript files combined are over 2.4 MB. So the 
> compression ratio for the framework is pretty good.
> 
> Further if you look at the code with all optimizations enabled (default 
> for make build) it should already be hard to read.
> 
> Question? Who can tell me how this function works? ;-)
> 
> 
> createNamespace:function($0,$1){var $2=$0.split($[5]);
> var $3=window;
> var $4=$2[0];
> for(var
> $5=0,$6=$2.length-1;$5<$6;$5++,$4=$2[$5]){if(!$3[$4]){$3=$3[$4]={};
> }else{$3=$3[$4];
> }}{};
> $3[$4]=$1;
> return $4;
> }
> 
> 
> I think we don't have a real need to use Dean Edwards packer. Maybe we 
> can look how it works and add some of it's optimizations to our generator.
> 
> Have fun,
> Fabian
> 
> 
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Packer-%3A-a-JavaScript-compressor-obfuscator-tf3248007.html#a9042040
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to