If you start with a minimal imaqe, it's not obvious to me how you'd add a
missing class and pull in all of its dependencies (which can be voluminous).
And for a large application, there could be many, many missing classes. This
sounds rather arduous.


Tim Mackinnon wrote
> There has been a lot of great work on this front on the Pharo side from
> the "team" and PharoLambda has made use of it (although it's a tiny
> project).
> 
> My footprint is ~22mb including vm & image. And leaving out sources.
> 
> The ./scripts directory has the example of how to do it, along side the
> .gitlab-ci.yml file.
> 
> Unlike the commercial distributions (and this may have changed recently),
> there is a minimal image you can have download, which has enough to
> bootstrap loading your project via metacello. There are no browser tools
> or morphic things in the starting image I have chosen.
> 
> You can potentially get smaller - but it's a decent result. The only bit I
> added was to remove testcases (optional), and clear down metacello.
> 
> It's probably worthy of a blog post - but honestly the running example is
> pretty straight forward.
> 
> The commercial tools all have a decent "strip dead code" tool, that does a
> similar thing in reverse - which is equally a decent way of approaching
> the problem and can lead to even tinier results.
> 
> Tim
> 
> Sent from my iPhone
> 
>> On 21 Aug 2017, at 21:25, horrido <

> horrido.hobbies@

> > wrote:
>> 
>> I received this comment on Facebook:
>> 
>> Smalltalk is a fantastic language and its development environment can't
>> be
>> beat... But the documentation for the many open source implementations is
>> contradictory or confusing or missing. I can't speak for the commercial
>> versions. Without an experienced mentor it is not possible to create a
>> complex app. And even when you have done so, *I know no way to strip out
>> the
>> unused part of the image as well as the embedded source code*.
>> -----
>> 
>> This issue of stripping out unused code seems to recur a lot. And truth
>> be
>> told, I've never seen a clear explanation of how to do this. Can someone
>> provide clear direction? Is this documented anywhere? I'd like to use the
>> information in future to assuage other people's concerns.
>> 
>> Thanks.
>> 
>> 
>> 
>> --
>> View this message in context:
>> http://forum.world.st/Minimizing-an-Application-tp4963262.html
>> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>>





--
View this message in context: 
http://forum.world.st/Minimizing-an-Application-tp4963262p4963349.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

Reply via email to