Skip to content
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

chore(backward): use the Deprecated type from tfhe-versionable #1710

Merged
merged 1 commit into from
Oct 24, 2024

Conversation

nsarlin-zama
Copy link
Contributor

PR content/description

Use the Deprecated type from tfhe-versionable for all the deprecated versions. This removes a bit of code in the backward_compat folders and will improve the error messages because most errors should happen at deserialization, before the call to the "upgrade" method.

Sadly the Deprecable trait for the types that have deprecated versions is a bit hard to implement with a declarative macro, because the macro needs to handle types with generics (especially with "nested" generics like <Scalar: UnsignedInteger, C: Container<Element = Scalar>>). I think it would require a proc-macro, but I don't know if its worth the price for a few impl (And I think it would be the same thing with impl of Named)

@IceTDrinker
Copy link
Member

I see failed cargo builds

@nsarlin-zama nsarlin-zama force-pushed the ns/use_versionable_deprecated branch from ccf452c to de731cc Compare October 22, 2024 15:47
@nsarlin-zama
Copy link
Contributor Author

I see failed cargo builds

fixed !

@nsarlin-zama nsarlin-zama force-pushed the ns/use_versionable_deprecated branch from de731cc to 0e63600 Compare October 23, 2024 07:11
Copy link
Member

@IceTDrinker IceTDrinker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small mistake a I believe on the seeded packing keyswitch key

Comment on lines 10 to 11
const TYPE_NAME: &'static str = "SeededLwePackingKeyswitchKey";
const MIN_SUPPORTED_APP_VERSION: &'static str = "TFHE-rs v0.8";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0.9 for the seed packing

@nsarlin-zama nsarlin-zama force-pushed the ns/use_versionable_deprecated branch from 0e63600 to 60e2021 Compare October 23, 2024 07:53
@nsarlin-zama nsarlin-zama merged commit 64cc70d into main Oct 24, 2024
87 checks passed
@nsarlin-zama nsarlin-zama deleted the ns/use_versionable_deprecated branch October 24, 2024 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants