Distributing 'minimal' image

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Distributing 'minimal' image

jfabry
Hi all,

I am planning to put online a minimal image that contains AspectMaps, with some models pre-loaded. Two questions:
- Is there an easy way to strip this image of dev tools et cetera?
- How can I make it so that I can distribute it without the changes file? (Right now the image complains of a missing changes file if it is not there ...)

Thanks in advance!
--
Johan Fabry  
[hidden email] - http://dcc.uchile.cl/~jfabry
PLEIAD Lab - Computer Science Department (DCC) - University of Chile




_______________________________________________
Pharo-users mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
Reply | Threaded
Open this post in threaded view
|

Re: Distributing 'minimal' image

Mariano Martinez Peck


On Thu, Sep 30, 2010 at 11:07 PM, Johan Fabry <[hidden email]> wrote:
Hi all,

I am planning to put online a minimal image that contains AspectMaps, with some models pre-loaded. Two questions:
- Is there an easy way to strip this image of dev tools et cetera?

Not really. The easiest way is to have a Configuration of Metacello that takes care of loading all your code with all your dependencies. Then, take a PharoCore and load your code there.
In addition, you may want to evaluate "ScriptLoader cleanUpForProduction" at the end. Check the method to see what it does.
 
- How can I make it so that I can distribute it without the changes file? (Right now the image complains of a missing changes file if it is not there ...)


I am aware of "Smalltalk abandonSources"  to avoid using .sources. You won't see things like the temp names, and stuff will be decompiled instead.
For the .changes you can start the image without them, there will raise a popup at the beginning. The problem is if you then do sometthing that should be written there. Not sure here...

cheers

Mariano


 
Thanks in advance!
--
Johan Fabry
[hidden email] - http://dcc.uchile.cl/~jfabry
PLEIAD Lab - Computer Science Department (DCC) - University of Chile




_______________________________________________
Pharo-users mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users


_______________________________________________
Pharo-users mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
Reply | Threaded
Open this post in threaded view
|

Re: Distributing 'minimal' image

Igor Stasenko
On 1 October 2010 08:48, Mariano Martinez Peck <[hidden email]> wrote:

>
>
> On Thu, Sep 30, 2010 at 11:07 PM, Johan Fabry <[hidden email]> wrote:
>>
>> Hi all,
>>
>> I am planning to put online a minimal image that contains AspectMaps, with
>> some models pre-loaded. Two questions:
>> - Is there an easy way to strip this image of dev tools et cetera?
>
> Not really. The easiest way is to have a Configuration of Metacello that
> takes care of loading all your code with all your dependencies. Then, take a
> PharoCore and load your code there.
> In addition, you may want to evaluate "ScriptLoader cleanUpForProduction" at
> the end. Check the method to see what it does.
>
>>
>> - How can I make it so that I can distribute it without the changes file?
>> (Right now the image complains of a missing changes file if it is not there
>> ...)
>>
>
> I am aware of "Smalltalk abandonSources"  to avoid using .sources. You won't
> see things like the temp names, and stuff will be decompiled instead.

With a little effort, you can embed source code into method trailers.
Then you won't need .sources nor .chanes to see the real source
instead of decompiling it.
But you will loose method stamps.

> For the .changes you can start the image without them, there will raise a
> popup at the beginning. The problem is if you then do sometthing that should
> be written there. Not sure here...
>
yeah.

> cheers
>
> Mariano
>
>
>
>>
>> Thanks in advance!
>> --
>> Johan Fabry
>> [hidden email] - http://dcc.uchile.cl/~jfabry
>> PLEIAD Lab - Computer Science Department (DCC) - University of Chile
>>
>>
>>
>>
>> _______________________________________________
>> Pharo-users mailing list
>> [hidden email]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>
>
> _______________________________________________
> Pharo-users mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>
>



--
Best regards,
Igor Stasenko AKA sig.

_______________________________________________
Pharo-users mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
Reply | Threaded
Open this post in threaded view
|

Re: Distributing 'minimal' image

jfabry
In reply to this post by Mariano Martinez Peck

On 01 Oct 2010, at 01:48, Mariano Martinez Peck wrote:

