-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Full no_std
and miri
support
#18
Commits on Dec 22, 2022
-
Fix
{from, into}_raw_parts
methodsThis changes some type signatures, which is technically a breaking change (although the previous implementations were essentially unusable anyway).
Configuration menu - View commit details
-
Copy full SHA for 1230273 - Browse repository at this point
Copy the full SHA 1230273View commit details -
Add
QuantizedCauchy
to python bindingsThis requires upgrading the dependency on `probability` from 0.17 to 0.18, which is technically a breaking change since `constriction` re-exports `probability::distribution::Distribution` and `probability::distribution::Inverse` unless compiled without the default feature "std".
Configuration menu - View commit details
-
Copy full SHA for 4514e64 - Browse repository at this point
Copy the full SHA 4514e64View commit details -
Update dep and remove
--feature probability
Starting from version 0.19, crate `probability` is now supposed to both support `no_std` mode and remove all external syscalls for mathematical special functions. We therefore no longer need to make the crate `probability` an optional dependency. The updated `probability` *should* allow users to use `constriction` in `no_std` mode in more contexts, and to run more tests in `miri`. Whether this is actually the case will be tested in the next few commits.
Configuration menu - View commit details
-
Copy full SHA for b71e2b5 - Browse repository at this point
Copy the full SHA b71e2b5View commit details -
Enable all previously disabled tests on miri
The new version of the `probability` crate no longer uses system calls for special mathematical functions, so we can now run (almost) all tests in miri. The only tests that are still disabled in miri are the benchmarks in directory `benches`. These cannot be enabled at this point since `criterion` seems to be incompatible with `miri`.
Configuration menu - View commit details
-
Copy full SHA for 636e227 - Browse repository at this point
Copy the full SHA 636e227View commit details -
Replace dependency on
num
bynym_traits
First step towards `no_std` compatibility.
Configuration menu - View commit details
-
Copy full SHA for 1d28240 - Browse repository at this point
Copy the full SHA 1d28240View commit details -
Configuration menu - View commit details
-
Copy full SHA for 31b9ca4 - Browse repository at this point
Copy the full SHA 31b9ca4View commit details -
Revert "Update dep and remove
--feature probability
"This reverts commit 63f6252.
Configuration menu - View commit details
-
Copy full SHA for b80806d - Browse repository at this point
Copy the full SHA b80806dView commit details -
Put
log2
behind a feature gateFor `no_std` compatibility, we can use `log2` only if either feature "std" or feature "libm" is active.
Configuration menu - View commit details
-
Copy full SHA for 17abc7e - Browse repository at this point
Copy the full SHA 17abc7eView commit details -
Configuration menu - View commit details
-
Copy full SHA for bd6cf58 - Browse repository at this point
Copy the full SHA bd6cf58View commit details -
Configuration menu - View commit details
-
Copy full SHA for c419117 - Browse repository at this point
Copy the full SHA c419117View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5626734 - Browse repository at this point
Copy the full SHA 5626734View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1aea7b8 - Browse repository at this point
Copy the full SHA 1aea7b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for c7163ba - Browse repository at this point
Copy the full SHA c7163baView commit details
Commits on Jan 28, 2023
-
Make
optimize_leaky_categorical
nostd-compatibleThe only missing piece was to replace `f64::ln_1p` with `libm::log1p`.
Configuration menu - View commit details
-
Copy full SHA for 23d1622 - Browse repository at this point
Copy the full SHA 23d1622View commit details -
Configuration menu - View commit details
-
Copy full SHA for a969ef3 - Browse repository at this point
Copy the full SHA a969ef3View commit details