-
Notifications
You must be signed in to change notification settings - Fork 326
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
Vector.map & State #7078
Vector.map & State #7078
Conversation
...untime/src/main/java/org/enso/interpreter/node/callable/FunctionCallInstrumentationNode.java
Outdated
Show resolved
Hide resolved
...untime/src/main/java/org/enso/interpreter/node/callable/FunctionCallInstrumentationNode.java
Outdated
Show resolved
Hide resolved
With a24134d I can see I hope that's correct. Now we need to "just" write some tests and polish the implementation. |
...nterpreter-dsl/src/main/java/org/enso/interpreter/dsl/builtins/MethodNodeClassGenerator.java
Show resolved
Hide resolved
engine/runtime/src/main/java/org/enso/interpreter/runtime/data/Vector.java
Outdated
Show resolved
Hide resolved
engine/runtime/src/main/java/org/enso/interpreter/runtime/data/Vector.java
Show resolved
Hide resolved
return InvokeFunctionNode.build( | ||
new CallArgumentInfo[] {new CallArgumentInfo()}, | ||
InvokeCallableNode.DefaultsExecutionMode.EXECUTE, | ||
InvokeCallableNode.ArgumentsExecutionMode.EXECUTE); |
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.
You can probably experiment with removing arguments execution mode. It's a leftover from a bygone era and the only thing it potentially does is a tiny performance improvement. But I'm not sure it does, so better check.
@kustosz : Why is
There is an API to evaluate any expression in any module. |
This PR has been simplified to fix just the |
I've just found a slightly related issue #7117 showing that while definitely a step in the right direction, this may still not be enough. |
Pull Request Description
Fixes #6656 by invoking the function with
InvokeFunctionNode
and notInteropLibrary
.Important Notes
Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:
Java,