Repository navigation
Parity
Bahasa / Language: English · Bahasa Indonesia
Identical page in five wikis: satusehat-integration (PHP), -node, -python, -go, -rust.
Halaman ini identik di lima wiki, dengan isi yang sama dalam dua bahasa.
Generated by scripts/parity-manifest.sh --docs from find/grep on each checkout. Do not edit the
numbers by hand — edit the script and re-run. A hand-copied measurement goes stale on the next
commit, and a stale document is worse than none.
Dihasilkan skrip yang sama. Jangan menyunting angkanya; sunting skripnya lalu jalankan ulang.
Diukur: 2026-11-17 · commit PHP 1dd2a3e
| bagian | PHP | Node | Python | Go | Rust |
|---|---|---|---|---|---|
| payload builder | 141 | 141 | 141 | 141 | 137 |
| builder coverage (names PHP can build) | 141/141 | — | — | — | 141/141 |
| datatype | 33 | 33 | 33 | 33 | 33 |
| terminology files | 23 | 23 | 24 | 23 | 1 |
| queue files | 8 | 8 | 8 | 8 | 3 |
| parser files | 142 | 142 | 141 | 142 | 1 |
| test files | 238 | 214 | 220 | 253 | 411 |
| metode builder tidak diekspor (Go) | — | — | — | 62 dari 1788 | — |
Catatan pembacaan: kolom parser files, terminology files, dan queue files menghitung
berkas, bukan fungsi. Rust menyatukan seluruh parser dalam satu parser.rs dan
terminologi dalam satu modul, jadi angkanya 1 meski fungsinya ratusan. Jangan
menyimpulkan cakupan Rust lebih kecil dari angka ini — bandingkan lewat PARITY.md
per repo, yang memuat jumlah fungsi terukur.
Why the columns differ, and why that is not a defect:
-
The table counts files, classes and modules — not capabilities. PHP keeps one file per
terminology family; Go splits generated catalog readers into extra files; Rust keeps every parser
in a single
parser.rs. Rust's1is one file with 133 functions, not one parser. -
Parser counts differ by one because PHP has
ListParserwhile Python and Go name the same resourcelist_resource(ListResource); the resource coverage is identical. Go also has one helper file that matches*_parser.go. - Node counts three extra builder classes: canonical names plus legacy aliases kept so older callers do not break.
-
Test file counts differ because test organisation is a language choice: PHP has one class per
file, Python groups several cases per module, Rust counts
#[test]attributes rather than files. -
Rust is deliberately pre-1.0. Its datatype layer (12 vs 33), terminology modules (1 vs 22) and
queue (1 vs 8) are not yet 1:1, so it carries
0.1.0while the other four carry4.19.0. A version number is a claim that has to survive someone diffing the repositories.
Read the capability table below the counts before concluding that one port covers less. What the
manifest cannot measure — behaviour — is covered by satusehat-conformance: the same corpus and
golden payloads are replayed by the Node, Python and Go contract tests.
Kenapa kolomnya berbeda, dan kenapa itu bukan cacat:
-
Tabel menghitung berkas, kelas, dan modul — bukan kemampuan. PHP menyatukan satu keluarga
terminologi dalam satu berkas; Go memecah pembaca katalog hasil generate ke berkas tambahan; Rust
menaruh seluruh parser dalam satu
parser.rs. Angka1di Rust berarti satu berkas berisi 133 fungsi, bukan satu parser. -
Jumlah parser berselisih satu karena PHP memakai
ListParsersedangkan Python dan Go menamai resource yang samalist_resource(ListResource); cakupan resource-nya identik. Go juga punya satu berkas pembantu yang cocok dengan pola*_parser.go. - Node menghitung tiga kelas builder lebih banyak: nama kanon ditambah alias lama yang dipertahankan supaya pemanggil lama tidak pecah.
-
Jumlah berkas uji berbeda karena pengelompokan uji adalah pilihan bahasa: PHP satu kelas per
berkas, Python menggabungkan beberapa kasus per modul, Rust menghitung atribut
#[test]bukan berkas. -
Rust sengaja pra-1.0. Lapisan datatype (12 vs 33), modul terminologi (1 vs 22) dan queue (1 vs 8)
belum 1:1, jadi versinya
0.1.0sementara empat port lain4.19.0. Nomor versi adalah klaim yang harus tahan diperiksa orang yang membandingkan repo.
Baca tabel kemampuan di bawah angka sebelum menyimpulkan salah satu port lebih sempit. Yang tidak
bisa diukur manifest — perilaku — ditutup oleh satusehat-conformance: korpus dan payload golden yang
sama dijalankan ulang oleh uji kontrak Node, Python, dan Go.