# How standard libraries read our files

How the standard libraries of Python, Go, Node.js, Java and Ruby read our sample files: who opens them, who refuses, who disagrees with the manifest.

The page: <https://loremfile.dev/compat>.

## Outcomes

- **reads**: No error, and every property the reader reported equals the manifest's.
- **differs**: No error, and at least one reported property does not equal the manifest's.
- **refuses**: The reader raised or returned an error.
- **crashes**: The process died, printed no result, or passed its time limit.
- **no-reader**: The runtime's standard library has no reader for this format.
- **not-run**: The runtime, adapter or fetch could not be set up. Never counted.

## Method

Each file is fetched once from this site and checked against the hash in manifest.json before any reader sees it. Each reader is one module in one runtime, given each file by an adapter that reads all of it with the module's default settings, and reports only what the module gives natively. Every reader and file is one process with a limit of 30 seconds, run in every supported version of the runtime. What a reader reports is compared with the manifest's measured properties for that file; the exceptions to that are named below. Files over 16 MB are skipped and listed, and a reader whose two controls do not hold is shown as not-run.

## Named exceptions

- **Duration** (python/wave): A reported duration_ms within 1 ms of the manifest's is equal. This is the only tolerance anywhere.
- **CSV header** (go/encoding/csv, python/csv): rows is compared with the manifest's rows plus one when has_header is true: the header is a record to a reader and not a data row.
- **Clark notation** (python/xml.etree.ElementTree): A root name in Clark notation, {namespace}local, is reduced to its local name before it is reported as root_element, the form the manifest and the other readers use. The namespace is reported as its own property, root_namespace, which is not compared.
- **Name strings** (node/crypto.X509Certificate, ruby/OpenSSL::X509::Certificate): A certificate reader that gives names as text is reduced by the adapter to the values the manifest holds: the CN from a subject or issuer written CN=..., the DNS entries from subject alternative names written DNS:a, DNS:b, and, where the serial is given as hexadecimal text, the integer it spells.

## This run

Run on 2026-11-14 against catalogue 1.15.1.

- Go 1.26: 1.26.11
- Go 1.27: 1.27.4
- Java 11: 11.0.33
- Java 17: 17.0.21
- Java 21: 21.0.13
- Java 25: 25.0.5
- Java 27: 27.0.1.0.2
- Java 8: 8.0.512
- Node.js 22: 22.23.5
- Node.js 24: 24.22.3
- Node.js 26: 26.13.1
- Python 3.11: 3.11.18
- Python 3.12: 3.12.16
- Python 3.13: 3.13.18
- Python 3.14: 3.14.10
- Python 3.15: 3.15.2
- Ruby 3.3: 3.3.13
- Ruby 3.4: 3.4.12
- Ruby 4.0: 4.0.9

- Python: https://devguide.python.org/versions/ (Versions the page lists as bugfix or security on the checked date; read 2026-11-13)
- Go: https://go.dev/doc/devel/release (Each major release is supported until there are two newer major releases; read 2026-11-13)
- Node.js: https://nodejs.org/en/about/previous-releases (Current, Active LTS or Maintenance LTS on the checked date; the page renders the Node.js Release Working Group's schedule.json; read 2026-11-14)
- Java: https://adoptium.net/support/ (Eclipse Temurin only: the releases its support page lists with an end of availability after the checked date; read 2026-11-14)
- Ruby: https://www.ruby-lang.org/en/downloads/branches/ (Branches in normal or security maintenance on the checked date; a preview is not supported; read 2026-11-14)

## Readers by format

| Format | Readers | No reader in | Files | reads | differs | refuses | crashes |
|---|---|---|---|---|---|---|---|
| [zip](https://loremfile.dev/compat/zip) | go/archive/zip, java/java.util.zip.ZipFile, python/zipfile | Node.js, Ruby | 13 | 91 | 0 | 13 | 0 |
| [tar](https://loremfile.dev/compat/tar) | go/archive/tar, go/archive/tar+compress/gzip, python/tarfile, ruby/Gem::Package::TarReader, ruby/Gem::Package::TarReader+Zlib::GzipReader | Java, Node.js | 3 | 25 | 0 | 0 | 0 |
| [gz](https://loremfile.dev/compat/gz) | go/compress/gzip, java/java.util.zip.GZIPInputStream, node/zlib, python/gzip, ruby/Zlib::GzipReader | - | 2 | 35 | 3 | 0 | 0 |
| [wav](https://loremfile.dev/compat/wav) | java/javax.sound.sampled, python/wave | Go, Node.js, Ruby | 7 | 70 | 1 | 6 | 0 |
| [jpg](https://loremfile.dev/compat/jpg) | go/image/jpeg, java/javax.imageio | Node.js, Python, Ruby | 16 | 117 | 0 | 3 | 0 |
| [png](https://loremfile.dev/compat/png) | go/image/png, java/javax.imageio | Node.js, Python, Ruby | 15 | 98 | 6 | 0 | 0 |
| [gif](https://loremfile.dev/compat/gif) | go/image/gif, java/javax.imageio | Node.js, Python, Ruby | 5 | 32 | 0 | 0 | 0 |
| [json](https://loremfile.dev/compat/json) | go/encoding/json, node/JSON, python/json, ruby/JSON | Java | 9 | 78 | 0 | 0 | 0 |
| [csv](https://loremfile.dev/compat/csv) | go/encoding/csv, python/csv, ruby/CSV | Java, Node.js | 11 | 90 | 0 | 0 | 0 |
| [xml](https://loremfile.dev/compat/xml) | go/encoding/xml, java/javax.xml.parsers, python/xml.dom.minidom, python/xml.etree.ElementTree, ruby/REXML | Node.js | 4 | 63 | 0 | 0 | 0 |
| [pem](https://loremfile.dev/compat/pem) | go/crypto/x509, java/java.security.cert.CertificateFactory, node/crypto.X509Certificate, ruby/OpenSSL::X509::Certificate | Python | 1 | 14 | 0 | 0 | 0 |
| [der](https://loremfile.dev/compat/der) | go/crypto/x509, java/java.security.cert.CertificateFactory, node/crypto.X509Certificate, ruby/OpenSSL::X509::Certificate | Python | 1 | 14 | 0 | 0 | 0 |
