On 16-Mar-09, at 2:21 PM, Adrian Lienhard wrote:
In quest of modularizing Pharo and reducing its memory footprint, I was wondering whether the following packages should be removed:
- TrueType and related classes in Multilingual-Display (are obsolete since we have FreeType, no?) - Services (does not seem to be used, except by a subclass in Polymorph) - Graphics-External-Ffenestri (why is this in the image??)
This is part of the multiple window Ffenestri support people wailed for 5 years back, it's part of the EventSensor logic to at least support WindowEventMetricChange := 1. " size or position of window changed - value1-4 are left/top/right/bottom values " WindowEventClose := 2. " window close icon pressed " WindowEventIconise := 3. " window iconised or hidden etc " WindowEventActivated :=4. " window made active - some platforms only - do not rely upon this " WindowEventPaint := 5. " window area (in value1-4) needs updating. Some platforms do not need to send this, do not rely on it in image I believe MOST VMs now support the WindowEventClose via this logic so that people can choose to terminate an image by clicking on the close window button. I'd consider part of the base kernel since it's VM event related.
- Compression (I think, does not need to be in the kernel) - Sound (dito)
Polymorph-Widgets-Themes uses RestSound, otherwise you could remove all of sound I think, I've done that for an iphone image. You need to alter the Object>beep logic to invoke (somehow) the primtiive beep sound, versus bring up an entire Sound subsystem to beep.
- Traits-LocalSends and Traits-Requires (are not used) - MorphicExtras (I assume at least some of those could extracted) - ...?
I would put these in a repository so they can be loaded if needed. The extraction of some of these packages likely needs some work, but would be a first step towards a more modular kernel.
What do others think?
Adrian
___________________ http://www.adrian-lienhard.ch/
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- = = = ======================================================================== John M. McIntosh <johnmci@smalltalkconsulting.com> Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com = = = ========================================================================