-
Notifications
You must be signed in to change notification settings - Fork 93
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
Refactor MessageArgs #3358
Refactor MessageArgs #3358
Conversation
…e. Fix misleading indentation in serverDaemon. Remove repeated error-handling code from ServerDaemon. Signed-off-by: Jeremiah Corrado <[email protected]>
Signed-off-by: Jeremiah Corrado <[email protected]>
Signed-off-by: Jeremiah Corrado <[email protected]>
Signed-off-by: Jeremiah Corrado <[email protected]>
Signed-off-by: Jeremiah Corrado <[email protected]>
…clude 'toScalar', 'toScalarTuple', 'toScalarList', 'toScalarArray'. Other methods were removed or "deprecated". Added 'this()' indexing to msgArgs Signed-off-by: Jeremiah Corrado <[email protected]>
…rs-R-Us#2522. Only 'efunc2Msg' was using this functionality, so put a temporary fix in place until it can be refactored Signed-off-by: Jeremiah Corrado <[email protected]>
Signed-off-by: Jeremiah Corrado <[email protected]>
Signed-off-by: Jeremiah Corrado <[email protected]>
…n the array-api 'tolist' introduced in Bears-R-Us#3242 Signed-off-by: Jeremiah Corrado <[email protected]>
Signed-off-by: Jeremiah Corrado <[email protected]>
CI failed to install dependencies. Could someone please restart when you get a chance. |
Started CI again |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing all this!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love it <3
Signed-off-by: Jeremiah Corrado <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good!! Thanks jeremiah!
Thanks for the reveiws everyone! It looks like CI failed again due to dependency installation timeouts. Could someone please re-add to the merge queue :) |
This PR makes a few changes to improve the ergonomics of argument parsing:
this(key)
accessor toMessageArgs
, allowing things likeconst x = msgArgs["x"]
getGenericTypedArrayEntry
to acceptParamObj
directly, allowing things like:getGenericTypedArrayEntry(msgArgs["name"], st)
MessageArgs
objType
field fromMessageArgs
as it was only used in Efunc2 and was easily confused with the ObjType defined in serverConfig (resolves MergeObjType
andObjectType
enums #2522)Most of the old MessageArgs API still exists, so message handlers can be converted to use the new API over time. As an example, ManipulationMsg was converted to use the new API.
Also cleaned up IO compat modules (most of those changes were moved to #3365), leaving only symbols related to the
ioendian
->endianness
change.