<div dir="ltr">Hi Levente,<div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 18, 2015 at 4:05 PM, Levente Uzonyi <span dir="ltr">&lt;<a href="mailto:leves@caesar.elte.hu" target="_blank">leves@caesar.elte.hu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Eliot,<br>
<br>
I don&#39;t remember the exact case which made the Pharo guys do this change, but if you implement a web service, which shows source code on a web page, and reads the code from the image, then a non-UI process will read the source code from SourceFiles, which can lead to the problems I&#39;ve described. IIRC Seaside has such example service.</blockquote><div><br></div><div>For this I&#39;d be tempted to implement something like withClonedReadOnlySourceFilesDuring: that installs a new read-only copy for the extent of a block, sort of analogous to deferred UI actions.  The requirement would be that any accessor of source outside of normal user (IDE) priority would use it.  What do you think, worse than the disease, or acceptable?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br>
<br>
Levente<br>
<br>
On Wed, 16 Dec 2015, Eliot Miranda wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Levente,<br>
On Wed, Dec 16, 2015 at 2:43 PM, Levente Uzonyi &lt;<a href="mailto:leves@caesar.elte.hu" target="_blank">leves@caesar.elte.hu</a>&gt; wrote:<br>
      My objection is that concurrent access of the read-only source files would cause race conditions.<br>
      We might simplify the thing by using the regular source files (or some shared read-only copies) when requested from the UI process, and create a read-only copy for all other processes. That would cover most potential slow-downs in the Trunk.<br>
<br>
<br>
Apart form the debugger can you think of situations in which this will really happen?  I can&#39;t. If you can convince me that concurrent access is a real danger then I&#39;ll think again, but in all my time doing Smalltalk with Smalltalk-80 v2, with VisualWorks and with<br>
Croquet, Squeak and Pharo the only time this has been an issue was in the debugger debugging source file access.  Given that that&#39;s easy to solve I don&#39;t see the point of living with such slow source file access for any longer :-)<br>
<br>
 <br>
<br>
<br>
      Levente<br>
<br>
      On Wed, 16 Dec 2015, Eliot Miranda wrote:<br>
<br>
            Hi all,<br>
<br>
               IMO we don&#39;t need CurrentReadOnkySourceFiles, instead we should have SourceFilesArray maintain one read-only copy per source file.  The objection is that using a single file will make debugging source file access break, since the debuggers<br>
            own access to source will perturb the source files whose access is being debugged, but the debugger can easily temporarily install a different read-init copy whenever it accesses source, insulating the debugged code from this effect.<br>
<br>
            _,,,^..^,,,_ (phone)<br>
<br>
                  On Dec 16, 2015, at 4:38 AM, marcel.taeumel &lt;<a href="mailto:Marcel.Taeumel@hpi.de" target="_blank">Marcel.Taeumel@hpi.de</a>&gt; wrote:<br>
<br>
                  I want to catch all exceptions because it is kind of test code where only<br>
                  success matters. :-)  It is an experiment where the participants should<br>
                  program stuff and receive a green tick whenever the task is accomplished.<br>
                  Raising a debugger when the participant puts a &quot;self halt&quot; or anything into<br>
                  the control flow of the test code would confuse the participant.<br>
<br>
                  Conceptionally, CurrentReadOnlySourceFiles is no kind of an exception. Thank<br>
                  you for the explanation. Can you sketch the steps to transform that into a<br>
                  PLV? Why would it take some effort?<br>
<br>
                  Bset,<br>
                  Marcel<br>
<br>
<br>
<br>
                  --<br>
                  View this message in context: <a href="http://forum.world.st/CurrentReadOnlySourceFiles-annoys-me-tp4867253p4867327.html" rel="noreferrer" target="_blank">http://forum.world.st/CurrentReadOnlySourceFiles-annoys-me-tp4867253p4867327.html</a><br>
                  Sent from the Squeak - Dev mailing list archive at Nabble.com.<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
_,,,^..^,,,_<br>
best, Eliot<br>
<br>
</blockquote>
</div></div><br><br>
<br></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>