libycxx
Contents

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

Pairall areasC++20-era areasall areas, style-normalisedC++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 STL0.104
38 areas
0.124
10 areas
0.096
38 areas
0.137
10 areas
libycxx – C++03 fork0.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 STL0.039
38 areas
0.056
10 areas
0.086
38 areas
0.124
10 areas
libstdc++ – C++03 fork0.053
29 areas
0.000
1 areas
0.128
29 areas
0.000
1 areas
libc++ – MSVC STL0.071
37 areas
0.126
9 areas
0.086
37 areas
0.161
9 areas
libc++ – C++03 fork0.566
29 areas
0.215
1 areas
0.600
29 areas
0.227
1 areas
MSVC STL – C++03 fork0.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 STL1.46×0.98×0.67×0.78×

k-gram Dice, structural

Pairall areasC++20-era areasall areas, style-normalisedC++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 STL0.025
38 areas
0.034
10 areas
0.038
38 areas
0.057
10 areas
libycxx – C++03 fork0.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 STL0.015
38 areas
0.042
10 areas
0.044
38 areas
0.082
10 areas
libstdc++ – C++03 fork0.018
30 areas
0.000
1 areas
0.044
30 areas
0.000
1 areas
libc++ – MSVC STL0.021
37 areas
0.070
9 areas
0.040
37 areas
0.075
9 areas
libc++ – C++03 fork0.508
30 areas
0.202
1 areas
0.505
30 areas
0.219
1 areas
MSVC STL – C++03 fork0.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 STL0.70×0.49×0.57×0.70×

k-gram Dice, lexical

Pairall areasC++20-era areasall areas, style-normalisedC++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 STL0.040
38 areas
0.072
10 areas
0.019
38 areas
0.037
10 areas
libycxx – C++03 fork0.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 STL0.026
38 areas
0.081
10 areas
0.015
38 areas
0.034
10 areas
libstdc++ – C++03 fork0.040
30 areas
0.021
1 areas
0.049
30 areas
0.044
1 areas
libc++ – MSVC STL0.039
37 areas
0.116
9 areas
0.017
37 areas
0.043
9 areas
libc++ – C++03 fork0.577
30 areas
0.114
1 areas
0.570
30 areas
0.109
1 areas
MSVC STL – C++03 fork0.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 STL0.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

libycxxlibstdc++libc++MSVC STLC++03 fork
libycxx—0.0960.046–0.185 · 10 areas0.1960.110–0.248 · 9 areas0.1240.037–0.205 · 10 areas0.0000.000–0.000 · 1 areas
libstdc++0.0960.046–0.185 · 10 areas—0.0920.068–0.136 · 9 areas0.0560.025–0.107 · 10 areas0.0000.000–0.000 · 1 areas
libc++0.1960.110–0.248 · 9 areas0.0920.068–0.136 · 9 areas—0.1260.068–0.211 · 9 areas0.2150.215–0.215 · 1 areas
MSVC STL0.1240.037–0.205 · 10 areas0.0560.025–0.107 · 10 areas0.1260.068–0.211 · 9 areas—0.0000.000–0.000 · 1 areas
C++03 fork0.0000.000–0.000 · 1 areas0.0000.000–0.000 · 1 areas0.2150.215–0.215 · 1 areas0.0000.000–0.000 · 1 areas—

k-gram Dice, structural · C++20-era areas

libycxxlibstdc++libc++MSVC STLC++03 fork
libycxx—0.0400.010–0.085 · 10 areas0.0490.032–0.102 · 9 areas0.0340.010–0.070 · 10 areas0.0000.000–0.000 · 1 areas
libstdc++0.0400.010–0.085 · 10 areas—0.0570.029–0.092 · 9 areas0.0420.003–0.052 · 10 areas0.0000.000–0.000 · 1 areas
libc++0.0490.032–0.102 · 9 areas0.0570.029–0.092 · 9 areas—0.0700.016–0.086 · 9 areas0.2020.202–0.202 · 1 areas
MSVC STL0.0340.010–0.070 · 10 areas0.0420.003–0.052 · 10 areas0.0700.016–0.086 · 9 areas—0.0000.000–0.000 · 1 areas
C++03 fork0.0000.000–0.000 · 1 areas0.0000.000–0.000 · 1 areas0.2020.202–0.202 · 1 areas0.0000.000–0.000 · 1 areas—

k-gram Dice, lexical · C++20-era areas

libycxxlibstdc++libc++MSVC STLC++03 fork
libycxx—0.1010.040–0.165 · 10 areas0.1270.048–0.183 · 9 areas0.0720.035–0.123 · 10 areas0.0200.020–0.020 · 1 areas
libstdc++0.1010.040–0.165 · 10 areas—0.1280.057–0.170 · 9 areas0.0810.037–0.101 · 10 areas0.0210.021–0.021 · 1 areas
libc++0.1270.048–0.183 · 9 areas0.1280.057–0.170 · 9 areas—0.1160.038–0.147 · 9 areas0.1140.114–0.114 · 1 areas
MSVC STL0.0720.035–0.123 · 10 areas0.0810.037–0.101 · 10 areas0.1160.038–0.147 · 9 areas—0.0000.000–0.000 · 1 areas
C++03 fork0.0200.020–0.020 · 1 areas0.0210.021–0.021 · 1 areas0.1140.114–0.114 · 1 areas0.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

