-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
name collision for "take" #5511
Comments
We should probably rename the RemoteRef take to |
That seems fine to me, although thus far we've only used the |
A RemoteRef acts like a synchronized queue of length 1, so it is just as much a data structure as an I/O thing. |
Fair enough. Just thought I'd point out that it's stretching the convention further than we have so far. |
Or, on the theory that this thing is a queue and might someday allow more than one element, we should use some combination of |
Yikes. The only real reason to have a collection-like API for such a thing, even if it is actually a queue, is if it might make sense to pass RemoteRefQueue into some generic code that works on a Queue or plain old Array. Does that actually make any sense? I'm not sure, but I feel like that's the fundamental question that needs to be asked. |
As soon as the put and take functions were added, |
Ok, in that case, maybe we should go ahead with the rename and make sure that you can exchange a normal Queue object with a Channel object. Using |
I don't insist on rocking the boat so much here; I was just really excited to remove two exports. I see the point that channels don't quite fit either queues or I/O devices. Do you have any ideas for names? |
I think
For the former, you want [1] http://golangtutorials.blogspot.com/2011/06/channels-in-go.html |
I'm fine with |
This will mesh really nicely with using accelerators such as GPU's. I like the fact that at a high level you will be able to put! or take! an Array to/from a GPU as easily as a remote processor. One thing to think about from an API perspective is distinguishing between blocking/nonblocking calls. It will be nice to have a consistent API for this. |
Sort of related to the discussion above. If I suggest,
Independent Channels and their corresponding
|
This is a rather unfortunate name collision:
julia/base/multi.jl
Lines 726 to 736 in 493f9c0
The text was updated successfully, but these errors were encountered: