Apple rewrote the TrueType hinting interpreter from C to memory-safe Swift to improve security and performance, achieving a 13% speed increase and exact compatibility with the C implementation. The Swift interpreter's design and optimizations, such as using noncopyable structures and Span, demonstrate the language's ability to balance safety, ergonomics, and performance, making it suitable ...