<div dir="ltr">Hi David,<br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 15, 2015 at 5:45 AM, Esteban Lorenzano <span dir="ltr">&lt;<a href="mailto:estebanlm@gmail.com" target="_blank">estebanlm@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"><span class=""><br>
<br>
&gt; On 15 Sep 2015, at 14:13, David T. Lewis &lt;<a href="mailto:lewis@mail.msen.com">lewis@mail.msen.com</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Sep 15, 2015 at 11:40:48AM +0200, Esteban Lorenzano wrote:<br>
&gt;&gt;<br>
&gt;&gt; Pharo uses them.<br>
&gt;&gt;<br>
&gt;&gt; Posix permissions are useful for both linux and mac.<br>
&gt;&gt; Windows uses also the posix permissions that came with MinGW??? I do not think they are useful but we provide them anyway :)<br>
&gt;<br>
&gt;<br>
&gt; Posix permissions are based on Unix, and are very platform specific. The<br>
&gt; Windows equivalents are semantically different, and other operating systems<br>
&gt; may exist that are not Unix based at all.<br>
&gt;<br>
&gt; IMO, platform specific functions should go into separate plugins, and not<br>
&gt; in FilePlugin.<br>
<br>
</span>well, I disagree :)<br>
I do not find this approach practical… because in general, there is no other systems that may exist using other permissions than POSIX. Except Windows, of course, but even for windows, there are compatibility layers that we can use.<br>
In the case of the FilePlugin extensions, we choose to stay POSIX because in general, as its been said before, the job of a virtual machine is been virtual: to provide an “abstract machine” common for everything in the image. I’m not saying that this is possible and even desirable in all cases, but it should be something to think about.<br>
In that case, we could design a common file permissions different to the one of Windows and different to POSIX, but I think POSIX does the job just fine.<br>
<br>
Also, the choice was: POSIX or nothing (because we didn’t have anything before).<br>
I would be very happy if we agree in a better solution, and we implement it.<br>
But in the mean time, a not perfect solution is better than none.<br></blockquote><div><br></div><div>I agree with Esteban.  IMO, the model of files that the FilePlugin provides access to can and should be a superset of facilities.  By not supporting facilities such as permissions or symbolic links or active mount-points we hobble our core file functionality and that makes us a very weak scripting platform.  Putting these facilities in add-on packages makes configuration more difficult and means that an elegant implementation in the core file classes, with fallbacks for platforms that don&#39;t support the concepts, is very difficult.</div><div><br></div><div>If we want to support unix-style scripting in Pharo and Squeak (and I think we very much do; there are many areas out there where good scripting is essential) then we need a better File model, and that means not just getting rid of FileDirectory et al, it also means providing the right infrastructure in the FilePlugin, and that means extensions like the one the Pharo VM folks made.  Indeed they haven&#39;t gone nearly far enough IMO.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888"><br>
Esteban<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
&gt;<br>
&gt; Dave<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; Esteban<br>
&gt;&gt;<br>
&gt;&gt; ps: I do not know what are you doing there guys, but you broke my builds (I???m taking a look at them now) :P<br>
&gt;&gt;<br>
&gt;&gt;&gt; On 15 Sep 2015, at 09:24, Nicolai Hess &lt;<a href="mailto:nicolaihess@web.de">nicolaihess@web.de</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; 2015-09-15 4:11 GMT+02:00 Ben Coman &lt;<a href="mailto:btc@openinworld.com">btc@openinworld.com</a> &lt;mailto:<a href="mailto:btc@openinworld.com">btc@openinworld.com</a>&gt;&gt;:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Sat, Sep 12, 2015 at 11:00 PM, Nicolai Hess &lt;<a href="mailto:nicolaihess@web.de">nicolaihess@web.de</a> &lt;mailto:<a href="mailto:nicolaihess@web.de">nicolaihess@web.de</a>&gt;&gt; wrote:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; 2015-09-10 21:31 GMT+02:00 Eliot Miranda &lt;<a href="mailto:eliot.miranda@gmail.com">eliot.miranda@gmail.com</a> &lt;mailto:<a href="mailto:eliot.miranda@gmail.com">eliot.miranda@gmail.com</a>&gt;&gt;:<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Hi Nicolai,<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;    I&#39;m a bit concerned that this is creating drift with the &quot;official&quot; Cog source base at <a href="http://www.squeakvm.org/svn/squeak/branches/Cog" rel="noreferrer" target="_blank">http://www.squeakvm.org/svn/squeak/branches/Cog</a> &lt;<a href="http://www.squeakvm.org/svn/squeak/branches/Cog" rel="noreferrer" target="_blank">http://www.squeakvm.org/svn/squeak/branches/Cog</a>&gt;.  Long filename support for win32 was recently added by Marcel Taumel in May of this year.  Are you tracking that?  How can we keep the sources harmonized?<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Ok, I removed all of my code again and merged with sqWin32Directory.c and sqWin32FilePrims.c from the official cog source.<br>
&gt;&gt;&gt;&gt; I left only pharos additions for the fileattributes (posixpermissions) this should make it easier to merge which the<br>
&gt;&gt;&gt;&gt; squeak vm main branch (wrapped with pharo vm ifdefs).<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; What is the purpose of fileattributes? In the interests of further<br>
&gt;&gt;&gt; minimising drift, is this useful to Squeak?<br>
&gt;&gt;&gt; cheers -ben<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I don&#39;t know, I don&#39;t think we use it at all. And for the different platforms, the permission attributes<br>
&gt;&gt;&gt; doesn&#39;t really *are the same*. For example, the read/write permissions we are showing for<br>
&gt;&gt;&gt; win32 platform, don&#39;t have much to do with win32 access restrictions - Idon&#39;t know about macos.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div>
</div></div>