<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Hi Nicolas,</div><div><br>On Apr 16, 2014, at 11:33 AM, Nicolas Cellier &lt;<a href="mailto:nicolas.cellier.aka.nice@gmail.com">nicolas.cellier.aka.nice@gmail.com</a>&gt; wrote:</div><div><br></div><blockquote type="cite"><div><span></span></div></blockquote><blockquote type="cite"><div><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2014-04-16 19:13 GMT+02:00 Eliot Miranda <span dir="ltr">&lt;<a href="mailto:eliot.miranda@gmail.com" target="_blank">eliot.miranda@gmail.com</a>&gt;</span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">&nbsp;<br><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 16, 2014 at 9:58 AM, Nicolas Cellier <span dir="ltr">&lt;<a href="mailto:nicolas.cellier.aka.nice@gmail.com" target="_blank">nicolas.cellier.aka.nice@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">&nbsp;<br><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">

2014-04-16 18:48 GMT+02:00 Esteban Lorenzano <span dir="ltr">&lt;<a href="mailto:estebanlm@gmail.com" target="_blank">estebanlm@gmail.com</a>&gt;</span>:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">&nbsp;<br><div style="word-wrap:break-word"><br><div><div>On 16 Apr 2014, at 18:33, Nicolas Cellier &lt;<a href="mailto:nicolas.cellier.aka.nice@gmail.com" target="_blank">nicolas.cellier.aka.nice@gmail.com</a>&gt; wrote:</div>


<br><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2014-04-16 14:38 GMT+02:00 Göran Krampe <span dir="ltr">&lt;<a href="mailto:goran@krampe.se" target="_blank">goran@krampe.se</a>&gt;</span>:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<br>
Hey!<br>
<br>
On 04/16/2014 01:22 PM, gettimothy wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
Hi Estaban,<div><br>
<br>
&nbsp;&gt;&gt;Is a bit frustrating so I will say it again: CMakeMaker already does<br>
that. And it does it for *any* vm flavour (we are generating pharovm<br>
because that’s what we are using, but the builders for cog, stack and<br>
even interpreter are there, and working… bah the interpreter version<br>
needs &gt;&gt;some work).<br>
&nbsp; &gt;&gt;Nothing prevents you to copy the pharo flavour and adapt it as<br>
squeak flavour.<br>
&nbsp; &gt;&gt;Nothing prevents you to do the same for newspeak.<br>
<br>
&nbsp; &gt;&gt;cheers,<br>
&nbsp; &gt;&gt;Esteban<br>
<br>
&nbsp; &gt;&gt;ps: Thanks Dave for noticing :)<br>
<br></div>
I did not know that project existed; &nbsp;of course I will start with that<br>
and with the existing Interpreter stuff Dave mentioned.<br>
<br>
Its is refreshing to know my instincts on how to approach the project<br>
where correct! Heck, we even came up with the same name for it!<br>
</blockquote>
<br>
Just wanted to mention that at 3DICC we are in the process of moving over to the Pharo build system for our client side (OSX and Windows) VMs.<br>
<br>
Just a reflection: It was quite easy to get started, finding a proper place to add 3DICC subclasses, adding in methods for our plugins etc. I got distracted by other things but now I am picking up our OSX build again so soon we should be using it for real.<br>




<br>
And also, it builds fine with clang! Thanks Esteban :)<br>
<br>
regards, Göran<br></blockquote><div><br></div><div>BEWARE: it builds fine, but the resulting VM behaves weirdly : see<br><a href="https://pharo.fogbugz.com/f/cases/11130/Special-byte-code-sequences-mess-up-the-stack-of-VM" target="_blank">https://pharo.fogbugz.com/f/cases/11130/Special-byte-code-sequences-mess-up-the-stack-of-VM</a> <br>


</div></div></div></div></blockquote><div><br></div><div>that’s a real strange case, that does not happens all the time (in fact, that’s one of the problems we have: it is hard to have a reproducible case),&nbsp;</div><br></div>


</div></blockquote><div><br>For me, the ssnippet from Stephan Eggermont <span><span></span></span>works reliably well<br>(I mean allways fails in official 3.0 distribution for MacOSX )<br><br>1 to: 1000 do: [ :i |<br>

&nbsp; &nbsp; &nbsp; &nbsp; | string |<br>
&nbsp; &nbsp; &nbsp; &nbsp; Transcript show: 'Iteration '; show: i; cr.<br>
&nbsp; &nbsp; &nbsp; &nbsp; 1 timesRepeat: [ <br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (string := String new: 1000 withAll: $a)<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; reversed.<br>
&nbsp; &nbsp; &nbsp; &nbsp; ].<br>
&nbsp; &nbsp; ].<br>&nbsp;<br></div>When Transcript is opened, I never reached iteration 1000 on my mac with official VM.<br>There's always an Integer that does not understand reversed in my way.<br></div></div></div></blockquote><div>

<br></div><div>Hence to get a rep[roducible case, that you could even look at in the Simulator, merely evaluate</div><div><br></div><div>Smalltalk snapshot: true andQuit: true.</div><div>1 to: 1000 do: [ :i |<br>&nbsp; &nbsp; &nbsp; &nbsp; | string |<br>

&nbsp; &nbsp; &nbsp; &nbsp; Transcript show: 'Iteration '; show: i; cr.<br>&nbsp; &nbsp; &nbsp; &nbsp; 1 timesRepeat: [&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (string := String new: 1000 withAll: $a)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; reversed.<br>&nbsp; &nbsp; &nbsp; &nbsp; ].<br>&nbsp; &nbsp; ].<br></div><div><br></div>

<div>and when you start-up the image it should crash with no user intervention. &nbsp;Voila, a reproducible case...</div><div><br></div></div></div></div></blockquote><div><br></div><div>If the problem is the compiler, or a compielr flag, can the simulator find the problem?<br>
</div><div>My understanding is that the simulator is going to emulate slang, and eventually jitted code.<br></div><div>But the slang is AFAICT correct (with another compiler/flags the problem vanishes)...<br></div></div></div></div></div></blockquote><div><br></div><div>Ah, you're probably right. &nbsp;That said, I did find and fix a register usage bug in the simulator recently that affected the store check machine code in Sour but not in classic ObjectMemory. &nbsp;I still think it's a) worth-while trying to get it to crash from start-up without user input (for repeatability) and b) running it in the simulator just to check. &nbsp;It at least tells you whether the bug is in VM code or in the way it's compiled.</div><br style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); "><span style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">Eliot (phone)</span><div><span style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469);"><br></span><blockquote type="cite"><div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div>
Nicolas<br></div><div>&nbsp;<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">


<div style="word-wrap:break-word"><div><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>
<br></div><div>Either we are back to disecting correct set of gcc/clang flags<br></div><div>Or we shall revert to an older gcc (4.2.1 works for me OSX 10.6.8 Xcode 3.2.6)<br><br></div><div>Nicolas<br></div></div><br></div>



</div>
</blockquote></div><br></div><br></blockquote></div><br></div></div>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>best,<div>Eliot</div>
</div></div>
<br></blockquote></div><br></div></div>
</div></blockquote></div></body></html>