3 ms·
the point of using swift is to be faster than Python. if your computations are using numpy and most of your time is spent in these computations, passing through
by make3 8y ago
the point of using swift is to be faster than Python. if your computations are using numpy and most of your time is spent in these computations, passing through the python interpreter every time, it's going to have performance similar Python
- make3 8y agoplus numpy is apparently 3x slower than pure simd optimized c++ with something like eigen. I was hoping to get something faster (than numpy, not eigen) with swift
- zapzupnz 8y ago> the point of using swift is to be faster than Python There are plenty of other compelling reasons to prefer Swift over Python such as its type system or its easy, somewhat native, integration with existing Swift, Objective-C, and C frameworks available for macOS, iOS, watchOS, and tvOS. Speed isn't the only driver, and I'm sure not it's not "the [only] point".
- make3 8y agono I meant for data science applications specifically, sorry