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

[Type] [refactor] New type system #1905

Open
yuanming-hu opened this issue Sep 29, 2020 · 2 comments
Open

[Type] [refactor] New type system #1905

yuanming-hu opened this issue Sep 29, 2020 · 2 comments
Labels
feature request Suggest an idea on this project

Comments

@yuanming-hu
Copy link
Member

Concisely describe the proposed feature
The existing type system is rather simple and no longer serves the growing Taichi compiler well. We need to improve it.

Additional comments
Like #742, this is mainly a secret research project, but we will address a few engineering issues as by-products :-) This issue is merely used to track progress.

@archibate
Copy link
Collaborator

A random thought, should we wrap the taichi_core.DataType with a Python class DataType with __repr__ and other stuffs? The old taichi_core.DataType could be put into dtype.ptr, like currently snode.ptr does.

TH3CHARLie pushed a commit that referenced this issue Oct 12, 2020
@TH3CHARLie
Copy link
Collaborator

A random thought, should we wrap the taichi_core.DataType with a Python class DataType with __repr__ and other stuffs? The old taichi_core.DataType could be put into dtype.ptr, like currently snode.ptr does.

The old DatatType would be obsoleted in the short future so I think there's no need to do so.

TH3CHARLie added a commit that referenced this issue Nov 3, 2020
Related issue = #1905, using #1968 as reference

Added BitArrayType
Added corresponding SNode API
misc/test_bit_array.py for demonstrating snode structures(and also a testcase for the future)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Suggest an idea on this project
Projects
None yet
Development

No branches or pull requests

3 participants