-
Notifications
You must be signed in to change notification settings - Fork 11
Description
Would anyone like "unsafe" versions of the functions/macros (i.e. not synced at the same line)? This would allow you to call the data transfer, and later on call the sync, and allow you to compute while the transfer is occuring in the middle.
That could been done, but it would need the right API. I want the standard @getfrom 2 x to "just work", so have the syncing built in so you can brainlessly use that and know your code will work. Maybe a good API would be to have _unsafe versions, like @getfrom_unsafe 2 x which wouldn't have the syncing built in, so before you use x you'd need to @syncat 1 x (which would actually be calling fetch or wait, but just call it sync to make it easy? Not sure). This would be a good workflow: prototype with the safe functions, then iteratively drop the safety to make it a little more performant. If you're interested in this, let me know what would be helpful to your workflow.