<br><br><div class="gmail_quote">On Wed, Aug 19, 2009 at 6:56 PM, Igor Stasenko <span dir="ltr">&lt;<a href="mailto:siguctua@gmail.com">siguctua@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
2009/8/20 Eliot Miranda &lt;<a href="mailto:eliot.miranda@gmail.com">eliot.miranda@gmail.com</a>&gt;:<br>
<div><div></div><div class="h5">&gt; Hi Igor,<br>
&gt;<br>
&gt; On Wed, Aug 19, 2009 at 6:00 PM, Igor Stasenko &lt;<a href="mailto:siguctua@gmail.com">siguctua@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; 2009/8/20 Jecel Assumpcao Jr &lt;<a href="mailto:jecel@merlintec.com">jecel@merlintec.com</a>&gt;:<br>
&gt;&gt; &gt; Colin Putney wrote on Wed, 19 Aug 2009 14:25:21 -0700:<br>
&gt;&gt; &gt;&gt; On 19-Aug-09, at 10:15 AM, Jecel Assumpcao Jr wrote:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt; For example, I would far prefer to<br>
&gt;&gt; &gt;&gt; &gt; see Squeak move to a binary based development model (I would mention<br>
&gt;&gt; &gt;&gt; &gt; Projects and Etoys here) than the current source based things we are<br>
&gt;&gt; &gt;&gt; &gt; doing (trunk, bob or whatever).<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Forgive me for seizing on a throw-away comment like this, but would<br>
&gt;&gt; &gt;&gt; you mind expanding on this a bit? Are you saying you prefer something<br>
&gt;&gt; &gt;&gt; spoonish, where CompiledMethods  are passed directly from image to<br>
&gt;&gt; &gt;&gt; image? Something else?<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Heh, I got asked about this on IRC as well. Though I had actually<br>
&gt;&gt; &gt; started to explain this a little in the original email, I ended up<br>
&gt;&gt; &gt; deleting it to keep on topic. With a new subject line I don&#39;t feel I<br>
&gt;&gt; &gt; have to worry about that. Some details about this (with a few drawings)<br>
&gt;&gt; &gt; can be found in the Chunky Squeak wiki page:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; <a href="http://wiki.squeak.org/squeak/584" target="_blank">http://wiki.squeak.org/squeak/584</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; The idea is to be more like the Etoys users which can load binary<br>
&gt;&gt; &gt; projects containing not only the code they need but also hand crafted<br>
&gt;&gt; &gt; objects which have no source (like a drawing, some nested Morphs or even<br>
&gt;&gt; &gt; some text). This is very simplistic compared to Spoon, and my proposal<br>
&gt;&gt; &gt; was even more simplistic. In particular, this doesn&#39;t handle the case<br>
&gt;&gt; &gt; where any changes to bytecodes or object format are needed.<br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; The central question, which arising immediately is, what is the<br>
&gt;&gt; credible way(s) to reproduce such artifacts?<br>
&gt;&gt; When we having a source code, we could (re)compile it on a different<br>
&gt;&gt; system. But what you propose to do with pure binary data, a soup of<br>
&gt;&gt; objects, in respect that it is incredibly hard to understand, what<br>
&gt;&gt; bits you need and what&#39;s not, in case if you need to do clean-up ,<br>
&gt;&gt; refactor, rewrite and simply analyze what is happening.<br>
&gt;&gt; This is what making a huge difference, for instance, between<br>
&gt;&gt; applications with open source code and applications shipped in binary<br>
&gt;&gt; form - you can only report bugs, but can&#39;t realy make any suggestions<br>
&gt;&gt; about what happening.<br>
&gt;&gt; I don&#39;t think that developers of Squeak should be victims of such<br>
&gt;&gt; situation(s).<br>
&gt;<br>
&gt;     it is possible to have your cake and eat it too.  One can create a<br>
&gt; binary format that includes source and includes the meta-source for its<br>
&gt; creation.  But including a binary representation allows much faster loading,<br>
&gt; loading without a<br>
&gt; compiler, and source hiding if one choses not to include the source.<br>
&gt; There are other advantages, such as not cluttering up the changes file when one loads a package  In the VW parcel system, to which I added source management, we replaced the SourceFiles with a SourceFileManager whose job was to manage the sources and changes file and an arbitrary number of source files for parcels, the binary format.  In<br>

