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

Run long array sequence test on CI. #1520

Merged
merged 2 commits into from
Mar 15, 2021
Merged

Conversation

nojaf
Copy link
Contributor

@nojaf nojaf commented Mar 14, 2021

Following up on the last changes to ASTTransformer.
I had to change SynExpr.Sequential because it was still blowing the stack.

The AST is a heavily nested structure.

@nojaf nojaf requested a review from Smaug123 March 14, 2021 11:19
expr2
(fun nodes1 ->
visit expr1 (fun nodes2 -> nodes1 @ nodes2)
|> finalContinuation)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This one was a bit counter-intuitive, I thought I would need to call finalContinuation inside the second lambda.
Had to call it in the first lambda to not blow the stack.

expr2 in the unit test will again be a SynExpr.Sequentials.

Does all of this make some sense?

Copy link
Contributor

Choose a reason for hiding this comment

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

I am deeply confused. I would expect to call finalContinuation inside the second lambda, yes. Does the situation improve in Release mode (rather than Debug mode)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Release mode works just fine, thanks for the pointer.

Run unit test in release mode.
@nojaf nojaf merged commit afed9a7 into fsprojects:master Mar 15, 2021
@nojaf nojaf deleted the fix-sequencetial branch March 15, 2021 19:22
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