How do you reduce Revolution's compiled program sizes?

revolution at knowledgeworks.plus.com revolution at knowledgeworks.plus.com
Wed Jul 9 03:16:00 EDT 2003


Revolution executables are 'so large' because they include the engine.  It as if you are distributing a Java application and including the JRE along with your class files.  Or, since you mention Rebol - it is as if you are distributing the Rebol engine along with your application.

A simple Revolution application (if distributed only as a stack a la your Rebol example) would also only be a couple of Kilobytes in size.  If you want to see something akin to the Rebol way of doing things, have a look at Richard Gaskin's GoRevNet: http://www.fourthworld.com/rev/index.html

Personally I would rather distribute a cross-platform Revolution executable that was 2MB in size and have the benefits of a powerful GUI and easier and more pleasant development experience.  One could always use C or C++ and produce a single platform, more compact application with a lengthy and nightmarish development process.

Maybe in the days of slow CPUs, and slow modems I would have different priorities :-)

Regards,
Bernard


>>
Hi,

I notice that all programs compiled with Revolutions (even the simple "hello world" sample) are on the heavy side (at least 1.8 megs,) even after you minimize usage of the optional libraries. 

Is it because Revolution packs the runtime libraries along with every compiled project like Visual Basic does?

I prefer Revolution to VB or C++ because it appears to be much easier to learn and use (not to mention it's cross platform feature), however, I am envious of the compactness of C++.

Why is C++ so small as compared to Revolution?

Another program that is cross-platform like Revolution, but extremely compact is Rebol. (http://www.rebol.com) The avg prog size for rebol is only about 5k (as opposed to 1800K for Revolution.) How did they manage to make Rebol so compact?

Other than reducing the associated libraries, avoiding media files (graphics, audio, video, etc.,) what tricks and tips can be used to make Revolution produce leaner and trimer executables? 

Thanks  
<<



More information about the use-livecode mailing list