3.3 KiB
3.3 KiB
Changelog
Each version's changes, newest first. Versions follow semantic versioning.
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, andstd::args. A program requires the repository and names among itsdepsthe modules it reads, asstd.io. - There is no module
stditself. What its root held went to modules of their own:deque,list,chain,heap,queue,stack,groups,runs, andinternertostd::containers, andpooltostd::allocators;byte_writertostd::io, where it's the stream that writes to memory, with awrite, so it'swritable;- regular expressions to
std::text, URIs tostd::net, withstd::io'suri::from_pathanduri::to_path, and versions tostd::semver; predicate, which nothing used, went.
std::ioreads nothing of URIs or containers now, so a program printing a line reads less.- What
coreheld that the compiler doesn't name, and thatcore,system, and the runtime aren't built from, is std's:dict,hashset,rc,arc,rc_weak, andarc_weakarestd::containers', andarenaisstd::allocators';- the streams' traits,
readable,writable, andflushable, arestd::io's, withstring'swriteandstrview'sread, so a string iswritablewhere a file importsstd::io; io_errorissystem's, which reports it, so a file naming it importssystem.
- std declares no intrinsic:
std::mathbuilds oncore::intrinsics'ssquare_root,lanes_have, andlanes_apply, and its owncount_ones,leading_zeros,trailing_zeros, andswap_byteswent, sincecore's are the same.std::threadstarts its threads withsystem::start. std::json,std::yaml, andstd::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 wasmalunal::glob, a package of its own, is a module withinstd::io, which the librarystd.ioholds.- 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 ofcoreandsystemstayed with the compiler, but for those testing what came here fromcore. std::xml, which reads XML 1.0 strictly, with Namespaces in XML 1.0:xml::parseinto axml::documentof elements, attributes, text, comments, and processing instructions, andxml::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
sakuracdoes: the folder--lib std=DIRnames, or astdfolder beside the compiler or above it, or its libraries in theshare/sakurafolder above it, whereblossom installputs them.