Changelog
Source:NEWS.md
zufast 0.1.1
-
zufast/datetime.h: ISO 8601 week dates.zuf_weekday_from_days(),zuf_iso_week_from_days()(week-numbering year and week),zuf_iso_weeks_in_year()and the inversezuf_days_from_iso_week(), exact over the wholeint32_tday range. Week dates are computed, not parsed. -
zufast/datetime.h:zuf_parse_date_opt()andzuf_parse_datetime_opt()take flags.ZUF_DT_EXPANDED_YEARaccepts expanded years, a sign and exactly six digits as in Temporal (+010000-01-01,-271821-04-20), and rejects-000000.zuf_parse_date()andzuf_parse_datetime()keep the four-digit grammar. - Breaking change for years outside 0000 to 9999:
zuf_format_date(),zuf_format_datetime()andfast_format_datetime()now pad expanded years to six digits (+010000-01-01,-000001-01-01), where 0.1.0 padded to five. The formatters now write the form that Temporal writes and thatZUF_DT_EXPANDED_YEARreads. Years 0000 to 9999 are unchanged. - New
zufast/wide.h: 128-bit integerszuf_i128andzuf_u128, for Temporal’s epoch nanoseconds and durations in zutempo and for zuint. Both are two-word structs in every build. The header offers checked and wrapping add, subtract and multiply, the full 64 x 64 bit products, truncating and floor division by a 64- or 128-bit divisor, exact conversion to and fromdouble, and decimal parsing and writing. The native__int128is used inside the functions where the compiler has it. DefiningZUF_NO_INT128selects the portable code, and the test suite checks that both give identical results.
zufast 0.1.0
CRAN release: 2026-10-21
- Initial CRAN release: a header-only library of small, fast, portable C99 primitives, used by other packages through
LinkingTo: zufastalone. -
zufast/number.h: correctly rounded parsing ofdouble,floatand 32/64-bit integers in any base 2 to 36 (with a JSON mode), through the vendored ffc.h, a C port of fast_float; shortest round-trip formatting in ECMAScript notation through the vendored Ryu; exact fixed-notation formatting and integer writers. -
zufast/datetime.h: ISO 8601 / RFC 3339 date and timestamp parsing to fields, calendar arithmetic exact over the wholeint32_tday range, and RFC 3339 formatting. -
zufast/literal.h(booleans with per-spelling flags, literal matching, ASCII whitespace),zufast/uuid.h,zufast/hex.handzufast/base64.h(strict, standard and URL alphabets),zufast/hash.h(XXH3 64- and 128-bit, one-shot and streaming, through the vendored xxHash),zufast/bits.h(binary16, bfloat16, endian helpers) andzufast/utf8.h(UTF-8 validation and code-point counting). - R functions that exercise the C layer:
fast_parse_double(),fast_parse_integer(),fast_format_double(),fast_parse_date(),fast_parse_datetime(),fast_datetime_fields(),fast_format_datetime(),fast_hex_encode(),fast_hex_decode(),fast_base64_encode(),fast_base64_decode(),fast_hash(),fast_utf8_valid()andfast_info(). -
vignette("linking")gives the consumer recipe.