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

Improve accumulation command correctness. Fix some things. #78

Merged
merged 1 commit into from
Jun 27, 2021

Conversation

okamsn
Copy link
Owner

@okamsn okamsn commented Jun 23, 2021

  • Fix bad instruction order in loopy--parse-sub-loop-command.
  • Some instructions for accumulation variables are order-sensitive.
  • Use nconc to update more variables. This is much faster than using the
    function append.
  • Fix adding onto the end of lists of explicit variables. As anything can add
    onto the end, we need to use nconc each time, not just track where we think
    the end of the list is.
  • Add loopy--get-accumulation-list-end-var for way to use same variable to
    point to last link in list. We need to make sure that any accumulation command
    adding to the end of the list also updates the pointer to the last link in said
    list.
  • Update test accumulation-conflicting-final-updates.
  • Fix end-tracking in adjoin, nconc, nunion, union.
  • Add tests that union, adjoin, collect, and append non-destructive.
  • Update the CHANGELOG.

@okamsn okamsn force-pushed the command-compatibility branch 3 times, most recently from 8e9b3e8 to 3819e6e Compare June 27, 2021 02:14
- Fix bad instruction order in `loopy--parse-sub-loop-command`.
- Some instructions for accumulation variables are order-sensitive.
- Use `nconc` to update more variables. This is much faster than using the
  function `append`.
- Use `nconc` when appending to the end of an accumulation variable.
- Fix adding onto the end of lists of explicit variables.  As anything can add
  onto the end, we need to use `nconc` each time, not just track where we think
  the end of the list is.
- Add `loopy--get-accumulation-list-end-var` for way to use same variable to
  point to last link in list.  We need to make sure that any accumulation command
  adding to the end of the list also updates the pointer to the last link in said
  list.
- Update test `accumulation-conflicting-final-updates`.
- Fix end-tracking in `adjoin`, `nconc`, `nunion`, `union`.
- Add tests that `union`, `adjoin`, `collect`,  and `append` non-destructive.
- Update the CHANGELOG.
- Add better way to check accumulation compatibility.
- Update the Org documentation.
@okamsn okamsn merged commit 9a40125 into master Jun 27, 2021
@okamsn okamsn deleted the command-compatibility branch March 30, 2022 03:00
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.

1 participant