Learning C++ to Contribute to the Swift Compiler The Swift compiler is written mostly in C++ , and this won’t change in the near future. You can extend the standard library using Swift, but if you want to contribute a new language feature or some optimization, you’ll need to write C++.