&gt; the parcel file the source pointers of compiled methods are the positions of<br>
&gt; their source in the parcel source file.  When one loads a parcel the<br>
&gt; SourceFileManager adds the file to its set of managed files and assigns an<br>
&gt; index for the source file.  The parcle loader then swizzles all the source<br>
&gt; pointers so that they include the source file index along with the position.<br>
&gt;  So accessing the source for a method loaded form a parcel accesses that<br>
&gt; parcel&#39;s source file.  We used a floating-point like format for source<br>
&gt; pointers, where the exponent was the source file index, and the mantissa was<br>
&gt; the position in the file.<br>
&gt; We didn&#39;t create a single file format, having two separate files for binary<br>
&gt; and source, which is probably a mistake.  A format with a short header,<br>
&gt; followed by source, followed by binary, followed by metasource, would be<br>
&gt; easier to manage than three separate files.<br>
&gt; We didn&#39;t include any metasource, but we did include pre-read, load and<br>
&gt; unload actions.  I did a very bad job on version numbering and prerequisite<br>
&gt; selection.<br>
&gt; That&#39;s not the whole story but enough to start answering your question.  If<br>
&gt; there is a well-defined definition of the objects in a package and that<br>
&gt; definition is included in the package as metasource, then one can comprehend<br>
&gt; the binary package&#39;s contents by examining the metasource and can reproduce<br>
&gt; creating the package, provided that the tools are careful to impose<br>
&gt; ordering, etc.<br>
&gt; best<br>
&gt; Eliot<br>
<br>
</div></div>I think you inevitably made wrong decisions, because you went this way<br>
by allowing an<br>
arbitrary binary data , held by package.<br>
In such situations it is much more easier to make a mistakes.<br>
But sure, one who&#39;s making no mistakes is one who doing nothing :)</blockquote><div><br></div><div>We didn&#39;t disallow representation of arbitrary data but we also didn&#39;t support it.  The only thing the Parcel system supports (as in the tool set, rather than what one can extend the framework to do in specific circumstances) is to represent code, which it does very well.</div>
<div><br></div><div>What are these mistakes?  Can you be specific?  I think the parcel system has been a major success.  VW is now deployed as a system of components, the base image and a much larger suite of parcels.  Parcels are not tied to a particular version or implementation and yet are still fast to publish and load.  What&#39;s not to like?</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
<br>
Obviously one of the side of such problem is uniform object memory,<br>
where each object could<br>
reference any other object and limited only by a imagination of people.<br>
There is no layers or any other means which could establish a certain<br>
barriers (which we calling a modules)<br>
in smalltalk.<br>
It means, that once you integrated the parcel into image, and started<br>
using it, you may have a hard times trying to unload it.<br>
It is possible to develop an image as an artifact, which contains both<br>
binary &amp; sources , but such approach<br>
having a drawbacks, which we, by the way, trying to overcome nowadays.<br>
Practice shows that such approach is credible only<br>
for a small group of individuals, but becomes a bottleneck if you<br>
adopt such scheme for a wider community.<br>
<br>
So, i think , that before entering this domain (allowing binary data),<br>
first we should solve more basic problems of smalltalk &amp; its design -<br>
modularity, name spaces, layering &amp; etc etc.. Only the we could return<br>
to original question and solve it.<br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div class="h5">Best regards,<br>
Igor Stasenko AKA sig.<br>
<br>
</div></div></blockquote></div><br>