Why is MLX built with C++ instead of Swift? #186
-
Since MLX is for Apple Silicon then why is it built with C++ instead of Swift? Swift is the native programming language for building macOS and iOS apps so it seems like Swift would be a better choice than C++. I know this repository provides a Swift API for MLX but why not just build it in Swift? Is it not possible to build a framework like MLX in Swift? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Certainly it could have been built with Swift. I think it has more to do with python integration and the skill sets of the developers of MLX core. A lot of Swift is built in C++, remember :-) |
Beta Was this translation helpful? Give feedback.
Certainly it could have been built with Swift. I think it has more to do with python integration and the skill sets of the developers of MLX core.
A lot of Swift is built in C++, remember :-)