rte-09 reproduction
Public source retained with the related article. Generated results, dependency directories, runtime storage, secrets, and oversized binary artifacts are intentionally excluded.
README
# Read, append, and serialize across languages
A small JSON-history experiment contrasting PHP's associative decode with a
conventional Go list-shaped decoder. It demonstrates a nested empty-object
change, an accepted object-shaped history, null fallback, ordinary agreement,
and different native scalar errors. Inputs are entirely synthetic.
All input JSON is valid. The PHP program deliberately throws on malformed JSON
to keep fixture mistakes visible; this does not characterize a framework's
malformed-JSON fallback.
Run with Node.js, PHP CLI, and Go installed:
```sh
node compare.mjs
```
The runner disables local PHP configuration, uses only language standard
libraries, sets a task-owned disposable Go build cache, and removes that cache
on normal completion or a caught failure. If the process is forcibly killed,
remove its exact `pricing-cast-go-` temporary directory after confirming no
compiler is using it. No database, framework boot, network request, or module
download is involved.
The assertions compare JSON values rather than object-key order. The Go program
is deliberately the tempting incompatible implementation; a successful run
means the expected disagreements were detected, not that Go now emulates all
PHP arrays. It is not the private port's code or a full ORM, transaction,
concurrency, error-precedence, or rewrite-parity test.