took out "crossproduct" primitive option from the palette

pull/95/head
jmoenig 2021-02-09 22:42:33 +01:00
rodzic 21baffd9a2
commit b1660b9074
3 zmienionych plików z 9 dodań i 10 usunięć

Wyświetl plik

@ -17,6 +17,7 @@
* threads: enhanced list attributes 'rank', 'shape' and 'ravel' to also handle scalars
* threads: enhanced 'reshape' to also handle scalars
* lists: limit crash-dangerous matrix-exploding ops to 1 MM elements (reshape, crossproduct)
* objects, threads: took out "crossproduct" primitive option from the palette
### 2021-02-08
* lists, objects, threads: new RESHAPE primitive

Wyświetl plik

@ -1385,13 +1385,15 @@ SpriteMorph.prototype.initBlocks = function () {
spec: 'numbers from %n to %n',
defaults: [1, 10]
},
reportListCombination: {
/*
reportListCombination: { // currently not in use
type: 'reporter',
category: 'lists',
spec: '%mlfunc %lists',
defaults: [['append']]
},
reportConcatenatedLists: { // deprecated
*/
reportConcatenatedLists: {
type: 'reporter',
category: 'lists',
spec: 'append %lists'
@ -1607,11 +1609,6 @@ SpriteMorph.prototype.initBlockMigrations = function () {
selector: 'reportListAttribute',
inputs: [['length']],
offset: 1
},
reportConcatenatedLists: {
selector: 'reportListCombination',
inputs: [['append']],
offset: 1
}
};
};
@ -2794,7 +2791,7 @@ SpriteMorph.prototype.blockTemplates = function (category) {
blocks.push('-');
blocks.push(block('doForEach'));
blocks.push('-');
blocks.push(block('reportListCombination'));
blocks.push(block('reportConcatenatedLists'));
blocks.push(block('reportReshape'));
blocks.push('-');
blocks.push(block('doAddToList'));
@ -2971,7 +2968,7 @@ SpriteMorph.prototype.freshPalette = function (category) {
'reportCDR',
'reportListAttribute',
'reportListIndex',
'reportListCombination',
'reportConcatenatedLists',
'reportReshape',
'reportListContainsItem',
'reportListIsEmpty',
@ -8955,7 +8952,7 @@ StageMorph.prototype.blockTemplates = function (category) {
blocks.push('-');
blocks.push(block('doForEach'));
blocks.push('-');
blocks.push(block('reportListCombination'));
blocks.push(block('reportConcatenatedLists'));
blocks.push(block('reportReshape'));
blocks.push('-');
blocks.push(block('doAddToList'));

Wyświetl plik

@ -2086,6 +2086,7 @@ Process.prototype.reportBasicNumbers = function (start, end) {
};
Process.prototype.reportListCombination = function (choice, lists) {
// experimental, currently not in use
var option = this.inputOption(choice);
switch (option) {
case 'append':