-
Notifications
You must be signed in to change notification settings - Fork 0
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
Standardize use of int types across project #9
Comments
We should go for |
Also, do we have any specific reasons for defining hash table attributes as |
|
Let's go with |
Anyway to parameterize this as a compile time configuration?
…On Sun, Sep 13, 2020, 4:13 PM Neel Shah ***@***.***> wrote:
Let's go with uint64. It will allow us to use a larger address space. If
at all we do run into memory issues later (which we shouldn't), we'll
revert to uint32
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#9 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFQ7JWXKCSQC2HBYX3JS47DSFSO5VANCNFSM4RJ2LT7A>
.
|
Even if there is, it will be unsafe. These changes will be in a small number of files (linkedlist, hashtable). All the layers above will be agnostic to this. |
We can define an alias for the type in one central location and use it everywhere, and then just make changes to it if need be. |
I'll make the changes and use uint64 everywhere. Still it's interesting to
see from a design perspective, if types can be parameterized at a high
level.
…On Sun, Sep 13, 2020, 5:20 PM Neel Shah ***@***.***> wrote:
Even if there is, it will be unsafe. These changes will be in a small
number of files (linkedlist, hashtable). All the layers above will be
agnostic to this.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#9 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFQ7JWWAR2H7SM6KPIY2TUDSFSWYBANCNFSM4RJ2LT7A>
.
|
Imo the aliasing option is the cleanest |
Currently different types of ints are being used. For e.g.
What is the best approach to be consistent across int type usage?
The text was updated successfully, but these errors were encountered: