You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, there are two broadcast messages being registered for different purposes. Both of the client functions sending a broadcast message to the server are seemingly tested. I am not entirely sure how this works, but I think their names should be different.
These functions are being registered in BroadcastMsg and ManipulationMsg modules
This is entirely accurate, and I'm not sure how to address it.
As you've noted, they do different things. For numpy, "broadcast" is the accepted term (this is the one in ManipulationMsg). For pandas (or at least the arkouda version of it, in BroadcastMsg), "broadcast" is a nickname for a scatter function, which would (I think) be implemented in "map" in the actual pandas package.
As best I can tell, arkouda has called this pandas function "broadcast" since at least 2019.
I'm very open to discussion on this. I'm not sure of the best way to proceed without breakage.
I wanted to understand how the server can function with two messages with same names. I think what's happening is one of the messages uses old registerFunction function to register the name broadcast. The other implementation uses newer instantiateAndRegister attribute with broadcast name. This generates a mangled function for the message handler, and for the message, it suffixes it with <type,...>.
So, even though the server name-matches incoming messages, one message will be exactly broadcast, whereas the other will look more like broadcast<...>.
I'm not sure of the best way to proceed without breakage.
To be clear, we can fix this by not changing anything on the client API, right? We can literally call one of the drculhanes_broadcast, and as long as we use the same on both sides, things should work?
Yes, that would definitely work, and is probably the best short-term plan. Amanda and I are talking about the long-term approach, because the one in BroadcastMsg probably should never have been called "broadcast" in the first place, but it has been for 6 years. Well, I guess I rambled enough about that yesterday. I will look into renaming one or both of them.
Activity
drculhane commentedon Oct 17, 2025
This is entirely accurate, and I'm not sure how to address it.
As you've noted, they do different things. For numpy, "broadcast" is the accepted term (this is the one in ManipulationMsg). For pandas (or at least the arkouda version of it, in BroadcastMsg), "broadcast" is a nickname for a scatter function, which would (I think) be implemented in "map" in the actual pandas package.
As best I can tell, arkouda has called this pandas function "broadcast" since at least 2019.
I'm very open to discussion on this. I'm not sure of the best way to proceed without breakage.
e-kayrakli commentedon Oct 20, 2025
I wanted to understand how the server can function with two messages with same names. I think what's happening is one of the messages uses old
registerFunctionfunction to register the namebroadcast. The other implementation uses newerinstantiateAndRegisterattribute withbroadcastname. This generates a mangled function for the message handler, and for the message, it suffixes it with<type,...>.So, even though the server name-matches incoming messages, one message will be exactly
broadcast, whereas the other will look more likebroadcast<...>.To be clear, we can fix this by not changing anything on the client API, right? We can literally call one of the
drculhanes_broadcast, and as long as we use the same on both sides, things should work?drculhane commentedon Oct 21, 2025
Yes, that would definitely work, and is probably the best short-term plan. Amanda and I are talking about the long-term approach, because the one in BroadcastMsg probably should never have been called "broadcast" in the first place, but it has been for 6 years. Well, I guess I rambled enough about that yesterday. I will look into renaming one or both of them.
Closes 4737 - renames the registered name broadcast in BroadcastMsg.c…