Skip to content

Bundle and optimize#2111

Closed
jutaro wants to merge 22 commits intopurescript:masterfrom
mgmeier:BundleAndOptimize
Closed

Bundle and optimize#2111
jutaro wants to merge 22 commits intopurescript:masterfrom
mgmeier:BundleAndOptimize

Conversation

@jutaro
Copy link
Copy Markdown

@jutaro jutaro commented May 11, 2016

See issue Uncurry optimization #479. Here's the read-up: http://symbolian.net/2016/04/07/513

@hdgarrood
Copy link
Copy Markdown
Contributor

hdgarrood commented May 11, 2016

Sorry for the confusion, but could you please base this on the 0.9 branch instead? For the time being, master is just there in case we want to do another 0.8.x release, and new features should all go into 0.9.

aside: This branching scheme has turned out to be a little confusing; perhaps if we want to do something like this in the future, we should have master for what 0.9 is right now, and create an 0.8.x branch for what we are using master for now?


-- * Call replacement

-- | replace satured calls to calls to uncurried functions
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Typo? "satured"

@hdgarrood
Copy link
Copy Markdown
Contributor

Also, can we have some tests, please? Perhaps write some programs, compile them both with and without the uncurry optimization, and verify that they behave in the same way?


shouldUncurry :: Parser String
shouldUncurry = strOption $
short 'p'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

psc currently has one option for turning each individual optimization on or off, --no-tco, --no-magic-do, with no short version so perhaps we should follow suit here? --[no-]optimize-uncurry?

@paf31
Copy link
Copy Markdown
Contributor

paf31 commented May 11, 2016

Thanks for the PR! I'll spend some time reviewing this during the week.

@jutaro jutaro mentioned this pull request May 18, 2016
@jutaro
Copy link
Copy Markdown
Author

jutaro commented May 18, 2016

I have submitted a new pull request #2139 which is based on 0.9 as required. I have as well fixed the typo.

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