<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    That's great!<br>
    <br>
    Thanks,<br>
    On 11/5/2022 2:53 AM, Alan Dao via Cuis-dev wrote:
    <blockquote
cite="mid:CA+c6hdjKAG0yhD+3Huxp+UpEXAkK-_wevjHFSqd_1qOfzT18cg@mail.gmail.com"
      type="cite">
      <div dir="ltr">Looks like you were right, I reported it to vm-dev
        yesterday and Eliot Miranda pushed a fix for it today.
        <div><br>
        </div>
        <div>Best,</div>
        <div>Alan</div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Thu, Nov 3, 2022 at 6:19 AM
          Juan Vuletich <<a moz-do-not-send="true"
            href="mailto:juan@cuis.st">juan@cuis.st</a>> wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin: 0px 0px 0px
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          <div bgcolor="#ffffff"> Hi Alan,<br>
            <br>
            On 11/3/2022 4:20 AM, Alan Dao via Cuis-dev wrote:
            <blockquote type="cite">
              <div dir="ltr">Hey all,
                <div><br>
                </div>
                <div>I've recently switched to an Arm64 Macbook. One of
                  the first things I did on it was launch the latest
                  base image of Cuis (6.0-5542). To my surprise, the
                  Arm64 CogSpur VM crashes when launching the base
                  image. However, the Stack VM successfully launches the
                  base image. I looked at the crash.dmp and saw that the
                  CogSpur crash was happening in <span style="color:
                    rgb(0, 0, 0); font-family: Menlo; font-size: 11px;">SystemDictionary>doMixedArithmetic</span>.
                  In the base image, this method is called with a False
                  value from <span style="color: rgb(0, 0, 0);
                    font-family: Menlo; font-size: 11px;">SystemDictionary>doStartUp</span>.</div>
                <div><br>
                </div>
                <div>I used the Stack VM to change the image such that <span
                    style="color: rgb(0, 0, 0); font-family: Menlo;
                    font-size: 11px;">SystemDictionary>doMixedArithmetic</span> is

                  called with a True value. After this, I was able to
                  successfully launch the MixedArithmetic image on my
                  Arm64 Macbook.</div>
              </div>
            </blockquote>
            <br>
            This looks like a VM bug. You can confirm this by using
            Squeak or Pharo, and doing `Smalltalk doMixedArithmethic:
            false`. It should also crash. Same with the Cuis image you
            were able to start by setting it to true. If so, please
            report the bug in vm-dev: <a moz-do-not-send="true"
              href="http://lists.squeakfoundation.org/mailman/listinfo/vm-dev"
              target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/vm-dev</a><br>
            <br>
            <blockquote type="cite">
              <div dir="ltr">
                <div>Does anyone know why using mixed arithmetic isn't
                  the default? To my surprise, the base images for Pharo
                  and Squeak were able to launch without any
                  modifications, so I'm assuming they're by default
                  using mixed arithmetic.</div>
              </div>
            </blockquote>
            <br>
            The explanation is in the comment at #doMixedArithmetic.
            Please take a look. It is about letting the image (and not
            the VM) handle arguably decisions WRT conversions between
            number types. If you find it cryptic or have further
            questions, please ask here.<br>
            <br>
            <blockquote type="cite">
              <div dir="ltr">
                <div>I've attached my crash.dmp to this email for those
                  who're curious.</div>
                <div><br>
                </div>
                <div>Best,</div>
                <div>Alan</div>
              </div>
            </blockquote>
            <br>
            I'm pretty sure you are the first to exercise this corner of
            the VM. Please report in vm-dev. I'm sure they'll fix it.<br>
            <br>
            Thanks,<br>
            <pre cols="72">-- 
Juan Vuletich
<a moz-do-not-send="true" href="http://cuis.st" target="_blank">cuis.st</a>
<a moz-do-not-send="true" href="http://github.com/jvuletich" target="_blank">github.com/jvuletich</a>
<a moz-do-not-send="true" href="http://researchgate.net/profile/Juan-Vuletich" target="_blank">researchgate.net/profile/Juan-Vuletich</a>
<a moz-do-not-send="true" href="http://independent.academia.edu/JuanVuletich" target="_blank">independent.academia.edu/JuanVuletich</a>
<a moz-do-not-send="true" href="http://patents.justia.com/inventor/juan-manuel-vuletich" target="_blank">patents.justia.com/inventor/juan-manuel-vuletich</a>
<a moz-do-not-send="true" href="http://linkedin.com/in/juan-vuletich-75611b3" target="_blank">linkedin.com/in/juan-vuletich-75611b3</a>
<a moz-do-not-send="true" href="http://twitter.com/JuanVuletich" target="_blank">twitter.com/JuanVuletich</a></pre>
          </div>
        </blockquote>
      </div>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich</pre>
  </body>
</html>