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

More compiler tests #122

Merged
merged 6 commits into from
Nov 30, 2023

Conversation

countvajhula
Copy link
Collaborator

Summary of Changes

This adds (failing) tests for deforestation of all permutations of templates, and also fixes an "anaphoric references" issue with compiling blanket templates in connection with bindings, which we had fixed a while back for compiling partial applications, but which we hadn't noticed also affects blanket templates. I added a failing test for this yesterday and this PR resolves that test by adding the fix. So now, all tests with make test-flow are passing again. This also adds a couple of tests to validate use of keyword arguments in templates.

Public Domain Dedication

  • In contributing, I relinquish any copyright claims on my contribution and freely release it into the public domain in the simple hope that it will provide value.

(Why: The freely released, copyright-free work in this repository represents an investment in a better way of doing things called attribution-based economics. Attribution-based economics is based on the simple idea that we gain more by giving more, not by holding on to things that, truly, we could only create because we, in our turn, received from others. As it turns out, an economic system based on attribution -- where those who give more are more empowered -- is significantly more efficient than capitalism while also being stable and fair (unlike capitalism, on both counts), giving it transformative power to elevate the human condition and address the problems that face us today along with a host of others that have been intractable since the beginning. You can help make this a reality by releasing your work in the same way -- freely into the public domain in the simple hope of providing value. Learn more about attribution-based economics at drym.org, tell your friends, do your part.)

See "The Artist Formerly Known as Bindingspec" in the Qi meeting notes
for more context on this issue. We had formerly fixed this for partial
application, but hadn't noticed the same issue also affected blanket
templates. Recently we committed a fix for the two cases of the
template being on the beginning or end (which is what partial
application without a template now expands to). This adds the fix for
the remaining case where a template is somewhere in the middle of the
expression.
@dzoep dzoep merged commit 2d5a602 into drym-org:first-optimizations Nov 30, 2023
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