mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
The decoder's exp, log, atan2 and cos, and the slid tap's hypot, now come from the pure-Rust libm crate instead of each platform's own libm (Apple's on iOS, bionic's on Android), so both platforms read every swipe alike, bit for bit. The owner chose this (D0, option a), accepting the changes against Apple's libm measured on the 200,000 Swift-recorded swipes: - on dev's earlier English model: 2 readings change order (en case 6849, "cured" now ahead of "cued", the top word; es case 192084, "preso" and "pesó" at positions 3 and 4), 0 change `scored`, and 16,880 of 767,854 costs change (15,315 by 1 ulp, 1,564 by 2, one by 0.095 nats); - recorded again on dev's current model and rows: 1 reading changes order (es case 196995, "porquero" and "piquero" at positions 2 and 3), 0 change `scored`, and 16,749 of 770,227 costs change (15,103 by 1 ulp, 1,645 by 2, one by 3). The parity fixture keeps the Swift decoder's words, order and `scored` (none change) with the core's costs: 133 of its 6,195 move by 1 or 2 ulps. Its header says so (`"costs"`), and swipe_parity.rs then requires every cost bit for bit; on a Swift-recorded export it counts changed costs instead. SwipeParityExportTests writes the same header field.
25 lines
711 B
TOML
25 lines
711 B
TOML
[package]
|
|
name = "hex-keyboard-core"
|
|
version = "0.1.0"
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
publish.workspace = true
|
|
|
|
[lib]
|
|
name = "hex_keyboard_core"
|
|
|
|
[dependencies]
|
|
# The swipe decoder's exp, log, atan2, cos and hypot: one pure-Rust implementation on every
|
|
# platform, so iOS and Android read every swipe alike, bit for bit (the platforms' own libm differ).
|
|
libm = "0.2"
|
|
unicode-normalization = "0.1"
|
|
# Swift's Character (an extended grapheme cluster), for the swipe rules (swipe/characters.rs).
|
|
unicode-segmentation = "1"
|
|
|
|
[dev-dependencies]
|
|
# The swipe parity test's fixture (tests/swipe_parity.rs): JSON Lines, and the models' SHA-256.
|
|
serde_json = "1"
|
|
sha2 = "0.10"
|
|
|
|
[lints]
|
|
workspace = true
|