- Is there an easy way to strip this image of dev tools et cetera?

Not really. The easiest way is to have a Configuration of Metacello that takes care of loading all your code with all your dependencies. Then, take a PharoCore and load your code there.

Pity, that. It would be a nice addition to Pharo I think...

In addition, you may want to evaluate "ScriptLoader cleanUpForProduction" at the end. Check the method to see what it does. 

Thanks, I'll look at that.

 
- How can I make it so that I can distribute it without the changes file? (Right now the image complains of a missing changes file if it is not there ...)


I am aware of "Smalltalk abandonSources"  to avoid using .sources. You won't see things like the temp names, and stuff will be decompiled instead. 

OK I'll try that.

For the .changes you can start the image without them, there will raise a popup at the beginning. The problem is if you then do sometthing that should be written there. Not sure here...

Is there a way for this popup to be inhibited? Or can I just make a zero-line changes file and distribute that? I am assuming the users will not use a browser, and if they do get to that point they are experts and fully responsible for shooting themselves in the foot :-)

--
Johan Fabry   
PLEIAD Lab - Computer Science Department (DCC) - University of Chile




_______________________________________________
Pharo-users mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
Reply | Threaded
Open this post in threaded view
|

Re: Distributing 'minimal' image

Daniel Galdames


Is there a way for this popup to be inhibited? Or can I just make a zero-line changes file and distribute that? I am assuming the users will not use a browser, and if they do get to that point they are experts and fully responsible for shooting themselves in the foot :-)


On  Settings Browser, under System, you can uncheck "Check changes file availability", to inhibit the warning.
Saludos,
  Daniel Galdames G.


_______________________________________________
Pharo-users mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
Reply | Threaded
Open this post in threaded view
|

Re: Distributing 'minimal' image

jfabry

On 01 Oct 2010, at 15:34, Daniel Galdames wrote:


Is there a way for this popup to be inhibited? Or can I just make a zero-line changes file and distribute that? I am assuming the users will not use a browser, and if they do get to that point they are experts and fully responsible for shooting themselves in the foot :-)


On  Settings Browser, under System, you can uncheck "Check changes file availability", to inhibit the warning.

Cool, thanks Daniel!

--
Johan Fabry   
PLEIAD Lab - Computer Science Department (DCC) - University of Chile




_______________________________________________
Pharo-users mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
Reply | Threaded
Open this post in threaded view
|

Re: Distributing 'minimal' image

Mariano Martinez Peck
In reply to this post by jfabry


On Fri, Oct 1, 2010 at 2:25 PM, Johan Fabry <[hidden email]> wrote:

On 01 Oct 2010, at 01:48, Mariano Martinez Peck wrote:

- Is there an easy way to strip this image of dev tools et cetera?

Not really. The easiest way is to have a Configuration of Metacello that takes care of loading all your code with all your dependencies. Then, take a PharoCore and load your code there.

Pity, that. It would be a nice addition to Pharo I think...

The problem are, as always, the overrides. Sure, you can unload all the packages that were loaded on top of the core image to build the Dev one, but the problem are the overrides. We cannot (yet?) recover the original overwritten method I think.
 

In addition, you may want to evaluate "ScriptLoader cleanUpForProduction" at the end. Check the method to see what it does. 

Thanks, I'll look at that.

 
- How can I make it so that I can distribute it without the changes file? (Right now the image complains of a missing changes file if it is not there ...)


I am aware of "Smalltalk abandonSources"  to avoid using .sources. You won't see things like the temp names, and stuff will be decompiled instead. 

OK I'll try that.

For the .changes you can start the image without them, there will raise a popup at the beginning. The problem is if you then do sometthing that should be written there. Not sure here...

Is there a way for this popup to be inhibited? Or can I just make a zero-line changes file and distribute that? I am assuming the users will not use a browser, and if they do get to that point they are experts and fully responsible for shooting themselves in the foot :-)

--
Johan Fabry   
PLEIAD Lab - Computer Science Department (DCC) - University of Chile




_______________________________________________
Pharo-users mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users



_______________________________________________
Pharo-users mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users