In some cases reference counting can be less efficient than garbage collecting.
Baldur Norddahl

Both good points. Related to the issue of memory fragmentation, one thing I should have mentioned is that Rust gives you more control on memory layout than Swift does. So while default Rust stack allocates local variables and this may not be ideal for small devices, Rust allows the programmer to make these decisions more explicitly than Swift does. So for small or embedded devices where this kind of control is a plus, Rust may be a better choice.

Like what you read? Give Ryan Levick a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.