[gambit-list] Gambit universal library in the browser
Lassi Kortela
lassi at lassi.io
Wed Mar 25 14:51:29 EDT 2020
> For use on the web the generated JavaScript code could be compressed with various methods. Marc-André Bélanger has experimented with a code compressor (post-processing of the .js code) that reduces the size by a factor of 3. And when gzip compression is also enabled in the web server the final network transfer is about 5% of the original size. So this would represent a decent 1.5 MB network transfer *without* the smart linker.
AFAIK the de facto standard framework is still React. It's 40K. Elm, a
purely functional language with a built-in React-like framework, gets
down to 30K. The biggest popular frameworks are 100-150K. All of these
sizes are gzipped + minified (i.e. all identifiers compressed to the
shortest possible obfuscated ones, and all whitespace removed).
Are there known tricks to get Gambit down to that 100-150K range?
Sources:
- https://elm-lang.org
- https://gist.github.com/Restuta/cda69e50a853aa64912d
More information about the Gambit-list
mailing list