<br><br><div class="gmail_quote">On Fri, Dec 2, 2011 at 4:54 PM, Tobias Pape <span dir="ltr">&lt;<a href="mailto:Das.Linux@gmx.de">Das.Linux@gmx.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Dear all,<br>
<br>
afte Fuel being available for both Squeak and Pharo,<br>
I experimented a little bit.<br></blockquote><div><br>Be aware that Fuel is &quot;partially&quot; supported in Squeak. It was just a first try Martin and I did. The idea is to have at least the &quot;Core&quot; working. Previously, the Core included also all the code to be able to completely serialize classes, traits and compiled methods. Most of the times this is not used, since most users want to serialize the class/trait/method as &quot;global&quot;, that is, we just serialize its name and then search it at materialization time.  In the latest version of Fuel (1.8, which is not yet released), such behavior was moved to a separate package called FuelMetalevel. That package, does NOT work in Squeak since Class and Trait are different in Squeak than Pharo. So, you are NOT able to serialize classes/traits completely. Since that package is not supported, FuelPackageLoader is not supported either.  So....just the plain/core serialization works so far in Squeak. Of course we welcome someone to push with the other packages. <br>
 </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
So, I put a new snapshot.fuel beside the snapshot.bin in<br>
the mcz zips (same for patch.* in mcd).<br></blockquote><div><br>I am surprised that it worked since (as said) full serialization of classes/methods is not working in Squeak. I thought that Monticello serialize that in that snapshot.bin but it seems I am wrong. So...what is exactly serialized in that snapshot.bin ?<br>
<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
But to make it easier in the future to experiment with things,<br>
I included a small facility to extend serializers/materializers<br>
or similar things more easily. How is it done?<br>
<br>
Example: new serializer in MCZ files:<br>
After my patch, include<br>
<br>
MCMczWriter class&gt;&gt;serializerMine<br>
<br>
        ^ [:writer :snapshot | writer writeSnapshotAsMyFormat: snapshot]<br>
<br>
and<br>
<br>
MCMczWriter&gt;&gt;writeSnapshotAsMyFormat: snapshot<br>
<br>
        self addString: (self doSomeConversion: aSnapshot) at: &#39;snapshot.myformat&#39;.<br>
<br>
as Extension methods in MCMczWriter, and execute<br>
<br>
MCMczWriter populateSerializers.<br>
<br>
Now, a new file member is added to every new mcz file.<br>
<br></blockquote><div> </div><div>Excellent.<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
As an example, I have done such thing for Fuel.<br>
Don&#39;t worry, it just uses the default behavior if<br>
Fuel is not present in either the image or the mcz-file.<br></blockquote><div><br>So, is it working?  can I commit/load with Monticello using the Fuel instead of DataStream? <br>Did you notice performance improvement in using Fuel rather than DataStream? <br>
I guess (well, once Levente showed something)  it is a small percentage in the overall process of Monticello, so I don&#39;t expect that much improvement in the whole action of saving/commiting. <br><br>Thanks <br> </div>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Best,<br>
        -Tobias<br>
<br>
PS: for Squeak, see Inbox Monticello-topa.491,<br>
    And I also have an MCD attached that should help using the code elsewhere.<br>
<br>
<br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br><br>