Repository navigation
Mica v0.4.0
Adds the HTTP/2 connection core, exact decimals and money, and three more
iconv encodings; makes the encodings, the YAML emitter and Brotli faster on
Linux; picks the CRC-32 and Adler-32 kernels per processor at startup; and
declares Crystal 1.19.0, the lowest version CI tests, so Amber and Grant
can depend on Mica as a shard.
crystal:in shard.yml is now">= 1.19.0, < 2.0.0"(it was
">= 1.21.0, < 2.0.0"). CI runs the whole spec suite on Crystal 1.19.0,
installed from its release tarball and checked by sha256, beside the
existing 1.21.0 job. Two changes make that build:IO::Memorytakes
read-only positionally (the keyword iswriteablebefore 1.21), and the
AVX2 build of Adler-32 needs Crystal 1.20 or later for its
TargetFeatureannotation, so older compilers run the generic body
(ProcessorKernels::HAS_AVX2is false there).Mica::HTTP2::Connectionis the sans-IO core of one HTTP/2 connection
(milestone H2.3): bytes in, events out, with RFC 9113 stream states,
SETTINGS, flow control, GOAWAY, one HPACK decoder and encoder, and
requiredConnectionLimitsthat stop rapid reset, made-you-reset,
control-frame and CONTINUATION floods and HPACK bombs. h2spec v2.6.0
passes 146 of 146 (147 of 147 with--strict), every h2spec case is
replayed as a spec, and 2,000,000 fuzzed sequences end with 0 failures.
scripts/vendor_into.rbgains thehttp2component and takes a
comma-separated list of components (#48).Mica::Decimal128,Mica::CurrencyandMica::Money(require "mica/decimal"): exact
decimals of up to 38 digits, the ISO 4217 currency list, and money that
splits without losing a minor unit, with no libgmp (#46).- CP874, MACCYRILLIC and CP932 for
LabelRule::IconvCompatible, each
converting exactly as glibc iconv does (#47). Mica::Encodingcloses the slower rows against glibc iconv on Linux: ASCII
runs by words, inline UTF-8 decoding, and table-driven encoders for the
CJK encodings. Two chunking bugs fixed on the way: the UTF-16 decoder's
offset after an unpaired lead surrogate split across calls (Fatal mode),
and EUC-JP input ending inside8F xxleaving a reused decoder in JIS X
0212 (#40).- The YAML emitter that stdlib
to_yamluses under-Duse_micawrites in
bulk and analyzes scalars from a table: 1.29× libyaml 0.2.5's speed on
Linux aarch64 and x86-64 and 1.62× on macOS arm64 (it was 0.85× on
Linux), with 0 disagreements against libyaml over 2,400,000 cases (#41,
#42). - The Brotli encoder is at least as fast as libbrotlienc 1.1.0 on Linux
x86-64 and aarch64 at qualities 5, 9 and 11 (1.05× to 1.15×) and still
writes the same bytes (#43). The decoder goes from 0.81× to 1.07×-1.10×
libbrotlidec one-shot on Xeon 6975P-C and EPYC 7763 (#44). Mica::Core::ProcessorKernelspicks each checksum kernel once at
startup: CRC-32 onpclmulqdqon x86-64 and the ARMv8 CRC instructions
on Linux AArch64 too, Adler-32 on AVX2 and on Advanced SIMD. Results are
bit-identical to the generic bodies;-Dmica_generic_kernelsbuilds the
generic bodies alone (#45).conformance/encoding/fetch_vectors.rbtries each URL three times and
fetches the glibc tables from the bminor/glibc mirror at the same commit
when sourceware.org refuses; the sha256 check is unchanged.Mica::VERSIONreads 0.4.0.
Full per-change notes: CHANGELOG.md.
Checks at the tagged commit
Release PR #49 on GitHub Actions, run 47297558558: full spec suite on ubuntu-24.04 with Crystal 1.21.0, 2,692 examples, 0 failures, 2 pending; the same suite on Crystal 1.19.0 (the declared floor, release tarball checked by sha256), 2,692 examples, 0 failures, 3 pending; Deflate specs on macos-15 with Crystal 1.22.2, 1,234 examples, 0 failures; WPT encoding conformance green. Crystal 1.20.0 also passed the whole suite at 2a935d5 (run 47295014647). The merge commit has the same tree as the tested head.
Commit: 36badd67f0ef3ebad632b0a5e53262af9ffe3deb
Tree: adc62be737336edb2317d1f68ce8ee2cdfced2af
Tag object: 1d75d551fe6ceec69a527dd3223816ed06ce7efb
Tarball: mica-0.4.0.tar.gz (git archive --format=tar.gz --prefix=mica-0.4.0/ 36badd67f0ef3ebad632b0a5e53262af9ffe3deb)
Tarball sha256: d300b61d00fc54199336cfb821586963b34454a5f274405d76ca55e5e4fe2726
The tarball was built twice from the commit and gave the same sha256 both times, and the copy attached here was downloaded again and matched.