What memory model should Rust use?
The shallowness of rusts correctness has pretty much killed my interest in it.<p>Much of its purported virtue seems to be mostly lore and myth, and doesn&#x27;t keep its promises under close inspection and scrutiny.<p>For example the &quot;Rustonomicon&quot; is only half finished and doesn&#x27;t have that much real insight that couldn&#x27;t be gained from a lot of basic-ish rust tutorials.<p>The memory model is not propery defined and only kinda sorta borrowed from C++ as the article mentions.<p>The borrow checker has only been formally specified and veryfied in a much simplified form and only very recently [2] ,with the actual model &quot;just being what the borrow checker implementation does&quot;.<p>Having a fancy datalog based borrow checker is cool, but I&#x27;d much rather have a formal specifiation of the semantics.<p>Rust took the big bang approach of building everything at once, implementing stuff first without any formal semantics and just floating on an iceberg of implementation definedness, with endless discussions on how things COULD be formalized.<p>That&#x27;s pretty much the antithesis to rusts safety philosophy; it&#x27;s teaching water but drinking barrels of wine.
It wants your code to be well defined and follow its rules, but its rules are completely arbitrary, not properly defined nor written down.<p>I wish instead they had just started with a small borrow checked core language, and grown it from there, like described in Guy Steeles talk on &quot;growing a language&quot; [1].<p>I feel that Zig is doing a much better job in this regard, they have a tiny well thoughought language with a rigorous semantic description, and a good reference document.<p>I&#x27;m sure it would be much easier to add a borrow checker to the well-defined-ness and correctness of Zig, than to make Rust well defined and correct.<p>Super friendly community though.
Who knows, maybe someday the language that people think rust is, will crystalize from that community through their collective effort, like a self fulfilling prophecy.<p>1. <a href="https:&#x2F;&#x2F;m.youtube.com&#x2F;watch?v=lw6TaiXzHAE" rel="nofollow">https:&#x2F;&#x2F;m.youtube.com&#x2F;watch?v=lw6TaiXzHAE</a><p>2. <a href="https:&#x2F;&#x2F;arxiv.org&#x2F;pdf&#x2F;1903.00982.pdf" rel="nofollow">https:&#x2F;&#x2F;arxiv.org&#x2F;pdf&#x2F;1903.00982.pdf</a>