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

Separate 'arrow-eval' module #3332

Merged
merged 4 commits into from
Jan 17, 2024
Merged

Separate 'arrow-eval' module #3332

merged 4 commits into from
Jan 17, 2024

Conversation

serras
Copy link
Member

@serras serras commented Dec 21, 2023

I've spent some time trying to write a good guide for #3039, and have come to the conclusion that a full replacement for Eval is difficult to achieve. So I've taken one of the suggestions there: move it into its own separate arrow-eval module. I think we can do like we've done with arrow-resilience and arrow-functions, and nudge people to move into the new module if we bring it in 1.2.2, and then remove it from arrow-core in 2.0.

The code is ready to be merged too in arrow-2, with just a few adjustments needed in the Gradle build file.

@serras serras requested review from nomisRev and a team December 21, 2023 12:22
@serras
Copy link
Member Author

serras commented Dec 21, 2023

Summoning @404- and @pbtura, which reported some interest in this.

Copy link
Contributor

github-actions bot commented Dec 21, 2023

Kover Report

File Coverage [34.98%]
arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/Eval.kt 41.79%
arrow-libs/core/arrow-eval/src/commonMain/kotlin/arrow/eval/Eval.kt 28.29%
Total Project Coverage 54.04%

Copy link
Member

@nomisRev nomisRev left a comment

Choose a reason for hiding this comment

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

Perfect, thank you so much @serras 🙌

Comment on lines +27 to +29
* methods, which use an internal trampoline to avoid stack overflows.
* Computation done within .map and .flatMap is always done lazily,
* even when applied to a Now instance.
Copy link
Collaborator

Choose a reason for hiding this comment

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

This text seems to be incomplete

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 file is just restored from the original version :/

@serras serras merged commit 79a791f into main Jan 17, 2024
11 checks passed
nomisRev pushed a commit to arrow-kt/arrow-website that referenced this pull request Jan 17, 2024
Now that we are [keeping
`Eval`](arrow-kt/arrow#3332), it makes sense to
bring it to the website.
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.

3 participants