3 ms·
No, google wrote a blog post about how they're moving their new code to safe languages. The vast majority of Google's code is in C/C++, and will be for the fore
by olliej 4y ago
No, google wrote a blog post about how they're moving their new code to safe languages. The vast majority of Google's code is in C/C++, and will be for the foreseeable future. The same is true for Apple - there's a huge amount of existing C/C++, and new code is increasingly being written in Swift.
- pjmlp 4y agoThat blog post was about Android, its use of Java, Kotlin and now Rust (since Android 12), mainly used to rewrite Bluetooth stack and the new virtualization framework in Android 13. Any NDK user painfully knows how castrating the whole experience is, to access anything that doesn't have to do with graphics or real time audio.
- Gigachad 4y agoThat's exactly what I said with "they now write"
- olliej 4y agoin that case you can look at the last series of years of WWDC with apple driving swift for developers, and swift's adoption by apple by increasing amounts of the OS. Which seems like the equivalent, only not in blog form.
- Gigachad 4y agoNot terribly familiar with Swift but my understanding was it was more an app programming language. Is Swift suitable for writing OS code?
- pjmlp 4y agoYes, that is even mentioned on its official documentation, a replacement for C, Objective-C and C++.
- AdamN 4y agoSwift is a very powerful and robust language. I would expect that they keep going further down the stack with it but the problem will always be, "is it worth investing in a language refactoring on an existing codebase?". I presume all but the lowest level (or server-side) new code is in Swift at Apple nowadays.