Skip to content
Languages / BSON

BSON

How Atracode compiles BSON, what it is verified against, and what it refuses.

Kind
Data and configuration formats
Verified against
Reference implementation
Published results
Per release, in the changelog

What is supported

Documents with every BSON type, including decimal128 and dates. Every document gets a hash.

Every document becomes a hashable object, and decoding it is checked against the reference implementation.

How it is verified

BSON isn't only compiled: Atracode stands in for the engine or library that would normally run it, and every result is checked against Reference implementation. Outputs must match exactly, and the result gets a behavior hash like any other program.

$ atracode compile main.src
verified  raven:3f1c…  (illustrative)

What gets refused

Anything that depends on the world outside the program, such as the clock, the network, environment variables or unseeded randomness, is refused at its exact line and column instead of being approximated. Pass those values in as inputs and compile again. Refusals lists the common causes and fixes.

  • JSONVerified against Reference library
  • XMLVerified against Reference parser
  • YAMLVerified against Reference parser
  • TOMLVerified against Reference parser
  • CSVVerified against Reference library
  • CBORVerified against Reference implementation
esc

Type to search titles, headings and text.