libycxx was written by AI agents whose models were trained on public code that likely includes these libraries, whose licences carry obligations; this analysis is the evidence of how close libycxx is to them. Why this exists.
Similarity analysis · style control
Style control
libycxx's JPlag medians with libc++ and the MSVC STL are higher than the established libraries' medians with each other, while the identifier-preserving k-gram metric shows little elevation. This page tests whether that is shared modern idiom and surface style rather than shared content, with three controls applied to every pair alike.
Era-restricted areas. Components every library wrote fresh for C++20 or later (ranges, mdspan, flat containers, format, expected, span, concepts and comparisons, bit, stop_token, generator), restricted to those files. If modern idiom drives the elevation, the established pairs rise toward libycxx's level there. Areas with shared lineage or forced content stay out: charconv (Ryu), the parallel algorithms (PSTL), text_encoding (IANA data).
Style normalisation. The comparison is repeated with what is style rather than content removed from every library alike: the specifiers constexpr, consteval, constinit, inline and explicit, noexcept and its condition, typename (and class in a template parameter list), and every qualification (namespace and class qualifiers, a leading ::, this->), on top of the usual removal of comments, configuration macros and attributes.
Independent modern implementations. The same components written in modern C++ outside the standard libraries: the Beman project's optional and inplace_vector, and the Kokkos mdspan reference implementation. Their similarity to the libraries is the "same idiom, different author" baseline. libc++'s mdspan derives from the Kokkos implementation, so that pair is derived, not independent.
Every pair, before and after
Median over areas. "Elevation" is libycxx's median with that library divided by the largest median among the three established pairs under the same condition.
JPlag average similarity
| Pair | all areas | C++20-era areas | all areas, style-normalised | C++20-era areas, style-normalised |
|---|---|---|---|---|
| libycxx – libstdc++ | 0.071 42 areas | 0.096 10 areas | 0.123 42 areas | 0.225 10 areas |
| libycxx – libc++ | 0.120 40 areas | 0.196 9 areas | 0.130 40 areas | 0.198 9 areas |
| libycxx – MSVC STL | 0.104 38 areas | 0.124 10 areas | 0.096 38 areas | 0.137 10 areas |
| libycxx – C++03 fork | 0.075 29 areas | 0.000 1 areas | 0.080 29 areas | 0.000 1 areas |
| libstdc++ – libc++ | 0.065 40 areas | 0.092 9 areas | 0.143 40 areas | 0.176 9 areas |
| libstdc++ – MSVC STL | 0.039 38 areas | 0.056 10 areas | 0.086 38 areas | 0.124 10 areas |
| libstdc++ – C++03 fork | 0.053 29 areas | 0.000 1 areas | 0.128 29 areas | 0.000 1 areas |
| libc++ – MSVC STL | 0.071 37 areas | 0.126 9 areas | 0.086 37 areas | 0.161 9 areas |
| libc++ – C++03 fork | 0.566 29 areas | 0.215 1 areas | 0.600 29 areas | 0.227 1 areas |
| MSVC STL – C++03 fork | 0.045 29 areas | 0.000 1 areas | 0.065 29 areas | 0.000 1 areas |
| elevation, libycxx – libstdc++ | 1.00× | 0.76× | 0.86× | 1.28× |
| elevation, libycxx – libc++ | 1.69× | 1.56× | 0.91× | 1.12× |
| elevation, libycxx – MSVC STL | 1.46× | 0.98× | 0.67× | 0.78× |
k-gram Dice, structural
| Pair | all areas | C++20-era areas | all areas, style-normalised | C++20-era areas, style-normalised |
|---|---|---|---|---|
| libycxx – libstdc++ | 0.020 42 areas | 0.040 10 areas | 0.042 42 areas | 0.094 10 areas |
| libycxx – libc++ | 0.035 40 areas | 0.049 9 areas | 0.054 40 areas | 0.097 9 areas |
| libycxx – MSVC STL | 0.025 38 areas | 0.034 10 areas | 0.038 38 areas | 0.057 10 areas |
| libycxx – C++03 fork | 0.012 30 areas | 0.000 1 areas | 0.030 30 areas | 0.000 1 areas |
| libstdc++ – libc++ | 0.035 40 areas | 0.057 9 areas | 0.066 40 areas | 0.066 9 areas |
| libstdc++ – MSVC STL | 0.015 38 areas | 0.042 10 areas | 0.044 38 areas | 0.082 10 areas |
| libstdc++ – C++03 fork | 0.018 30 areas | 0.000 1 areas | 0.044 30 areas | 0.000 1 areas |
| libc++ – MSVC STL | 0.021 37 areas | 0.070 9 areas | 0.040 37 areas | 0.075 9 areas |
| libc++ – C++03 fork | 0.508 30 areas | 0.202 1 areas | 0.505 30 areas | 0.219 1 areas |
| MSVC STL – C++03 fork | 0.012 30 areas | 0.000 1 areas | 0.027 30 areas | 0.000 1 areas |
| elevation, libycxx – libstdc++ | 0.57× | 0.58× | 0.64× | 1.15× |
| elevation, libycxx – libc++ | 1.00× | 0.70× | 0.81× | 1.18× |
| elevation, libycxx – MSVC STL | 0.70× | 0.49× | 0.57× | 0.70× |
k-gram Dice, lexical
| Pair | all areas | C++20-era areas | all areas, style-normalised | C++20-era areas, style-normalised |
|---|---|---|---|---|
| libycxx – libstdc++ | 0.057 42 areas | 0.101 10 areas | 0.067 42 areas | 0.091 10 areas |
| libycxx – libc++ | 0.073 40 areas | 0.127 9 areas | 0.077 40 areas | 0.131 9 areas |
| libycxx – MSVC STL | 0.040 38 areas | 0.072 10 areas | 0.019 38 areas | 0.037 10 areas |
| libycxx – C++03 fork | 0.041 30 areas | 0.020 1 areas | 0.047 30 areas | 0.024 1 areas |
| libstdc++ – libc++ | 0.066 40 areas | 0.128 9 areas | 0.074 40 areas | 0.111 9 areas |
| libstdc++ – MSVC STL | 0.026 38 areas | 0.081 10 areas | 0.015 38 areas | 0.034 10 areas |
| libstdc++ – C++03 fork | 0.040 30 areas | 0.021 1 areas | 0.049 30 areas | 0.044 1 areas |
| libc++ – MSVC STL | 0.039 37 areas | 0.116 9 areas | 0.017 37 areas | 0.043 9 areas |
| libc++ – C++03 fork | 0.577 30 areas | 0.114 1 areas | 0.570 30 areas | 0.109 1 areas |
| MSVC STL – C++03 fork | 0.019 30 areas | 0.000 1 areas | 0.011 30 areas | 0.000 1 areas |
| elevation, libycxx – libstdc++ | 0.86× | 0.79× | 0.90× | 0.81× |
| elevation, libycxx – libc++ | 1.11× | 0.99× | 1.04× | 1.18× |
| elevation, libycxx – MSVC STL | 0.61× | 0.56× | 0.26× | 0.34× |
Era-restricted areas
Matrices over the C++20-era areas only, unnormalised. The C++03 fork has none of these components, so its pairs are empty.
Areas: ranges, mdspan, flat, format, expected, span, concepts_compare, bit, stop_token, generator.
JPlag average similarity · C++20-era areas
| libycxx | libstdc++ | libc++ | MSVC STL | C++03 fork | |
|---|---|---|---|---|---|
| libycxx | — | 0.0960.046–0.185 · 10 areas | 0.1960.110–0.248 · 9 areas | 0.1240.037–0.205 · 10 areas | 0.0000.000–0.000 · 1 areas |
| libstdc++ | 0.0960.046–0.185 · 10 areas | — | 0.0920.068–0.136 · 9 areas | 0.0560.025–0.107 · 10 areas | 0.0000.000–0.000 · 1 areas |
| libc++ | 0.1960.110–0.248 · 9 areas | 0.0920.068–0.136 · 9 areas | — | 0.1260.068–0.211 · 9 areas | 0.2150.215–0.215 · 1 areas |
| MSVC STL | 0.1240.037–0.205 · 10 areas | 0.0560.025–0.107 · 10 areas | 0.1260.068–0.211 · 9 areas | — | 0.0000.000–0.000 · 1 areas |
| C++03 fork | 0.0000.000–0.000 · 1 areas | 0.0000.000–0.000 · 1 areas | 0.2150.215–0.215 · 1 areas | 0.0000.000–0.000 · 1 areas | — |
k-gram Dice, structural · C++20-era areas
| libycxx | libstdc++ | libc++ | MSVC STL | C++03 fork | |
|---|---|---|---|---|---|
| libycxx | — | 0.0400.010–0.085 · 10 areas | 0.0490.032–0.102 · 9 areas | 0.0340.010–0.070 · 10 areas | 0.0000.000–0.000 · 1 areas |
| libstdc++ | 0.0400.010–0.085 · 10 areas | — | 0.0570.029–0.092 · 9 areas | 0.0420.003–0.052 · 10 areas | 0.0000.000–0.000 · 1 areas |
| libc++ | 0.0490.032–0.102 · 9 areas | 0.0570.029–0.092 · 9 areas | — | 0.0700.016–0.086 · 9 areas | 0.2020.202–0.202 · 1 areas |
| MSVC STL | 0.0340.010–0.070 · 10 areas | 0.0420.003–0.052 · 10 areas | 0.0700.016–0.086 · 9 areas | — | 0.0000.000–0.000 · 1 areas |
| C++03 fork | 0.0000.000–0.000 · 1 areas | 0.0000.000–0.000 · 1 areas | 0.2020.202–0.202 · 1 areas | 0.0000.000–0.000 · 1 areas | — |
k-gram Dice, lexical · C++20-era areas
| libycxx | libstdc++ | libc++ | MSVC STL | C++03 fork | |
|---|---|---|---|---|---|
| libycxx | — | 0.1010.040–0.165 · 10 areas | 0.1270.048–0.183 · 9 areas | 0.0720.035–0.123 · 10 areas | 0.0200.020–0.020 · 1 areas |
| libstdc++ | 0.1010.040–0.165 · 10 areas | — | 0.1280.057–0.170 · 9 areas | 0.0810.037–0.101 · 10 areas | 0.0210.021–0.021 · 1 areas |
| libc++ | 0.1270.048–0.183 · 9 areas | 0.1280.057–0.170 · 9 areas | — | 0.1160.038–0.147 · 9 areas | 0.1140.114–0.114 · 1 areas |
| MSVC STL | 0.0720.035–0.123 · 10 areas | 0.0810.037–0.101 · 10 areas | 0.1160.038–0.147 · 9 areas | — | 0.0000.000–0.000 · 1 areas |
| C++03 fork | 0.0200.020–0.020 · 1 areas | 0.0210.021–0.021 · 1 areas | 0.1140.114–0.114 · 1 areas | 0.0000.000–0.000 · 1 areas | — |
Style normalisation
Matrices over all areas with style normalisation, applied identically to every library.
JPlag average similarity · all areas, style-normalised
| libycxx | libstdc++ | libc++ | MSVC STL | C++03 fork | |
|---|---|---|---|---|---|
| libycxx | — | 0.1230.081–0.205 · 42 areas | 0.1300.092–0.208 · 40 areas | 0.0960.057–0.142 · 38 areas | 0.0800.025–0.136 · 29 areas |
| libstdc++ | 0.1230.081–0.205 · 42 areas | — | 0.1430.103–0.192 · 40 areas | 0.0860.052–0.128 · 38 areas | 0.1280.066–0.156 · 29 areas |
| libc++ | 0.1300.092–0.208 · 40 areas | 0.1430.103–0.192 · 40 areas | — | 0.0860.061–0.156 · 37 areas | 0.6000.446–0.760 · 29 areas |
| MSVC STL | 0.0960.057–0.142 · 38 areas | 0.0860.052–0.128 · 38 areas | 0.0860.061–0.156 · 37 areas | — | 0.0650.036–0.096 · 29 areas |
| C++03 fork | 0.0800.025–0.136 · 29 areas | 0.1280.066–0.156 · 29 areas | 0.6000.446–0.760 · 29 areas | 0.0650.036–0.096 · 29 areas | — |
k-gram Dice, structural · all areas, style-normalised
| libycxx | libstdc++ | libc++ | MSVC STL | C++03 fork | |
|---|---|---|---|---|---|
| libycxx | — | 0.0420.025–0.082 · 42 areas | 0.0540.037–0.093 · 40 areas | 0.0380.029–0.059 · 38 areas | 0.0300.015–0.053 · 30 areas |
| libstdc++ | 0.0420.025–0.082 · 42 areas | — | 0.0660.037–0.087 · 40 areas | 0.0440.026–0.067 · 38 areas | 0.0440.025–0.064 · 30 areas |
| libc++ | 0.0540.037–0.093 · 40 areas | 0.0660.037–0.087 · 40 areas | — | 0.0400.027–0.066 · 37 areas | 0.5050.350–0.698 · 30 areas |
| MSVC STL | 0.0380.029–0.059 · 38 areas | 0.0440.026–0.067 · 38 areas | 0.0400.027–0.066 · 37 areas | — | 0.0270.013–0.037 · 30 areas |
| C++03 fork | 0.0300.015–0.053 · 30 areas | 0.0440.025–0.064 · 30 areas | 0.5050.350–0.698 · 30 areas | 0.0270.013–0.037 · 30 areas | — |
k-gram Dice, lexical · all areas, style-normalised
| libycxx | libstdc++ | libc++ | MSVC STL | C++03 fork | |
|---|---|---|---|---|---|
| libycxx | — | 0.0670.037–0.117 · 42 areas | 0.0770.041–0.121 · 40 areas | 0.0190.012–0.038 · 38 areas | 0.0470.028–0.075 · 30 areas |
| libstdc++ | 0.0670.037–0.117 · 42 areas | — | 0.0740.045–0.099 · 40 areas | 0.0150.009–0.032 · 38 areas | 0.0490.033–0.064 · 30 areas |
| libc++ | 0.0770.041–0.121 · 40 areas | 0.0740.045–0.099 · 40 areas | — | 0.0170.011–0.039 · 37 areas | 0.5700.420–0.775 · 30 areas |
| MSVC STL | 0.0190.012–0.038 · 38 areas | 0.0150.009–0.032 · 38 areas | 0.0170.011–0.039 · 37 areas | — | 0.0110.005–0.016 · 30 areas |
| C++03 fork | 0.0470.028–0.075 · 30 areas | 0.0490.033–0.064 · 30 areas | 0.5700.420–0.775 · 30 areas | 0.0110.005–0.016 · 30 areas | — |
Independent modern implementations
One table per component: every pair of the libraries that implement it, raw and style-normalised. libc++ with Kokkos is a derived pair.
mdspan
| Pair (raw) | JPlag average similarity | k-gram Dice, structural | k-gram Dice, lexical |
|---|---|---|---|
| libycxx – libstdc++ | 0.154 | 0.064 | 0.094 |
| libycxx – libc++ | 0.196 | 0.075 | 0.127 |
| libycxx – MSVC STL | 0.142 | 0.047 | 0.083 |
| libycxx – Kokkos | 0.111 | 0.011 | 0.045 |
| libstdc++ – libc++ | 0.104 | 0.047 | 0.089 |
| libstdc++ – MSVC STL | 0.064 | 0.046 | 0.075 |
| libstdc++ – Kokkos | 0.072 | 0.005 | 0.026 |
| libc++ – MSVC STL | 0.205 | 0.073 | 0.144 |
| libc++ – Kokkos | 0.119 | 0.012 | 0.046 |
| MSVC STL – Kokkos | 0.063 | 0.003 | 0.028 |
| Pair (style-normalised) | JPlag average similarity | k-gram Dice, structural | k-gram Dice, lexical |
|---|---|---|---|
| libycxx – libstdc++ | 0.238 | 0.098 | 0.078 |
| libycxx – libc++ | 0.198 | 0.097 | 0.131 |
| libycxx – MSVC STL | 0.159 | 0.063 | 0.080 |
| libycxx – Kokkos | 0.103 | 0.012 | 0.026 |
| libstdc++ – libc++ | 0.164 | 0.066 | 0.074 |
| libstdc++ – MSVC STL | 0.136 | 0.074 | 0.064 |
| libstdc++ – Kokkos | 0.078 | 0.009 | 0.022 |
| libc++ – MSVC STL | 0.227 | 0.068 | 0.124 |
| libc++ – Kokkos | 0.113 | 0.031 | 0.039 |
| MSVC STL – Kokkos | 0.082 | 0.010 | 0.020 |
optional
| Pair (raw) | JPlag average similarity | k-gram Dice, structural | k-gram Dice, lexical |
|---|---|---|---|
| libycxx – libstdc++ | 0.056 | 0.029 | 0.126 |
| libycxx – libc++ | 0.136 | 0.055 | 0.167 |
| libycxx – MSVC STL | 0.036 | 0.016 | 0.060 |
| libycxx – Beman | 0.022 | 0.009 | 0.083 |
| libstdc++ – libc++ | 0.065 | 0.031 | 0.129 |
| libstdc++ – MSVC STL | 0.022 | 0.018 | 0.073 |
| libstdc++ – Beman | 0.000 | 0.010 | 0.078 |
| libc++ – MSVC STL | 0.098 | 0.054 | 0.116 |
| libc++ – Beman | 0.035 | 0.007 | 0.068 |
| MSVC STL – Beman | 0.038 | 0.004 | 0.029 |
| Pair (style-normalised) | JPlag average similarity | k-gram Dice, structural | k-gram Dice, lexical |
|---|---|---|---|
| libycxx – libstdc++ | 0.220 | 0.071 | 0.159 |
| libycxx – libc++ | 0.191 | 0.045 | 0.058 |
| libycxx – MSVC STL | 0.057 | 0.020 | 0.007 |
| libycxx – Beman | 0.037 | 0.036 | 0.023 |
| libstdc++ – libc++ | 0.216 | 0.081 | 0.065 |
| libstdc++ – MSVC STL | 0.114 | 0.065 | 0.013 |
| libstdc++ – Beman | 0.052 | 0.032 | 0.030 |
| libc++ – MSVC STL | 0.119 | 0.067 | 0.016 |
| libc++ – Beman | 0.038 | 0.032 | 0.016 |
| MSVC STL – Beman | 0.041 | 0.022 | 0.006 |
inplace_vector
| Pair (raw) | JPlag average similarity | k-gram Dice, structural | k-gram Dice, lexical |
|---|---|---|---|
| libycxx – libstdc++ | 0.152 | 0.029 | 0.106 |
| libycxx – Beman | 0.093 | 0.016 | 0.065 |
| libstdc++ – Beman | 0.083 | 0.019 | 0.069 |
| Pair (style-normalised) | JPlag average similarity | k-gram Dice, structural | k-gram Dice, lexical |
|---|---|---|---|
| libycxx – libstdc++ | 0.206 | 0.042 | 0.108 |
| libycxx – Beman | 0.105 | 0.021 | 0.041 |
| libstdc++ – Beman | 0.100 | 0.021 | 0.046 |