libycxxlibstdc++libc++MSVC STLC++03 fork
libycxx—0.1230.081–0.205 · 42 areas0.1300.092–0.208 · 40 areas0.0960.057–0.142 · 38 areas0.0800.025–0.136 · 29 areas
libstdc++0.1230.081–0.205 · 42 areas—0.1430.103–0.192 · 40 areas0.0860.052–0.128 · 38 areas0.1280.066–0.156 · 29 areas
libc++0.1300.092–0.208 · 40 areas0.1430.103–0.192 · 40 areas—0.0860.061–0.156 · 37 areas0.6000.446–0.760 · 29 areas
MSVC STL0.0960.057–0.142 · 38 areas0.0860.052–0.128 · 38 areas0.0860.061–0.156 · 37 areas—0.0650.036–0.096 · 29 areas
C++03 fork0.0800.025–0.136 · 29 areas0.1280.066–0.156 · 29 areas0.6000.446–0.760 · 29 areas0.0650.036–0.096 · 29 areas—

k-gram Dice, structural · all areas, style-normalised

libycxxlibstdc++libc++MSVC STLC++03 fork
libycxx—0.0420.025–0.082 · 42 areas0.0540.037–0.093 · 40 areas0.0380.029–0.059 · 38 areas0.0300.015–0.053 · 30 areas
libstdc++0.0420.025–0.082 · 42 areas—0.0660.037–0.087 · 40 areas0.0440.026–0.067 · 38 areas0.0440.025–0.064 · 30 areas
libc++0.0540.037–0.093 · 40 areas0.0660.037–0.087 · 40 areas—0.0400.027–0.066 · 37 areas0.5050.350–0.698 · 30 areas
MSVC STL0.0380.029–0.059 · 38 areas0.0440.026–0.067 · 38 areas0.0400.027–0.066 · 37 areas—0.0270.013–0.037 · 30 areas
C++03 fork0.0300.015–0.053 · 30 areas0.0440.025–0.064 · 30 areas0.5050.350–0.698 · 30 areas0.0270.013–0.037 · 30 areas—

k-gram Dice, lexical · all areas, style-normalised

libycxxlibstdc++libc++MSVC STLC++03 fork
libycxx—0.0670.037–0.117 · 42 areas0.0770.041–0.121 · 40 areas0.0190.012–0.038 · 38 areas0.0470.028–0.075 · 30 areas
libstdc++0.0670.037–0.117 · 42 areas—0.0740.045–0.099 · 40 areas0.0150.009–0.032 · 38 areas0.0490.033–0.064 · 30 areas
libc++0.0770.041–0.121 · 40 areas0.0740.045–0.099 · 40 areas—0.0170.011–0.039 · 37 areas0.5700.420–0.775 · 30 areas
MSVC STL0.0190.012–0.038 · 38 areas0.0150.009–0.032 · 38 areas0.0170.011–0.039 · 37 areas—0.0110.005–0.016 · 30 areas
C++03 fork0.0470.028–0.075 · 30 areas0.0490.033–0.064 · 30 areas0.5700.420–0.775 · 30 areas0.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 similarityk-gram Dice, structuralk-gram Dice, lexical
libycxx – libstdc++0.1540.0640.094
libycxx – libc++0.1960.0750.127
libycxx – MSVC STL0.1420.0470.083
libycxx – Kokkos0.1110.0110.045
libstdc++ – libc++0.1040.0470.089
libstdc++ – MSVC STL0.0640.0460.075
libstdc++ – Kokkos0.0720.0050.026
libc++ – MSVC STL0.2050.0730.144
libc++ – Kokkos0.1190.0120.046
MSVC STL – Kokkos0.0630.0030.028
Pair (style-normalised)JPlag average similarityk-gram Dice, structuralk-gram Dice, lexical
libycxx – libstdc++0.2380.0980.078
libycxx – libc++0.1980.0970.131
libycxx – MSVC STL0.1590.0630.080
libycxx – Kokkos0.1030.0120.026
libstdc++ – libc++0.1640.0660.074
libstdc++ – MSVC STL0.1360.0740.064
libstdc++ – Kokkos0.0780.0090.022
libc++ – MSVC STL0.2270.0680.124
libc++ – Kokkos0.1130.0310.039
MSVC STL – Kokkos0.0820.0100.020

optional

Pair (raw)JPlag average similarityk-gram Dice, structuralk-gram Dice, lexical
libycxx – libstdc++0.0560.0290.126
libycxx – libc++0.1360.0550.167
libycxx – MSVC STL0.0360.0160.060
libycxx – Beman0.0220.0090.083
libstdc++ – libc++0.0650.0310.129
libstdc++ – MSVC STL0.0220.0180.073
libstdc++ – Beman0.0000.0100.078
libc++ – MSVC STL0.0980.0540.116
libc++ – Beman0.0350.0070.068
MSVC STL – Beman0.0380.0040.029
Pair (style-normalised)JPlag average similarityk-gram Dice, structuralk-gram Dice, lexical
libycxx – libstdc++0.2200.0710.159
libycxx – libc++0.1910.0450.058
libycxx – MSVC STL0.0570.0200.007
libycxx – Beman0.0370.0360.023
libstdc++ – libc++0.2160.0810.065
libstdc++ – MSVC STL0.1140.0650.013
libstdc++ – Beman0.0520.0320.030
libc++ – MSVC STL0.1190.0670.016
libc++ – Beman0.0380.0320.016
MSVC STL – Beman0.0410.0220.006

inplace_vector

Pair (raw)JPlag average similarityk-gram Dice, structuralk-gram Dice, lexical
libycxx – libstdc++0.1520.0290.106
libycxx – Beman0.0930.0160.065
libstdc++ – Beman0.0830.0190.069
Pair (style-normalised)JPlag average similarityk-gram Dice, structuralk-gram Dice, lexical
libycxx – libstdc++0.2060.0420.108
libycxx – Beman0.1050.0210.041
libstdc++ – Beman0.1000.0210.046