[Cuis-dev] Unreachable code after Smalltalk saveImage

Juan Vuletich juan at cuis.st
Wed Mar 5 06:42:01 PST 2025


On 3/5/2025 11:14 AM, Nicolás Papagna Maldonado via Cuis-dev wrote:
>
> Thanks, Juan!
>
> What's the rationale behind that? Would love to know more about it.
>
> Cheers!
> Nico PM
>

Saving the image closes source files, kills all processes and does other 
cleanups. The general idea is to
- avoid saving in the image state that may be invalid if the image is 
ran on a different environment
- make all 'static' state recreable from source at startup, and exercise 
that code all the time.

This is consistent with the general recommendation of using files to 
save dev work, not the image.

As we move towards a small, minimal image that loads pre-compiled 
libraries, this will only be ever more so.

Cheers,

>
> On Wed, Mar 5, 2025, 10:39 Juan Vuletich <juan at cuis.st 
> <mailto:juan at cuis.st>> wrote:
>
>     Hi Nico,
>
>     On 3/4/2025 12:20 PM, Nicolás Papagna Maldonado via Cuis-dev wrote:
>>     Hi folks,
>>
>>     I evaluated this in a Transcript and, to my surprise, the
>>     inspector was not opened:
>>
>>     Smalltalk saveImage.
>>     1 inspect.
>>
>>     It looks like anything after Smalltalk saveImage is not evaluated.
>>     Is this by design or a bug?
>>
>>     Thanks in advance,
>>     Nico PM
>
>     It is by design.
>
>     Cheers,
>
>     -- 
>     Juan Vuletich
>     cuis.st  <http://cuis.st>
>     github.com/jvuletich  <http://github.com/jvuletich>
>     researchgate.net/profile/Juan-Vuletich  <http://researchgate.net/profile/Juan-Vuletich>
>     independent.academia.edu/JuanVuletich  <http://independent.academia.edu/JuanVuletich>
>     patents.justia.com/inventor/juan-manuel-vuletich  <http://patents.justia.com/inventor/juan-manuel-vuletich>
>     linkedin.com/in/juan-vuletich-75611b3  <http://linkedin.com/in/juan-vuletich-75611b3>
>     twitter.com/JuanVuletich  <http://twitter.com/JuanVuletich>
>


-- 
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20250305/ae121545/attachment.htm>


More information about the Cuis-dev mailing list