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
Make c_array interface more like Chapel arrays #17946
Comments
Supporting this specifically Does the converse operation work? var ca: c_array(int, 10);
var A: [0..<10] int = ca; I would guess that it does not but we could get it to work if we like.
I think supporting slicing on c_array is a whole other can of worms and I would lean against it. |
More generally, we may want to have overloads that take The philosophical discussion this issue brings up for me is "What is the role/goal of the |
Looks like no, I get this error:
|
Well for one thing |
To be clear, I'm not trying to say "they're the same, why do we have both?", just trying to probe the question of what guidance we give for using them to see if it helps determine "these operations/conveniences should be supported" vs. "these should not." |
Hi @bradcray. I'm going through and looking at old issues I'm a participant on (which brought me here and to a related issue I have on my private tracker). I want to ask if you feel addressing this design issue (or some aspect of it) is on the critical path for "Chapel 2.0 or not (I suspect the answer is "no" but I wanted to get a second opinion). To refresh you, the critical question raised by this issue is the question: "to what extent should the c_array interface match the Chapel array interface". My take is that going forward we might add to the existing For reference the existing interface for The only thing I see in Anyway, let me know if you agree that this is not Chapel 2.0 relevant. If you think it is my next step is figuring out how to bring this to the attention of the Chapel 2.0 team. |
I agree that it seems likely we could choose to make |
This is a spinoff from some comments on https://github.com/Cray/chapel-private/issues/2126 :
It would be nice if the following worked:
Currently it produces this error:
I got the following feedback from Brad (see the private Github issue for more details):
I'd argue that we should make c_array as convenient as possible. Does anyone else have thoughts?
The text was updated successfully, but these errors were encountered: