← Back to context

Comment by zelphirkalt

15 hours ago

But Rust's semantics make it less ergonomic to pass values and especially once you do any mutation, that code path is no longer trivially up for parallelization/concurrency. There one will have to lean into what Rust offers to make it safe again, which brings along more syntax. When one wants to pass values, one needs to implement clone or copy or something, and then explicitly clone or copy or so.

It is a tradeoff one can make, and it lends itself to high performance but it does come at a cost.