Hello,
Currently the idea is to put the source file as a compressed AST in the image.�
The status is:
- standard AST is 300Mb for the whole image, which is too much
- standard AST with nodes shared between RBMethodNodes (made by Camille) is 16Mb, so already half the size of the current sources
- same as last one but with additional bit compression: not done yet ! It should be around 4Mb (but that's a lucky guess), growing the size of the image from 16Mb to 20Mb, which is okay.
The source file should not be in the VM. One image can use only 1 source file, but 1 VM can run several images using different source files. Therefore you would need to add multiple source files in the VM, which ends up nowhere.