Languages and compatibility
Write JDogo in one language and read it in another. Java, Python and TypeScript implement the same format, the same limits and the same compute language.
What each SDK does
| Java 17+ | Python 3.9+ | TypeScript / Node | |
|---|---|---|---|
| Encode and decode | ✓ | ✓ | ✓ |
| Readable and typed modes | ✓ | ✓ | ✓ |
| Streaming reader and writer | ✓ | ✓ | ✓ |
| Prompt builder, byte-identical prompts | ✓ | ✓ | ✓ |
ask() and the compute language | ✓ | ✓ | ✓ |
jdogo command | ✓ | ✓ | ✓ |
| Context sync (snapshots, deltas, signed envelopes), byte-identical | ✓ | ✓ | ✓ |
| Grounded compute: row references and an independent check | ✓ | ✓ | ✓ |
optimize(): JDogo or JSON, whichever costs fewer tokens with the instruction, and a receipt | ✓ | ✓ | ✓ (estimated tokens unless you pass a tokenizer) |
| OpenAI and Anthropic tool-call helpers | ✓ | ✓ | |
| MCP server | ✓ | ||
| Framework integrations | Spring Boot, Spring AI, Jackson | pandas, FastAPI, Flask, LangChain | Express, Next.js, Vercel AI SDK |
| Runtime dependencies | slf4j-api for the core; jtokkit for token counting; Jackson only for the Jackson and Spring integrations | none | none |
How compatibility is checked
- Shared reference vectors. 203 encodings written by Java, which every SDK must decode to the same value, plus 158 compute vectors with the same answers in all three.
- Cross-language fuzzing. Every build encodes thousands of random values in each SDK and decodes each result in all three: nine writer–reader pairs. A separate fuzzer feeds every decoder broken and hostile text.
- Identical prompts. The prompt builders produce byte-identical text in all three SDKs, so a prompt measured in one language behaves the same in another.
Same data, same text?
Decoding is exact everywhere. Encoding can differ in small ways: Python and TypeScript pick the same column forms as Java on most tables, but Java decides some forms from the first 64 rows, and spells some numbers differently (0.5 against .5). Every version decodes to the same value in every SDK.
Known differences
- Very large numbers. Java reads numbers beyond a 64-bit float exactly, as
BigDecimal. Python and TypeScript reject them rather than return infinity. - JavaScript numbers.
JSON.parserounds integers past 253 and cannot tell5.0from5. The TypeScript decoder itself reads large integers exactly, asBigInt.
The full list is in section 9 of the specification.