Skip to content
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

All Vector operations shall be applicable on java.util.ArrayList #6642

Merged
merged 6 commits into from
May 11, 2023

Conversation

JaroslavTulach
Copy link
Member

@JaroslavTulach JaroslavTulach commented May 11, 2023

Pull Request Description

Fixes #6609 by

  • e380e64 - running whole Vector_Spec on java.util.ArrayList
  • 9b1229f - introducing a node to handle interop values

Important Notes

Contains additional DSL processor fix:

  • 415623d - to not crash the compiler, but to properly report compiler error

Checklist

Please ensure that the following checklist has been satisfied before submitting the PR:

  • All code follows the
    Java,
    style guides
  • All code has been tested:
    • Unit tests have been written where possible.

@JaroslavTulach JaroslavTulach added the CI: No changelog needed Do not require a changelog entry for this PR. label May 11, 2023
@JaroslavTulach JaroslavTulach self-assigned this May 11, 2023
}
}

@Specialization(replaces = {"executeArray", "executeVector"})
Copy link
Contributor

@hubertp hubertp May 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could probably enhance the DSL to be able to generate replaces specializations. We already can do fallback.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason why I used own Node is: I wanted to use generic self - Object not an Array. I haven't found a way to do that with a DSL. Moreover there is

we want to be able to have nodes that operate on any array-like object. It is not very useful in case of slice - we don't use it from engine itself. However we will benefit from having real nodes that specialize in case of length and at.

test/Tests/src/Data/Vector_Spec.enso Show resolved Hide resolved
@JaroslavTulach JaroslavTulach added the CI: Ready to merge This PR is eligible for automatic merge label May 11, 2023
@mergify mergify bot merged commit 1302b69 into develop May 11, 2023
@mergify mergify bot deleted the wip/jtulach/PolyArrayAsVector_6609 branch May 11, 2023 15:29
Procrat added a commit that referenced this pull request May 12, 2023
* develop:
  Implement loading spinner for visualisations. (#6512)
  Fix blank input port (#6614)
  Add `Date_Range` (#6621)
  All Vector operations shall be applicable on java.util.ArrayList (#6642)
  Fix redirect paths and enable authentication and new dashboard by default (#6605)
  Fix #6287: wrong nested breadcrumb ordering (#6617)
  Whitelist AWS Cognito domains (#6643)
  Revert "Add COOP+COEP+CORP headers (#6597)" (#6647)
  Fix shortcuts table formatting (#6644)
  Automatic type based dropdown does not include singleton in a union type (#6629)
  Make Meta.get_annotation work for constructor (#6633)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI: No changelog needed Do not require a changelog entry for this PR. CI: Ready to merge This PR is eligible for automatic merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Array methods panic on polyglot arrays like ArrayList
5 participants