Comment by fmajid

Comment by fmajid 3 months ago

2 replies

Yes, Erlang's zero-sharing model is what I think Rust should have gone for in its concurrency model. Sadly too few people have even heard of it.

chubot 3 months ago

That would be an odd choice for a low-level language ... languages like C, C++, and Rust let you use whatever the OS has, and the OS has threads

A higher level language can be more opinionated, but a low level one shouldn't straight jacket you.

i.e. Rust can be used to IMPLEMENT an Erlang runtime

If you couldn't use threads, then you could not implement an Erlang runtime.

steveklabnik 3 months ago

Very early on, Rust was like this! But as the language changed over time, it because less appropriate.