dyoo/WeScheme — Issue #43: evaluator can not be compressed due to some javascript syntax errors
Author: dyoo
Created: 2012-01-20 17:18:55+00:00
State: open

We're using certain identifiers that compressors like YUI compressor think are keywords.

These include:

throws
char (types.char)
float (types.float)

If I replace these with types['char'] and types['float'], that should allow us to compress these files too.

Frankly, it doesn't help collections very much, at least through YUI compressor:

-rw-rw-r-- 1 dyoo nogroup 1036953 Jan 20 11:58 collections-min.js
-rw-rw-r-- 1 dyoo nogroup 1165034 Jan 20 11:58 collections.js

It does cut down on the size of support.

kui ~/workspace/WeScheme/war/js/mzscheme-vm $ ls -l support*.js
ls -l support*.js
-rw-rw-r-- 1 dyoo nogroup 286413 Jan 20 12:02 support-min.js
-rw-rw-r-- 1 dyoo nogroup 567610 Jan 20 12:01 support.js

Closure Compiler shaves support.js down to 247.52KB.

We should make changes to the runtime libraries so that we can compress these large files cleanly. We should do the same to codemirror.