3 ms·
Interesting, they seem to be switching to Swift soon.
by theturtletalks 2y ago
Interesting, they seem to be switching to Swift soon.
- dkga 2y agoNoted that as well. Could be a reflex of swift’s improved memory safety capabilities.
- pipeline_peak 2y agoWouldn’t that make it slower than if in C++?
- lukeh 2y agoSwift can be just as fast as C or C++. The danger, in my experience, is that it's not always clear what the performance implications of the language's many convenient abstractions are. (A random example, I recently improved one code path by over an order of magnitude by replacing some serialisation that used Codable with hand-rolled code. Still 100% Swift, just paid a lot of attention to avoiding RTTI and allocations.)
- deleted 2y ago[deleted]
- rixed 2y agoSwift had automatic memory management, so yes () (: Although anything can be made as slow as python yada yada)
- timbit42 2y agoA bit slower is good if it is safer from exploits than C and C++.
- ChocolateGod 2y agoSwift is underrated, it's a good alternative to C++ for those not interested in Rust.