You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 29, 2024. It is now read-only.
This has basically always been the plan, but is on hold until everything is stable. This will be very much a breaking change but I can imagine a lot of user code actually won't look much different due to type inference.
It looks like this is the tracking issue min_const_generics, which is the minimal feature subset that will be stabilized first, but it's not quite sufficient.
The text was updated successfully, but these errors were encountered:
I believe this will also be required for this use case in order to be able to calculate bit widths for combined Signals - eg. a * b will produce a new Signal whose bit width is the sum of the bit widths of a and b respectively. This means the signature of mul will be something like fn mul<const N: u32, const M: u32>(a: &Signal<N>, b: &Signal<M>) -> Signal<N + M> which is not supported with only min_const_generics.
Note also that it's possible for N + M to exceed the maximum bit width supported by a particular kaze version, which also needs to be checked/reported at compile time. I haven't dug deeply enough to know which feature(s) are required/available in order to implement this.
Is it possible to use https://docs.rs/typenum instead before the stablization of generic_const_exprs?
Very interesting, it looks like this may have what we need. I’ll do some evaluation work and see if it meets our needs and if the resulting type errors are overwhelming or not.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This has basically always been the plan, but is on hold until everything is stable. This will be very much a breaking change but I can imagine a lot of user code actually won't look much different due to type inference.
It looks like this is the tracking issue
min_const_generics
, which is the minimal feature subset that will be stabilized first, but it's not quite sufficient.The text was updated successfully, but these errors were encountered: