8000 Simplify Evaluator calls in Native Functions by deusaquilus · Pull Request #370 · finos/morphir-scala · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Simplify Evaluator calls in Native Functions #370

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

Merged
merged 4 commits into from
Aug 31, 2023

Conversation

deusaquilus
Copy link
Contributor
@deusaquilus deusaquilus commented Aug 31, 2023
  • Passing around the Store object in the Native SDK objects does not conceptually make sense, pass around the evaluator instead.
  • Instead of passing around global evaluator definitions in the Store object, separate them out into GlobalDefs and pass those around. This significantly simplifies many evaluator functions including handleApplyResult which Native often uses. This involved breaking things aren't actually the call-stack (i.e. global definitions) from Store. They don't make sense in there anyway.
  • Add a handleApplyResult2 which helps calling native functions that have lambdas with multiple arguments e.g. Dict.filter (which has k and v arguments).

@netlify
Copy link
netlify bot commented Aug 31, 2023

Deploy Preview for magical-donut-e8221d ready!

Name Link
🔨 Latest commit 0e30cac
🔍 Latest deploy log https://app.netlify.com/sites/magical-donut-e8221d/deploys/64f1095c9cb3840008907e58
😎 Deploy Preview https://deploy-preview-370--magical-donut-e8221d.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@deusaquilus deusaquilus force-pushed the simplify-evaluator-calls branch from 9deeed4 to 41f4394 Compare August 31, 2023 20:14
@deusaquilus deusaquilus force-pushed the simplify-evaluator-calls branch from 0e0c291 to 1bda951 Compare August 31, 2023 21:12
@deusaquilus deusaquilus changed the title Simplify evaluator calls S 8000 implify Evaluator calls in Native Aug 31, 2023
@deusaquilus deusaquilus changed the title Simplify Evaluator calls in Native Simplify Evaluator calls in Native Functions Aug 31, 2023
Copy link
Member
@DamianReeves DamianReeves left a comment

Choose a reason for hiding this comment

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

LGTM

@deusaquilus deusaquilus merged commit 34b9e49 into finos:main Aug 31, 2023
@deusaquilus deusaquilus deleted the simplify-evaluator-calls branch August 31, 2023 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0