Topic: TrickyScripter (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=27370" title="Pages that link to Topic: TrickyScripter (Page 1 of 1)" rel="nofollow" >Topic: TrickyScripter <span class="small">(Page 1 of 1)</span>\

 
DizzZ
Neurotic (0) Inmate
Newly admitted

From:
Insane since: Jan 2006

posted posted 01-23-2006 11:16

Almost everyone can add scripts to site to make it cool an usable. With AJAX technology we can bring sites to new level of usability.
But...
1) Additional script means additional traffic - sometimes it matters.
AJAX scripts and WYSIWYG editors can be really big (hundreds of kilobytes)
2) Why you have to share your script with all?
You spend time and money to develop script, but now everyone can get it for free from your site.

Yes, there is tons of optimizers, obfuscators, crunchers, compressors and other stuff to make scripts small and incomprehensible.
But all that tools I've seen have some imperfections.
The most widespread and annoying problem is following: not all scripts can run after obfuscating and compression!
Some tools can only delete spaces and tabs (sometimes comments) from source. It is very fast and easy, but effect is not really big.
Some obfuscators and compressors are expensive.

Everybody have a right to make scripts small and to not share his work with everyone.
Me and everyone want to have perfect tool for no money.
With this thoughts I started new project - TrickyScripter.
TrickyScripter supposed to be ultimate tool for web developer. It is next generation script optimizer (it is like Zend Optimizer for JavaScript).
It can be used both online and offline with any JavaScript-enabled browser.
TrickyScripter is free and opensource (avalible at http://ecoder.org.ua/tricky.htm)
In current version TrickyScripter can safely rearrange your code to make it smaller and faster:
- delete unneeded code and markup
- replace local variables names with shorter ones
- replace some long commands with shorter equal ones
- compact variables declarations
Also it can visualize code structure to help you refactor code, solve problems in scripts and understand third party scripts.
It is smart and will not use some techniques when optimizing functions containing "eval()" and other similar commands.
With TrickyScripter you can optimize whole script or only some functions as well.
Usually it can reduce script size by 50% and more. Smaller script can be downloaded and even executed faster (and you can save on your traffic!).
Fast site is better then slow site, isn't it?

Many cool features will be added in next version of TrickyScripter.
Want to try it? Welcome to http://ecoder.org.ua/tricky.htm !
Want to be beta tester and use new features earlier than others? Send request to scriptGuru@gmail.com
Join us!

Val Polyakh
developer, project manager
scriptGuru@gmail.com

Skaarjj
Maniac (V) Mad Scientist

From: :morF
Insane since: May 2000

posted posted 01-23-2006 11:58

Spam? I'm a little reluctant ot make the call on this one, but what the hell. If I call it wrong, it can always be moved back.


Justice 4 Pat Richard

reisio
Paranoid (IV) Inmate

From: Florida
Insane since: Mar 2005

posted posted 01-23-2006 12:17

/me misses the spammers that could actually speak English

poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

posted posted 01-23-2006 12:55


Why don't you make a REAL compression algorithm instead of simply obfuscating the code ? Using simple LZwhatever you can compress your compr... hum, obfuscated code by a factor of 1:2 and more.

DizzZ
Obsessive-Compulsive (I) Inmate

From:
Insane since: Jan 2006

posted posted 09-02-2006 11:15

poi, sure it can't compress your 256b and other cool things
But nobody needs another LZ thing (HTTP1.1 already uses gzip/compress/deflate).
In some cases it is very handy to make script smaller (and then protocol's built in compression will make it even smaller). REAL compressors like my eCoder and Packer by Dean Edwards really compresses the code but need time for decompression and affects HTTP built in compression.

BTW now it is much better and it is extension for Dreamweaver.
There is fully functional trial version with unlimited trial period.
the new address is http://trickyscripter.com

poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

posted posted 09-02-2006 18:48

LZ techniques have an interrest when working with a strong client side size constraint, such as in 256b.htm , the5k or some demo competitions but I admit that's a marginal use case.

DizzZ
Nervous Wreck (II) Inmate

From: Dnipropetrovsk, Ukraine
Insane since: Jan 2006

posted posted 09-06-2006 01:31

I think some version of PPM is the best choice for scripts compression (and also for any texts).
But it is too slow for JS client side decompression. It is interestiong for experiments but not for practical use with JS. LZ techniques are fast at all but still too slow for JS implementation. Also there is no algorithms that can be normally used with JS on client side - because they all produce binary data. When converting from binary to BASE64 we loosing the sence of compression because this convertation usually compensate the compression.
When I was thinking about script's size reduction the first thing I though was compression. And I made lots of experiments on that field.
What is the most effective way to compress images? Lossy algorithms. DCT, wavelets.
My tool implements lossy compression for scripts - the local vars and functions names are lost after optimization. All markup are lost. The size is reduced by 2-3 times. But the browser can't see the difference.
The decompression si not needed at all. I believe this is the best way to compress scripts - compression without compresson. If we need the better ratios then we can compress optimized code with any algorithm - and it is more effective then trying to compres not prepared code.

---------------------------------------------------------------------------------------------------------------
var pleaseVisit=window.open("http://trickyscripter.com","mySite","")



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu