Version: dev

data_source_determinism

Stable type · Document types

Tier: stable · Kind: type · Topic: Document types

JuliaTypeScriptPythonRustGo
DataSourceDeterminismnot exportedDataSourceDeterminismDataSourceDeterminismDataSourceDeterminism

Julia

struct DataSourceDeterminism
DataSourceDeterminism(; endian, float_format, integer_width)
DataSourceDeterminism

Reproducibility contract a source advertises to bindings (esm-spec §8.1). A binding that cannot honor the declared endian / float_format / integer_width MUST reject the file at load.

Fields (all optional):

  • endian: “little” | “big”
  • float_format: “ieee754_single” | “ieee754_double”
  • integer_width: 32 | 64

Source

TypeScript

TypeScript does not export this type.

Python

class DataSourceDeterminism
DataSourceDeterminism(endian: str | None = None, float_format: str | None = None, integer_width: int | None = None)

Reproducibility contract a source advertises to bindings (esm-spec §8.9.2).

Source

Rust

pub struct DataSourceDeterminism {
    pub endian: Option<String>,
    pub float_format: Option<String>,
    pub integer_width: Option<u32>,
}

Reproducibility contract a loader advertises to bindings (esm-spec §8.9.2).

Source · Rust docs

Go

type DataSourceDeterminism struct {
	Endian       *string `json:"endian,omitempty"`        // "little" | "big"
	FloatFormat  *string `json:"float_format,omitempty"`  // "ieee754_single" | "ieee754_double"
	IntegerWidth *int    `json:"integer_width,omitempty"` // 32 | 64
}

DataSourceDeterminism is the reproducibility contract a source advertises to bindings (esm-spec 8.1). A binding that cannot honor the declared contract MUST reject the file at load.

Source · Go docs