Swift 45%, Kotlin 86% β The Numbers Behind Language Bootstrapping
Did you know that Swift is written 45.3% in Swift and Kotlin is written 86.1% in Kotlin?
β No, and what?
That means Swift and Kotlin are bootstrapping themselves.
β Hmm, what do you mean by bootstrapping?
A language is bootstrapping when it can compile its own source code using a previous version of the languageβs binary.
β Ok, so Swift and Kotlin are partially bootstrapped. Are there any languages that are 100% bootstrapped?
There are languages with higher percentages of their own language code, but Iβd be careful claiming 100% bootstrappability β even if TypeScript shows 99% TypeScript β because language repos often include other tools alongside the compiler.
β Ok, can you list popular languages on GitHub and their bootstrap stats as of today?
Yes, here you go:
β’ Go β Go 89.5%, Assembly 5.5% β https://github.com/golang/go
β’ PHP β C 70.1%, PHP 27.6% β https://github.com/php/php-src
β’ Swift β C++ 46.6%, Swift 45.3% β https://github.com/swiftlang/swift
β’ V8 (JavaScript) β C++ 72.2%, JavaScript 25.6% β https://github.com/v8/v8
β’ OpenJDK β Java 73.9%, C++ 14.1% β https://github.com/openjdk/jdk
β’ CPython β Python 62.3%, C 35.8% β https://github.com/python/cpython
β’ Kotlin β Kotlin 86.1%, Java 5.5% β https://github.com/JetBrains/kotlin
β Super info, thanks. Can you email me when Swift and Kotlin increase their bootstrappability?
Yes, of course. Just subscribe, follow, and give it a like π to help others discover the post.



