Greetings brave experimenters. For those of you foolhardy enough to try code so fresh it still has the cowflop sticking to it, here is a real treat.
The attached code, when filed in, ought to remove all the VM generation related classes and all the associated methods scattered around the image. I bet I've missed some though. It seems to reduce the size of my image by about a megabyte and said image reports no entries in Undeclared and no references to obsolete classes.
No warranty, this code is not for use in life critical systems, no refund, no purchase required etc etc.
Oh, I _do_ have all the code filed out ready to reinstall once I work out how to package it up.
tim
On 17/03/03 02:03, "Tim Rowledge" tim@sumeru.stanford.edu wrote:
Greetings brave experimenters. For those of you foolhardy enough to try code so fresh it still has the cowflop sticking to it, here is a real treat.
The attached code, when filed in, ought to remove all the VM generation related classes and all the associated methods scattered around the image. I bet I've missed some though. It seems to reduce the size of my image by about a megabyte and said image reports no entries in Undeclared and no references to obsolete classes.
No warranty, this code is not for use in life critical systems, no refund, no purchase required etc etc.
Oh, I _do_ have all the code filed out ready to reinstall once I work out how to package it up.
tim
Tim Rowledge, tim@sumeru.stanford.edu, http://sumeru.stanford.edu/tim Never forget: 2 + 2 = 5 for extremely large values of 2.
Tim: I began to test your code in 3.4 and post results. I 'm workin in to have SqueakLight, an bare Morphic image for educational and commercial purpose, with no goods like Games , Celeste, 3D , etc, but fully funtional . Last size is 5.3 Mb and trying to downsizing more.
Cheers Edgar
------------ �Internet GRATIS es Yahoo! Conexi�n! Usuario "yahoo", contrase�a "yahoo". Desde Buenos Aires, 4004-1010. Otras ciudades: http://conexion.yahoo.com.ar/avanzados.html
On 17/03/03 02:03, "Tim Rowledge" tim@sumeru.stanford.edu wrote:
The attached code, when filed in, ought to remove all the VM generation related classes and all the associated methods scattered around the image. I bet I've missed some though. It seems to reduce the size of my image by about a megabyte and said image reports no entries in Undeclared and no references to obsolete classes.
I have to report what to a Squeak3.4.image with the following fix
SimulatorFixes-ajh.cs.gz ProjectSubclassesOK-nk.cs.gz LateSqueaklandFixes.cs.gz
Then I have a Squeak3.4F.image , 9.8 Mb. When I fileIn VMCodeRemovalCleanup.4.cs and save, I have a 9.2 Mb image.
A 0.6 Mb saving !!!!
Regards Edgar
------------ �Internet GRATIS es Yahoo! Conexi�n! Usuario "yahoo", contrase�a "yahoo". Desde Buenos Aires, 4004-1010. Otras ciudades: http://conexion.yahoo.com.ar/avanzados.html
"Lic. Edgar J. De Cleene" edgardec2001@yahoo.com.ar wrote:
When I fileIn VMCodeRemovalCleanup.4.cs and save, I have a 9.2 Mb image.
That's good but more important is whether it breaks anything for you?
tim
On 17/03/03 15:32, "Tim Rowledge" tim@sumeru.stanford.edu wrote:
That's good but more important is whether it breaks anything for you?
tim
Tim:
I just finish to test my own projects and no, nothing are broken .
All load , all run, all is fine.
Maybe oscure bugs are waiting to hurt ....
Cheers Edgar
------------ �Internet GRATIS es Yahoo! Conexi�n! Usuario "yahoo", contrase�a "yahoo". Desde Buenos Aires, 4004-1010. Otras ciudades: http://conexion.yahoo.com.ar/avanzados.html
"Lic. Edgar J. De Cleene" edgardec2001@yahoo.com.ar wrote:
I just finish to test my own projects and no, nothing are broken .
All load , all run, all is fine.
Maybe oscure bugs are waiting to hurt ....
Here's a small puzzle - I just discovered that despite having been told that there were no obsolete classes to worry about, the world menu was holding onto AnObsoleteVMMakerTool.
tim
On Thu, Mar 20, 2003 at 07:36:35PM -0800, Tim Rowledge wrote:
"Lic. Edgar J. De Cleene" edgardec2001@yahoo.com.ar wrote:
I just finish to test my own projects and no, nothing are broken .
All load , all run, all is fine.
Maybe oscure bugs are waiting to hurt ....
Here's a small puzzle - I just discovered that despite having been told that there were no obsolete classes to worry about, the world menu was holding onto AnObsoleteVMMakerTool.
Just tried it. I think you didn't remove the entry for VMMaker in the open Menu:
TheWorldMenu unregisterOpenCommand: 'VMMaker'
Marcus
Marcus Denker marcus@ira.uka.de wrote:
Just tried it. I think you didn't remove the entry for VMMaker in the open Menu:
TheWorldMenu unregisterOpenCommand: 'VMMaker'
I certainly didn't - I'd never heard of it. I'll stick it in the next version. Thanks for the fix.
tim
On 21/03/03 00:36, "Tim Rowledge" tim@sumeru.stanford.edu wrote:
Here's a small puzzle - I just discovered that despite having been told that there were no obsolete classes to worry about, the world menu was holding onto AnObsoleteVMMakerTool.
And how you are rid of obsolete class refernces ? I downsizing 3.4 final image to 5.3 mb (SqueakLight) and having 133 of them. I recent to Smalltalk (not to programming) and looking all classes / methods and trying to get System forgets once meet "AnObsoletexxx" do not work.
You can help me ?
Thanks a lot
Edgar
Hi tim
I did not have the time to your changeset but I was wondering if during your "extraction" you noticed places where class extensions are not enough (for example where a method has to be patched...). Just to know whether some registration mechanisms were needed for the VM generation code.
Stef
On Monday, March 17, 2003, at 07:32 PM, Tim Rowledge wrote:
"Lic. Edgar J. De Cleene" edgardec2001@yahoo.com.ar wrote:
When I fileIn VMCodeRemovalCleanup.4.cs and save, I have a 9.2 Mb image.
That's good but more important is whether it breaks anything for you?
tim
Tim Rowledge, tim@sumeru.stanford.edu, http://sumeru.stanford.edu/tim Strange OpCodes: SD: Self Destruct
Prof. Dr. Stéphane DUCASSE (ducasse@iam.unibe.ch) http://www.iam.unibe.ch/~ducasse/ "if you knew today was your last day on earth, what would you do different? ... especially if, by doing something different, today might not be your last day on earth" Calvin&Hobbes
"The best way to predict the future is to invent it..." Alan Kay.
Open Source Smalltalks: www.squeak.org, www.gnu.org/software/smalltalk/smalltalk.html Free books for Universities at http://www.esug.org/sponsoring/promotionProgram.html Free Online Book at www.iam.unibe.ch/~ducasse/FreeBooks.html
I have just updated the VMMaker package on SqueakMap to correct the immediate problems I had with the pool dictionaries. It certainly doesn't include a general solution to the problem, unfortunately, but it now works as a simple filein. Well, so long as you have the Klatt, B3D and FFI related classes that actually 'own' the pool dictionaries involved in the appropriate plugins.
How we cleanly handle this sort of interdependency is still a bit of an open sore, er, question.
I'm off net for a few days from tomorrow so don't expect any rapid replies to suggestions!
tim
squeak-dev@lists.squeakfoundation.org