Changes in version 0.4.0 - Rust-native enums: #[derive(R8)] with #[r8(native)] on an enum of unit, struct, and newtype variants keeps every value, unit variants included, in compiled code. new_enum(native = TRUE) declares one in R, and r8_document_native() writes it. - R8.h: an enum's codec sets the new members variant and from_variant of R8TypeVTable. - r8_register() refuses a codec whose shape does not match its type, and a codec whose enum declares a runtime-only field in any variant. - R8.h: an exports table carries the declarations of its types in Rust only, and R8 builds each impl declaration from the impl entries; a table written in C declares its types in R and carries no IR (ir_json is removed). A codec written in C sets declaration_hash, the hash of its type's R declaration, which r8_register() checks, reporting the current hash when the two differ. - r8::exports! declares every type of the package's namespace that its listed types reach, such as the struct of a newtype variant. - print() and str() of a Rust-native value show its size in the header, in IEC units ( 7.63 MiB); str() adds the fields read into R (+ 112 B read). - A method of #[r8::methods] takes another value of a Rust-native type as &T, borrowed from its state, or built from an R-native value of the type. - r8_document_native() writes a field whose type belongs to another package's namespace as that package's exported type object (r8resample::Resampler); the package lists it in Imports. - The roclet r8_rd() documents the methods a package implements in compiled code, as it documents implement() calls. - Text output: the Rust core lays out and encodes values as plain text, ANSI color, HTML, or markdown. print() chooses the output type for the console, document, or notebook (r8_output_type()), and format() returns plain text unless asked. The default layout shows each vector's type, length, and first items, colors the names of base types after rtemislive, and indents nested values. - r8_layout() returns the layout of a value, a list, or a data frame; r8_span(), r8_text(), and c() build styled text, which a Display or Print impl may return; r8_theme() restyles the roles of text, and r8_css() returns the stylesheet of the html classes mode (html_style). - R Markdown and Quarto documents, Jupyter notebooks, and tibble columns show R8 values through methods for knitr, repr, and pillar, registered when those packages load. - A declaration takes time proportional to itself, whatever the size of its namespace: a package of 200 types loads in 0.03 s. - A trait method's generic finds its impl through a compiled lookup and a cache of resolved impls: dispatch on a value takes about 0.33 µs, against 0.41 µs for R6 and S3 in the same measurement. - R8 builds on R 4.3 and 4.4: the constructor's frame routine reads its fields through R's API of the running version. - Declaring a type runs in Rust: the field types, field(), and rule() build and check their arguments in compiled code, and new_struct() and new_enum() read the fields and declare in one call. 200 types declare in 0.028 s, against 0.096 s. - The field-type constructors check their arguments at their call: an integer bound or value is a whole number (type_integer(min = 1.5) is an error), and type_character(pattern = ) reports a pattern that does not compile. A reserved field name is an r8_declaration_error with the code name_reserved. - A field of an R8 type takes any value of the type as its default, a struct or an enum variant with its fields: field(Kernel, default = Kernel@Rbf(gamma = 0.1)). - A rule's number beyond 2^53, which a double does not hold exactly, is a declaration error (rule_number). - int64(text) gives an integer beyond 2^53 as its decimal digits, for a rule's constant or a default; R8 writes such an integer of a declaration in this form, and an integer outside R's integer range but within 2^53 as a whole double. - r8_from_json() reads a document into a compact tree that holds an array of numbers as one run of doubles, then converts it to R or to a Rust-native value in place. Reading a value with fields of 10^7 elements (99 MB) takes 343 ms and 191 MB beyond the session, against 851 ms and 2.1 GB; a value with fields of 10^6 elements, 31 ms against 183 ms. R8 writes numbers without intermediate strings, and to_json() takes about a third of its time. - R8.h: the codec table gains from_reader, which builds a state through an R8Reader, the table of functions over the value R8 has read from a document. Codecs generated by rtemis-r8-api set it, and the member decode is removed; R8 reads a Rust-native document through from_reader, 10% to 13% faster than a read into R values, and builds a state through from_fields or from_variant for a codec without it. The ABI version stays 1. The exports table gains ir_record, the package's declarations as a declaration record; tables generated by rtemis-r8-api carry it and set ir_json to NULL, and R8 reads ir_json from tables without it. - A type and a trait of one name in a namespace are an error at the later declaration, in either order. - r8_register() checks each namespace a package owns once, after its declarations, and refuses a package whose declarations disagree, such as a rule that reads a field of a type declared again without that field. - rtemis-r8-api: the method of the R8::PartialOrd trait is cmp, the name of the trait's method in R; an R8::Dim impl's Vec converts to R. - The package builds against rtemis-r8 0.4.0. Changes in version 0.3.0 - Rust-native types: a struct whose codec is in a package's compiled exports keeps its values in compiled code. Field reads return views without copying, x$name <- v replaces a field, and values persist with saveRDS() and cross to mirai and future workers. - r8_size() reports the memory a value holds. R8 collects garbage when the memory of Rust-native values grows. - The crate rtemis-r8-api and the macros #[r8::methods] and r8::exports! implement R8 traits and declare Rust-native types in a package's Rust code; R8.h gives C and C++ code the same services (R8Api), and a package registers its exports with R_RegisterCCallable(). - new_struct(native = TRUE) declares a Rust-native type; r8_document_native() writes the R declarations of the types a package declares in Rust, and r8_register() checks that they match the compiled exports. - json_ir() gives a rule or a default as JSON text, for the JSONLogic and defaults that the R forms do not express. - Compact sequences, factor codes, and sparse matrix indices are read in place, without expansion, by construction, rules, hashing, validation, equality, and documents. - The package builds against rtemis-r8 0.3.0. Changes in version 0.2.0 - generic() declares a generic, and implement(generic, Type) <- f declares its method for an R8 type; r8_method() returns a declared method. - implement() declares methods of format(), str(), dim(), r8_cmp(), and print() as impls of the standard traits Display, Debug, Dim, PartialOrd, and Print, and methods of other S3 generics as S3 methods for the type's qualified class. - The roxygen2 roclet r8_rd() documents each method of a generic in the generic's or the type's Rd file. - Struct and enum variant constructors give a required field no default argument. - The package builds against rtemis-r8 0.2.0. Changes in version 0.1.0 - r8_core_version() returns the version of the rtemis-r8 crate compiled into the package.