<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 26 March 2018 at 11:26, Chris Muller <span dir="ltr"><<a href="mailto:asqueaker@gmail.com" target="_blank">asqueaker@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sun, Mar 25, 2018 at 6:18 PM, Eliot Miranda <<a href="mailto:eliot.miranda@gmail.com">eliot.miranda@gmail.com</a>> wrote:<br>
> Hi All,<br>
<br>
Hi Eliot,<br>
<br>
Congratulations on the enhancement.  As developer of Magma, I'm<br>
interested in learning more about it as a possible alternative to the<br>
WriteBarrier.  How does it work?<br>
<br>
First, it might help me to understand what _your_ primary motivation<br>
for proposing to make various entire classes of objects read-only by<br>
default?  <br></blockquote><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
But my hope was that this capability would be provided with<br>
granularity at the object-level, not necessarily the class level.<br></blockquote><div><br></div><div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">I would presume an entire class is not made read-only by default,</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">just particular objects formed from literals at compile time.  </div> </div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">>     the VM now has support for read only objects, and the first logical<br>
> application is for literals, making boxed floats, strings, symbols, arrays<br>
> and byte arrays read-only.<br>
<br>
</span>Wow, Arrays and ByteArrays too?  Magma's core Buffer classes all use<br>
ByteArray's internally to represent and update their state.  Ouch!</blockquote><div> </div><div><br></div><div>cheers -ben </div><div><br></div><div><br></div></div></div></div>