This page compares the source lines of code (SLOC) of swiftlang/swift and JetBrains/kotlin using cached OctoCounts reports. Code size is not code quality: a larger count only means more source material, not a better or worse project.
As of 2026-08-26, swiftlang/swift contains 3,254,025 total lines (2,244,738 code) across 14,391 files, while JetBrains/kotlin contains 5,653,114 total lines (2,451,017 code) across 82,973 files as of 2026-08-26. swiftlang/swift and JetBrains/kotlin are similar in size by code lines. Code size is not code quality: a larger count only means more source material, not a better or worse project.
| Metric | swiftlang/swift | JetBrains/kotlin |
|---|---|---|
| Files | 14,391 | 82,973 |
| Total lines | 3,254,025 | 5,653,114 |
| Code lines | 2,244,738 | 2,451,017 |
| Comment lines | 677,704 | 2,454,437 |
| Blank lines | 331,583 | 747,660 |
| Languages counted | 12 | 12 |
Top languages in swiftlang/swift: C++ (38.9% of code), JSON (23.2% of code), Swift (17.7% of code). Top languages in JetBrains/kotlin: Kotlin (75.9% of code), Java (14.3% of code), JSON (2.4% of code). C++, JSON, Swift appear in both top language lists; C Header, Python appear only in swiftlang/swift's top languages; Kotlin, Java appear only in JetBrains/kotlin's top languages.
Methodology: both counts come from cached OctoCounts reports generated with tokei. swiftlang/swift was counted at ref main (commit e29d9d5660ed) on 2026-08-26; JetBrains/kotlin was counted at ref master (commit 3a578d6e27ad) on 2026-08-26. See the counting methodology for ignored directories and analysis options.
Evidence and next steps:
Note: code size is not code quality. OctoCounts only reports reproducible line counts and makes no claim that either project is better.
As of 2026-08-26, swiftlang/swift and JetBrains/kotlin are close in size: 2,244,738 vs 2,451,017 code lines, a difference of less than 15%. Neither clearly outsizes the other by this metric.
Not necessarily. SLOC measures size, not complexity, quality, or maintainability. A larger codebase can mean more features, more generated or vendored code, more verbose language idioms, or more tests — none of which imply the code is harder to work with. Use SLOC to gauge the scale of what you'd be reading or maintaining, not as a quality signal for swiftlang/swift, JetBrains/kotlin, or any repository.
Methodology: both counts come from cached OctoCounts reports generated with tokei. swiftlang/swift was counted at ref main (commit e29d9d5660ed) on 2026-08-26; JetBrains/kotlin was counted at ref master (commit 3a578d6e27ad) on 2026-08-26. See the counting methodology for ignored directories and analysis options.
Yes. This page shows the default branch for each repository. Use the interactive comparison tool to pick any public GitHub repository, branch, tag, or commit SHA for both sides and get a fresh side-by-side report.