4 ms·
>So far as I know, you literally cannot implement a language with mutability on the VM. Elixir allows reassignment, of course, in the end, it uses different "E
by mapcars 9y ago
>So far as I know, you literally cannot implement a language with mutability on the VM.
Elixir allows reassignment, of course, in the end, it uses different "Erlang" variables, but the language abstracts it.
- macintux 9y agoChanging an alias isn't the kind of mutability that would allow high performance, though.
- masklinn 9y agoThat is not mutability.
- erikpukinskis 9y agoIt is though. A mutable state layer written on an immutable backend still has all the pitfalls of a native mutable data structure.
- syeaj 9y agoTake the context into consideration: this whole thread is about performance and the comment on mutability was speaking of mutability in place, because that matters for performance.
- masklinn 9y ago> It is though. No. That can trivially be inferred from SSA being a thing, mutable bindings can trivially and automatically be converted to immutable ones.