# Changelog Each version's changes, newest first. Versions follow [semantic versioning](https://semver.org). ## Unreleased - The containers lend what they did as properties, as `core`'s do, modeled on one array: `span`, `slice`, which only what can be written reads, `iterator`, `mutator`, likewise, `first`, `last`, `empty`, and `full`, where each has them. So: - Each container's iterator type is its `iterator`, as `iterable` now asks, rather than its `cursor`, and `dict`'s `key_cursor` and `value_cursor` are `key_iterator` and `value_iterator`. `yaml::document`'s is `iterator` too. - `deque`, `list`, and `chain` give `first` and `last`, which a container that can be written writes through, rather than `front()` and `back()`. `stack` and `queue` give them too, beside `peek()`. - `is_empty` and `is_full` are `empty` and `full`. - `stack`, `heap`, and `interner` lend `span`, with `span_of`, as `spannable` asks, rather than `view()`, and `stack` lends `slice`, with `slice_of`, as `sliceable` asks, rather than `slice()`. `byte_writer` lends `span` and `slice`, and `io::path` and `net::uri` lend `span`, rather than `view()`. - `span_of` and `slice_of` take a start and a count, which `spannable` and `sliceable` now ask for, so `stack`, `heap`, and `interner` are sliced as a view is, as `s[1:]` or `h[:3]`, through them. - `interner`'s `intern_view` and `find_view` ask for values that are `spannable`, rather than `viewable`. - What names `core`'s containers and views names them as they are named now: `.span` rather than `.view()`, `blank()` rather than `empty()`, `iter` rather than `iterator`, and so on. - `deque` lends `core`'s `positions_iterator` and `position_mutator` as its `iterator` and `mutator`, rather than iterators of its own, which walked it the same way. Each refers to the deque itself, so it is only good while the deque stays where it is. - `deque`, `list`, `chain`, and `dict` name `assignable`, `core`'s trait for the `at` that writes, beside `indexable`. - Each container's iterator that writes is its `mutator`, as `iterable` now names it: `deque`'s, `queue`'s, `list`'s, `chain`'s, and `stack`'s, where it was their `mut_cursor`. - `math::wrapping_add`, `wrapping_sub`, and `wrapping_mul` wrap where an integer overflows its type, for a program's own code meaning to, which `--checks` stops at otherwise. - `thread::spawn` and `spawn_with` say their function is `@kept`, so a handle outliving the locals the function names is warned of. - `math::fma` of `f32`s and `f64`s works with the processor's FMA3 instruction where it has one, which rounds once as the software does, and gives the same bits. - `math::fma` gives the NaN FMA3 does, worked by the instruction or not: a factor's, `x`'s before `y`'s, and otherwise `z`'s, even where the product is NaN, as `∞ * 0` is, where it gave the product's. - `math::floor`, `ceil`, `trunc`, `round_even`, and `round` of one number work with SSE4.1's `roundsd` or `roundss` where the processor has it, and `fma` of one number with `vfmadd231sd` or `vfmadd231ss`, splatting nothing. Each gives the bits the code gives without them, which quiets a NaN it's given as the instructions do. - `simd`'s `round` works with SSE4.1's instructions, truncating and then moving each lane one away from zero where a half or more was left, rather than a lane at a time. - `serial::encode` writes an `f32` as the shortest text that reads back as it, as `0.1`, where it wrote every digit of the `f64` it widened to, as `0.10000000149011612`. - `serial::options::defaults` reads a member missing for a marked field as the field's default, rather than as a `missing_member` error, as a file written before its type gained the field asks. ## 1.0.0 - Unreleased - The standard library, moved out of the Sakura compiler's repository into one of its own, each module a library of its own in the folder of its name: `std::containers`, `std::allocators`, `std::io`, `std::math`, `std::time`, `std::thread`, `std::process`, `std::serial`, `std::testing`, `std::text`, `std::net`, `std::semver`, `std::json`, `std::yaml`, and `std::args`. A program requires the repository and names among its `deps` the modules it reads, as `std.io`. - There is no module `std` itself. What its root held went to modules of their own: - `deque`, `list`, `chain`, `heap`, `queue`, `stack`, `groups`, `runs`, and `interner` to `std::containers`, and `pool` to `std::allocators`; - `byte_writer` to `std::io`, where it's the stream that writes to memory, with a `write`, so it's `writable`; - regular expressions to `std::text`, URIs to `std::net`, with `std::io`'s `uri::from_path` and `uri::to_path`, and versions to `std::semver`; - `predicate`, which nothing used, went. - `std::io` reads nothing of URIs or containers now, so a program printing a line reads less. - What `core` held that the compiler doesn't name, and that `core`, `system`, and the runtime aren't built from, is std's: - `dict`, `hashset`, `rc`, `arc`, `rc_weak`, and `arc_weak` are `std::containers`', and `arena` is `std::allocators`'; - the streams' traits, `readable`, `writable`, and `flushable`, are `std::io`'s, with `string`'s `write` and `strview`'s `read`, so a string is `writable` where a file imports `std::io`; - `io_error` is `system`'s, which reports it, so a file naming it imports `system`. - std declares no intrinsic: `std::math` builds on `core::intrinsics`'s `square_root`, `lanes_have`, and `lanes_apply`, and its own `count_ones`, `leading_zeros`, `trailing_zeros`, and `swap_bytes` went, since `core`'s are the same. `std::thread` starts its threads with `system::start`. - `std::json`, `std::yaml`, and `std::args`, packages of their own since 2026-10-24, joined again, keeping their names, with their tests and JSON's and YAML's conformance suites. - `std::io::glob`, globs read, matched, and found, which was `malunal::glob`, a package of its own, is a module within `std::io`, which the library `std.io` holds. - Each module's tests, in `tests/` in the folder of its name, built and run as executables, `std::serial`'s through JSON and YAML among them. Those of `core` and `system` stayed with the compiler, but for those testing what came here from `core`. - `std::xml`, which reads XML 1.0 strictly, with Namespaces in XML 1.0: `xml::parse` into a `xml::document` of elements, attributes, text, comments, and processing instructions, and `xml::reader`, one token at a time. The document type's internal subset is read, and its entities, attributes' defaults, and attribute types used; nothing outside the text is. Limits on depth and on what entities expand to stop text written to exhaust a reader. - A program built without blossom finds the standard library as `sakurac` does: the folder `--lib std=DIR` names, or a `std` folder beside the compiler or above it, or its libraries in the `share/sakura` folder above it, where `blossom install` puts them.